@scalar/api-reference 1.32.9 → 1.33.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +99 -0
- package/dist/browser/standalone.js +17026 -16443
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/Anchor/Anchor.vue.d.ts.map +1 -1
- package/dist/components/Anchor/Anchor.vue.js +50 -5
- package/dist/components/Anchor/Anchor.vue2.js +2 -42
- package/dist/components/ApiReference.vue.js +6 -6
- package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
- package/dist/components/ApiReferenceLayout.vue.js +6 -6
- package/dist/components/ApiReferenceLayout.vue2.js +167 -176
- 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.d.ts.map +1 -1
- package/dist/components/Badge/Badge.vue.js +4 -4
- 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.d.ts.map +1 -1
- package/dist/components/Content/Introduction/Description.vue.js +3 -3
- 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 +2 -2
- package/dist/components/Content/Introduction/Introduction.vue2.js +103 -118
- package/dist/components/Content/Introduction/Introduction.vue3.js +4 -0
- package/dist/components/Content/Introduction/IntroductionSection.vue.d.ts +25 -0
- package/dist/components/Content/Introduction/IntroductionSection.vue.d.ts.map +1 -0
- package/dist/components/Content/Introduction/IntroductionSection.vue.js +7 -0
- package/dist/components/Content/Introduction/IntroductionSection.vue2.js +159 -0
- package/dist/components/Content/Introduction/IntroductionSection.vue3.js +4 -0
- package/dist/components/Content/Models/{ModelsAccordion.vue.d.ts → ClassicLayout.vue.d.ts} +2 -2
- package/dist/components/Content/Models/ClassicLayout.vue.d.ts.map +1 -0
- package/dist/components/Content/Models/ClassicLayout.vue.js +7 -0
- package/dist/components/Content/Models/{ModelsAccordion.vue2.js → ClassicLayout.vue2.js} +30 -30
- package/dist/components/Content/Models/ClassicLayout.vue3.js +4 -0
- package/dist/components/Content/Models/Models.vue.d.ts +3 -1
- package/dist/components/Content/Models/Models.vue.d.ts.map +1 -1
- package/dist/components/Content/Models/Models.vue.js +38 -5
- package/dist/components/Content/Models/Models.vue2.js +2 -114
- package/dist/components/Content/Models/ModernLayout.vue.d.ts +7 -0
- package/dist/components/Content/Models/ModernLayout.vue.d.ts.map +1 -0
- package/dist/components/Content/Models/ModernLayout.vue.js +7 -0
- package/dist/components/Content/Models/ModernLayout.vue2.js +100 -0
- package/dist/components/Content/Models/ModernLayout.vue3.js +4 -0
- package/dist/components/Content/Models/index.d.ts +0 -1
- package/dist/components/Content/Models/index.d.ts.map +1 -1
- package/dist/components/Content/Operations/TraversedEntry.vue.d.ts +21 -0
- package/dist/components/Content/Operations/TraversedEntry.vue.d.ts.map +1 -0
- package/dist/components/Content/Operations/TraversedEntry.vue.js +95 -0
- package/dist/components/Content/Operations/TraversedEntry.vue2.js +4 -0
- package/dist/components/Content/Operations/TraversedEntryContainer.vue.d.ts +17 -0
- package/dist/components/Content/Operations/TraversedEntryContainer.vue.d.ts.map +1 -0
- package/dist/components/Content/Operations/TraversedEntryContainer.vue.js +56 -0
- package/dist/components/Content/Operations/TraversedEntryContainer.vue2.js +4 -0
- package/dist/components/Content/Operations/index.d.ts +2 -0
- package/dist/components/Content/Operations/index.d.ts.map +1 -0
- package/dist/components/Content/Schema/Schema.vue.js +1 -1
- package/dist/components/Content/Schema/Schema.vue3.js +4 -0
- package/dist/components/Content/Schema/SchemaComposition.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaEnumPropertyItem.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaEnumPropertyItem.vue.js +3 -3
- package/dist/components/Content/Schema/SchemaEnumPropertyItem.vue3.js +4 -0
- package/dist/components/Content/Schema/SchemaEnumValues.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaEnumValues.vue.js +3 -3
- package/dist/components/Content/Schema/SchemaEnumValues.vue2.js +63 -68
- package/dist/components/Content/Schema/SchemaEnumValues.vue3.js +4 -0
- package/dist/components/Content/Schema/SchemaHeading.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaHeading.vue.js +4 -4
- package/dist/components/Content/Schema/SchemaHeading.vue2.js +23 -22
- package/dist/components/Content/Schema/SchemaHeading.vue3.js +4 -0
- package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaProperty.vue.js +2 -2
- package/dist/components/Content/Schema/SchemaProperty.vue2.js +34 -33
- package/dist/components/Content/Schema/SchemaProperty.vue3.js +4 -0
- package/dist/components/Content/Schema/SchemaPropertyDetail.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaPropertyDetail.vue.js +2 -2
- package/dist/components/Content/Schema/SchemaPropertyDetail.vue3.js +4 -0
- package/dist/components/Content/Schema/SchemaPropertyExamples.vue.js +3 -3
- package/dist/components/Content/Schema/SchemaPropertyExamples.vue3.js +4 -0
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue.js +3 -3
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue2.js +26 -23
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue3.js +4 -0
- package/dist/components/Content/Schema/helpers/merge-all-of-schemas.d.ts +2 -1
- package/dist/components/Content/Schema/helpers/merge-all-of-schemas.d.ts.map +1 -1
- package/dist/components/Content/Schema/helpers/merge-all-of-schemas.js +59 -52
- package/dist/components/Content/Schema/helpers/optimize-value-for-display.d.ts.map +1 -1
- package/dist/components/Content/Schema/helpers/optimize-value-for-display.js +24 -20
- package/dist/components/Content/Schema/helpers/schema-name.d.ts +1 -1
- package/dist/components/Content/Schema/helpers/schema-name.d.ts.map +1 -1
- package/dist/components/Content/{Tag/TagAccordion.vue.d.ts → Tags/ClassicLayout.vue.d.ts} +3 -3
- package/dist/components/Content/Tags/ClassicLayout.vue.d.ts.map +1 -0
- package/dist/components/Content/Tags/ClassicLayout.vue.js +7 -0
- package/dist/components/Content/Tags/ClassicLayout.vue2.js +51 -0
- package/dist/components/Content/Tags/ClassicLayout.vue3.js +4 -0
- package/dist/components/Content/{Tag/TagSection.vue.d.ts → Tags/ModernLayout.vue.d.ts} +17 -13
- package/dist/components/Content/Tags/ModernLayout.vue.d.ts.map +1 -0
- package/dist/components/Content/Tags/ModernLayout.vue.js +7 -0
- package/dist/components/Content/Tags/ModernLayout.vue2.js +69 -0
- package/dist/components/Content/Tags/ModernLayout.vue3.js +4 -0
- package/dist/components/Content/Tags/Tag.vue.d.ts +25 -0
- package/dist/components/Content/Tags/Tag.vue.d.ts.map +1 -0
- package/dist/components/Content/Tags/Tag.vue.js +27 -0
- package/dist/components/Content/{Tag/Tag.vue.d.ts → Tags/TagSection.vue.d.ts} +3 -6
- package/dist/components/Content/Tags/TagSection.vue.d.ts.map +1 -0
- package/dist/components/Content/Tags/TagSection.vue.js +104 -0
- package/dist/components/Content/Tags/TagSection.vue2.js +4 -0
- package/dist/components/Content/Tags/index.d.ts +2 -0
- package/dist/components/Content/Tags/index.d.ts.map +1 -0
- package/dist/components/GettingStarted.vue.js +1 -1
- package/dist/components/GettingStarted.vue3.js +4 -0
- package/dist/components/HttpMethod/HttpMethod.vue.d.ts.map +1 -1
- package/dist/components/HttpMethod/HttpMethod.vue.js +8 -6
- package/dist/components/{Content/Lazy → Lazy}/Lazy.vue.d.ts +1 -10
- package/dist/components/Lazy/Lazy.vue.d.ts.map +1 -0
- package/dist/components/Lazy/Lazy.vue2.js +25 -0
- package/dist/components/Lazy/index.d.ts +3 -0
- package/dist/components/Lazy/index.d.ts.map +1 -0
- package/dist/components/Lazy/lazyBus.d.ts +8 -0
- package/dist/components/Lazy/lazyBus.d.ts.map +1 -0
- package/dist/components/Lazy/lazyBus.js +7 -0
- package/dist/components/LinkList/LinkList.vue.d.ts +20 -0
- package/dist/components/LinkList/LinkList.vue.d.ts.map +1 -0
- package/dist/components/LinkList/LinkList.vue.js +7 -0
- package/dist/components/LinkList/LinkList.vue2.js +32 -0
- package/dist/components/LinkList/LinkList.vue3.js +4 -0
- package/dist/components/LinkList/index.d.ts +2 -0
- package/dist/components/LinkList/index.d.ts.map +1 -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.d.ts +1 -0
- package/dist/components/Section/SectionHeader.vue.d.ts.map +1 -1
- package/dist/components/Section/SectionHeader.vue.js +3 -3
- package/dist/components/Section/SectionHeader.vue2.js +11 -10
- 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 +11 -7
- package/dist/features/Operation/Operation.vue.d.ts.map +1 -1
- package/dist/features/Operation/Operation.vue.js +66 -48
- package/dist/features/Operation/components/ContentTypeSelect.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/ContentTypeSelect.vue.js +28 -30
- package/dist/features/Operation/components/ParameterHeaders.vue.js +1 -1
- package/dist/features/Operation/components/ParameterHeaders.vue3.js +4 -0
- package/dist/features/Operation/components/ParameterList.vue.js +1 -1
- package/dist/features/Operation/components/ParameterList.vue3.js +4 -0
- package/dist/features/Operation/components/ParameterListItem.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/ParameterListItem.vue.js +2 -2
- package/dist/features/Operation/components/ParameterListItem.vue2.js +31 -29
- package/dist/features/Operation/components/ParameterListItem.vue3.js +4 -0
- package/dist/features/Operation/components/RequestBody.vue.js +1 -1
- package/dist/features/Operation/components/RequestBody.vue3.js +4 -0
- package/dist/features/Operation/components/callbacks/Callback.vue.d.ts +8 -6
- package/dist/features/Operation/components/callbacks/Callback.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/callbacks/Callback.vue.js +4 -4
- package/dist/features/Operation/components/callbacks/Callback.vue2.js +22 -29
- package/dist/features/Operation/components/callbacks/Callback.vue3.js +4 -0
- package/dist/features/Operation/components/callbacks/Callbacks.vue.d.ts +5 -3
- package/dist/features/Operation/components/callbacks/Callbacks.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/callbacks/Callbacks.vue.js +25 -18
- package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts +17 -12
- 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 +178 -162
- package/dist/features/Operation/layouts/ClassicLayout.vue3.js +4 -0
- package/dist/features/Operation/layouts/ModernLayout.vue.d.ts +18 -13
- 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 +132 -126
- package/dist/features/Operation/layouts/ModernLayout.vue3.js +4 -0
- package/dist/features/Search/SearchModal.vue.js +4 -4
- package/dist/features/Search/SearchModal.vue2.js +9 -9
- package/dist/features/Search/SearchModal.vue3.js +4 -0
- package/dist/features/api-client-modal/ApiClientModal.vue.d.ts.map +1 -1
- package/dist/features/api-client-modal/useApiClient.d.ts +5188 -5128
- package/dist/features/api-client-modal/useApiClient.d.ts.map +1 -1
- package/dist/features/base-url/BaseUrl.vue.d.ts.map +1 -1
- package/dist/features/base-url/BaseUrl.vue.js +26 -26
- 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 +3 -3
- package/dist/features/example-responses/ExampleResponseTab.vue3.js +4 -0
- package/dist/features/example-responses/ExampleResponseTabList.vue.js +2 -2
- 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 +110 -104
- package/dist/features/example-responses/ExampleResponses.vue3.js +4 -0
- package/dist/features/external-docs/ExternalDocs.vue.d.ts +7 -0
- package/dist/features/external-docs/ExternalDocs.vue.d.ts.map +1 -0
- package/dist/features/external-docs/ExternalDocs.vue.js +36 -0
- package/dist/features/external-docs/ExternalDocs.vue2.js +4 -0
- package/dist/features/external-docs/index.d.ts +2 -0
- package/dist/features/external-docs/index.d.ts.map +1 -0
- package/dist/features/info-object/Contact.vue.d.ts +7 -0
- package/dist/features/info-object/Contact.vue.d.ts.map +1 -0
- package/dist/features/info-object/Contact.vue.js +44 -0
- package/dist/features/info-object/Contact.vue2.js +4 -0
- package/dist/features/info-object/License.vue.d.ts +7 -0
- package/dist/features/info-object/License.vue.d.ts.map +1 -0
- package/dist/features/info-object/License.vue.js +37 -0
- package/dist/features/info-object/License.vue2.js +4 -0
- package/dist/features/info-object/TermsOfService.vue.d.ts +7 -0
- package/dist/features/info-object/TermsOfService.vue.d.ts.map +1 -0
- package/dist/features/info-object/TermsOfService.vue.js +30 -0
- package/dist/features/info-object/TermsOfService.vue2.js +4 -0
- package/dist/features/info-object/index.d.ts +4 -0
- package/dist/features/info-object/index.d.ts.map +1 -0
- 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.d.ts +3 -2
- package/dist/features/test-request-button/TestRequestButton.vue.d.ts.map +1 -1
- package/dist/features/test-request-button/TestRequestButton.vue.js +3 -3
- package/dist/features/test-request-button/TestRequestButton.vue2.js +21 -19
- package/dist/features/test-request-button/TestRequestButton.vue3.js +4 -0
- package/dist/features/traverse-schema/index.d.ts +2 -1
- package/dist/features/traverse-schema/index.d.ts.map +1 -1
- package/dist/helpers/convert-security-scheme.js +23 -0
- package/dist/helpers/test-utils.d.ts +51 -0
- package/dist/helpers/test-utils.d.ts.map +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +24 -23
- package/dist/style.css +1 -1
- package/dist/types.d.ts +5 -0
- package/dist/types.d.ts.map +1 -1
- package/dist/v2/ApiReferenceWorkspace.vue.d.ts +4 -2
- package/dist/v2/ApiReferenceWorkspace.vue.d.ts.map +1 -1
- package/dist/v2/ApiReferenceWorkspace.vue.js +100 -83
- 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 -4
- 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.vue.js +4 -0
- package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue2.js +72 -0
- 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 +7 -0
- package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue2.js +231 -0
- 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 +21 -3
- 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 +33 -0
- package/dist/v2/blocks/scalar-request-example-block/helpers/generate-code-snippet.js +29 -0
- package/dist/v2/blocks/scalar-request-example-block/helpers/get-secrets.js +10 -0
- package/dist/v2/blocks/scalar-request-example-block/index.d.ts +2 -2
- 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/events/definitions.js +7 -0
- package/dist/v2/events/index.d.ts +1 -1
- package/dist/v2/events/listeners.d.ts +1 -1
- package/package.json +18 -18
- package/LICENSE +0 -21
- package/dist/blocks/constants.js +0 -6
- package/dist/blocks/helpers/getPointer.js +0 -12
- package/dist/blocks/hooks/useBlockProps.d.ts +0 -31
- package/dist/blocks/hooks/useBlockProps.d.ts.map +0 -1
- package/dist/blocks/hooks/useBlockProps.js +0 -24
- 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/example-request/ExamplePicker.vue.d.ts +0 -13
- package/dist/features/example-request/ExamplePicker.vue.d.ts.map +0 -1
- package/dist/features/example-request/ExamplePicker.vue.js +0 -7
- package/dist/features/example-request/ExamplePicker.vue2.js +0 -57
- package/dist/features/example-request/ExampleRequest.vue.d.ts +0 -85
- package/dist/features/example-request/ExampleRequest.vue.d.ts.map +0 -1
- package/dist/features/example-request/ExampleRequest.vue.js +0 -7
- package/dist/features/example-request/ExampleRequest.vue2.js +0 -348
- package/dist/features/example-request/TextSelect.vue.d.ts +0 -34
- package/dist/features/example-request/TextSelect.vue.d.ts.map +0 -1
- package/dist/features/example-request/TextSelect.vue.js +0 -48
- package/dist/features/example-request/TextSelect.vue3.js +0 -5
- package/dist/features/example-request/index.d.ts +0 -3
- package/dist/features/example-request/index.d.ts.map +0 -1
- package/dist/stores/useHttpClientStore.d.ts +0 -43
- package/dist/stores/useHttpClientStore.d.ts.map +0 -1
- package/dist/stores/useHttpClientStore.js +0 -70
- package/dist/v2/hooks/useStore.d.ts +0 -9
- package/dist/v2/hooks/useStore.d.ts.map +0 -1
- /package/dist/components/Content/{Tag → Tags}/Tag.vue2.js +0 -0
- /package/dist/components/{Content/Lazy → Lazy}/Lazy.vue.js +0 -0
|
@@ -1,43 +1,44 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { provideUseId as
|
|
3
|
-
import { OpenApiClientButton as
|
|
4
|
-
import { LAYOUT_SYMBOL as
|
|
5
|
-
import { WORKSPACE_SYMBOL as
|
|
6
|
-
import { addScalarClassesToHeadless as
|
|
7
|
-
import { sleep as
|
|
8
|
-
import { hasObtrusiveScrollbars as
|
|
9
|
-
import { apiReferenceConfigurationSchema as
|
|
10
|
-
import { useBreakpoints as
|
|
11
|
-
import { useToasts as
|
|
12
|
-
import { useMediaQuery as
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import { useDocumentSource as
|
|
23
|
-
import { OPENAPI_VERSION_SYMBOL as
|
|
24
|
-
import { useSidebar as
|
|
25
|
-
import { PLUGIN_MANAGER_SYMBOL as
|
|
26
|
-
import { createPluginManager as
|
|
27
|
-
import
|
|
28
|
-
import
|
|
29
|
-
import
|
|
30
|
-
import
|
|
31
|
-
|
|
1
|
+
import { defineComponent as fe, computed as M, provide as S, ref as T, onBeforeMount as ve, onMounted as Y, watch as O, toValue as K, onUnmounted as pe, useId as ge, createElementBlock as f, openBlock as a, Fragment as z, createElementVNode as p, createVNode as v, normalizeStyle as he, normalizeClass as Se, unref as r, createCommentVNode as i, withDirectives as be, createBlock as b, renderSlot as d, normalizeProps as g, guardReactiveProps as h, withCtx as n, vShow as ye, createSlots as we } from "vue";
|
|
2
|
+
import { provideUseId as ke } from "@headlessui/vue";
|
|
3
|
+
import { OpenApiClientButton as $e } from "@scalar/api-client/components";
|
|
4
|
+
import { LAYOUT_SYMBOL as Me } from "@scalar/api-client/hooks";
|
|
5
|
+
import { WORKSPACE_SYMBOL as Te, ACTIVE_ENTITIES_SYMBOL as De } from "@scalar/api-client/store";
|
|
6
|
+
import { addScalarClassesToHeadless as Ce, ScalarErrorBoundary as Ee, ScalarSidebarFooter as Oe, ScalarColorModeToggleButton as Ie, ScalarColorModeToggleIcon as Be } from "@scalar/components";
|
|
7
|
+
import { sleep as Le } from "@scalar/helpers/testing/sleep";
|
|
8
|
+
import { hasObtrusiveScrollbars as Re, getThemeStyles as _e } from "@scalar/themes";
|
|
9
|
+
import { apiReferenceConfigurationSchema as Ae } from "@scalar/types/api-reference";
|
|
10
|
+
import { useBreakpoints as Pe } from "@scalar/use-hooks/useBreakpoints";
|
|
11
|
+
import { useToasts as He, ScalarToasts as Fe } from "@scalar/use-toasts";
|
|
12
|
+
import { useMediaQuery as Ne, useResizeObserver as Ve, useDebounceFn as Ue } from "@vueuse/core";
|
|
13
|
+
import Ye from "./ClassicHeader.vue.js";
|
|
14
|
+
import Ke from "./GettingStarted.vue.js";
|
|
15
|
+
import { hasLazyLoaded as ze } from "./Lazy/lazyBus.js";
|
|
16
|
+
import Ge from "./MobileHeader.vue.js";
|
|
17
|
+
import { parse as Qe } from "../helpers/parse.js";
|
|
18
|
+
import { CONFIGURATION_SYMBOL as We } from "../hooks/useConfig.js";
|
|
19
|
+
import { useNavState as je } from "../hooks/useNavState.js";
|
|
20
|
+
import { downloadEventBus as G, downloadDocument as qe } from "../libs/download.js";
|
|
21
|
+
import { createEmptySpecification as Je } from "../libs/openapi.js";
|
|
22
|
+
import { useDocumentSource as Xe } from "../features/document-source/hooks/useDocumentSource.js";
|
|
23
|
+
import { OPENAPI_VERSION_SYMBOL as Ze } from "../features/download-link/openapi-version-symbol.js";
|
|
24
|
+
import { useSidebar as xe } from "../features/sidebar/hooks/useSidebar.js";
|
|
25
|
+
import { PLUGIN_MANAGER_SYMBOL as et } from "../plugins/hooks/usePluginManager.js";
|
|
26
|
+
import { createPluginManager as tt } from "../plugins/plugin-manager.js";
|
|
27
|
+
import ot from "../features/sidebar/components/Sidebar.vue.js";
|
|
28
|
+
import Q from "../features/Search/SearchButton.vue.js";
|
|
29
|
+
import rt from "./Content/Content.vue.js";
|
|
30
|
+
import "./Content/Content.vue2.js";
|
|
31
|
+
import at from "../features/api-client-modal/ApiClientModal.vue.js";
|
|
32
|
+
const st = ["innerHTML"], it = { class: "references-header" }, nt = ["aria-label"], lt = { class: "references-navigation-list" }, dt = { key: 0 }, ut = {
|
|
32
33
|
key: 1,
|
|
33
34
|
class: "scalar-api-references-standalone-search"
|
|
34
|
-
},
|
|
35
|
+
}, ct = { key: 1 }, mt = { class: "references-editor" }, ft = { class: "references-editor-textarea" }, vt = ["aria-label"], pt = {
|
|
35
36
|
key: 0,
|
|
36
37
|
class: "w-64 *:!p-0 empty:hidden"
|
|
37
|
-
},
|
|
38
|
+
}, gt = {
|
|
38
39
|
key: 0,
|
|
39
40
|
class: "references-footer"
|
|
40
|
-
},
|
|
41
|
+
}, jt = /* @__PURE__ */ fe({
|
|
41
42
|
inheritAttrs: !1,
|
|
42
43
|
__name: "ApiReferenceLayout",
|
|
43
44
|
props: {
|
|
@@ -46,150 +47,140 @@ const st = ["innerHTML"], dt = { class: "references-header" }, ut = ["aria-label
|
|
|
46
47
|
originalDocument: {},
|
|
47
48
|
isDark: { type: Boolean },
|
|
48
49
|
parsedSpec: {},
|
|
49
|
-
rawSpec: {}
|
|
50
|
+
rawSpec: {},
|
|
51
|
+
store: {}
|
|
50
52
|
},
|
|
51
53
|
emits: ["changeTheme", "updateContent", "loadSwaggerFile", "linkSwaggerFile", "toggleDarkMode"],
|
|
52
|
-
setup(
|
|
54
|
+
setup(D) {
|
|
53
55
|
const t = M(
|
|
54
|
-
() =>
|
|
55
|
-
), { initializeToasts:
|
|
56
|
-
|
|
56
|
+
() => Ae.parse(D.configuration)
|
|
57
|
+
), { initializeToasts: W, toast: j } = He();
|
|
58
|
+
W((e) => j(e));
|
|
57
59
|
const {
|
|
58
|
-
originalDocument:
|
|
59
|
-
originalOpenApiVersion:
|
|
60
|
+
originalDocument: q,
|
|
61
|
+
originalOpenApiVersion: J,
|
|
60
62
|
dereferencedDocument: u,
|
|
61
|
-
workspaceStore:
|
|
62
|
-
activeEntitiesStore:
|
|
63
|
-
} =
|
|
63
|
+
workspaceStore: X,
|
|
64
|
+
activeEntitiesStore: Z
|
|
65
|
+
} = Xe({
|
|
64
66
|
configuration: t,
|
|
65
|
-
dereferencedDocument:
|
|
66
|
-
originalDocument:
|
|
67
|
+
dereferencedDocument: D.dereferencedDocument,
|
|
68
|
+
originalDocument: D.originalDocument
|
|
67
69
|
});
|
|
68
|
-
S(
|
|
69
|
-
const
|
|
70
|
-
|
|
71
|
-
|
|
70
|
+
S(Ze, J), S(Te, X), S(De, Z);
|
|
71
|
+
const x = Ne("(min-width: 1150px)"), ee = T("100dvh"), y = T(null);
|
|
72
|
+
Ve(y, (e) => {
|
|
73
|
+
ee.value = e[0] ? e[0].contentRect.height + "px" : "100dvh";
|
|
72
74
|
});
|
|
73
|
-
const
|
|
74
|
-
...
|
|
75
|
+
const te = M(Re), L = je(t), { isSidebarOpen: I, setCollapsedSidebarItem: R, scrollToOperation: oe, items: _ } = xe(u, {
|
|
76
|
+
...L,
|
|
75
77
|
config: t
|
|
76
78
|
}), {
|
|
77
|
-
getReferenceId:
|
|
78
|
-
getPathRoutingId:
|
|
79
|
-
getSectionId:
|
|
80
|
-
getTagId:
|
|
81
|
-
hash:
|
|
82
|
-
isIntersectionEnabled:
|
|
83
|
-
updateHash:
|
|
84
|
-
replaceUrlState:
|
|
85
|
-
} =
|
|
79
|
+
getReferenceId: re,
|
|
80
|
+
getPathRoutingId: ae,
|
|
81
|
+
getSectionId: se,
|
|
82
|
+
getTagId: ie,
|
|
83
|
+
hash: C,
|
|
84
|
+
isIntersectionEnabled: A,
|
|
85
|
+
updateHash: P,
|
|
86
|
+
replaceUrlState: ne
|
|
87
|
+
} = L;
|
|
86
88
|
if (t.value.redirect && typeof window < "u") {
|
|
87
89
|
const e = t.value.redirect(
|
|
88
90
|
(t.value.pathRouting ? window.location.pathname : "") + window.location.hash
|
|
89
91
|
);
|
|
90
92
|
e && history.replaceState({}, "", e);
|
|
91
93
|
}
|
|
92
|
-
|
|
93
|
-
|
|
94
|
+
ve(() => {
|
|
95
|
+
P(), Ce();
|
|
94
96
|
});
|
|
95
|
-
const
|
|
97
|
+
const H = async (e) => {
|
|
96
98
|
var o;
|
|
97
|
-
|
|
99
|
+
A.value = !1, P(), e ? oe(e) : (o = y.value) == null || o.scrollTo(0, 0), await Le(100), A.value = !0;
|
|
98
100
|
}, F = T(0);
|
|
99
|
-
|
|
100
|
-
var
|
|
101
|
+
Y(() => {
|
|
102
|
+
var s, w, k;
|
|
101
103
|
history.scrollRestoration = "manual";
|
|
102
|
-
const e = (
|
|
104
|
+
const e = (w = (s = y.value) == null ? void 0 : s.parentElement) == null ? void 0 : w.getBoundingClientRect(), o = (k = y.value) == null ? void 0 : k.getBoundingClientRect();
|
|
103
105
|
if (e && o) {
|
|
104
106
|
const $ = o.top - e.top;
|
|
105
107
|
F.value = $ < 2 ? 0 : $;
|
|
106
108
|
}
|
|
107
109
|
window.onhashchange = () => {
|
|
108
|
-
|
|
109
|
-
}, window.onpopstate = () => t.value.pathRouting &&
|
|
110
|
+
H(re());
|
|
111
|
+
}, window.onpopstate = () => t.value.pathRouting && H(ae(window.location.pathname)), window.addEventListener("scroll", N, { passive: !0 });
|
|
110
112
|
});
|
|
111
|
-
const
|
|
112
|
-
() =>
|
|
113
|
-
), N =
|
|
114
|
-
window.scrollY < 50 &&
|
|
115
|
-
}),
|
|
116
|
-
|
|
113
|
+
const le = M(
|
|
114
|
+
() => x.value || !t.value.isEditable
|
|
115
|
+
), N = Ue(() => {
|
|
116
|
+
window.scrollY < 50 && ze.value && ne("");
|
|
117
|
+
}), de = T(!1);
|
|
118
|
+
O(u, (e) => {
|
|
117
119
|
var o;
|
|
118
|
-
if (
|
|
119
|
-
const
|
|
120
|
-
|
|
120
|
+
if (C.value) {
|
|
121
|
+
const s = se(C.value);
|
|
122
|
+
s && R(s, !0);
|
|
121
123
|
} else {
|
|
122
|
-
const
|
|
123
|
-
|
|
124
|
+
const s = (o = e.tags) == null ? void 0 : o[0];
|
|
125
|
+
s && R(ie(s), !0);
|
|
124
126
|
}
|
|
125
|
-
|
|
127
|
+
de.value = !0;
|
|
126
128
|
});
|
|
127
|
-
const
|
|
128
|
-
|
|
129
|
+
const E = T(Je());
|
|
130
|
+
O(
|
|
129
131
|
u,
|
|
130
132
|
async (e) => {
|
|
131
133
|
if (!e)
|
|
132
134
|
return;
|
|
133
|
-
const o = await
|
|
134
|
-
|
|
135
|
+
const o = await Qe(e, _.value.entries);
|
|
136
|
+
E.value = o;
|
|
135
137
|
},
|
|
136
138
|
{ immediate: !0 }
|
|
137
139
|
);
|
|
138
140
|
const c = M(() => {
|
|
139
141
|
var e;
|
|
140
142
|
return {
|
|
141
|
-
spec:
|
|
142
|
-
breadcrumb: ((e =
|
|
143
|
+
spec: E.value,
|
|
144
|
+
breadcrumb: ((e = _.value) == null ? void 0 : e.titles.get(C.value)) ?? ""
|
|
143
145
|
};
|
|
144
146
|
});
|
|
145
|
-
|
|
146
|
-
() =>
|
|
147
|
-
|
|
148
|
-
|
|
147
|
+
Y(
|
|
148
|
+
() => G.on(({ filename: e, format: o }) => {
|
|
149
|
+
qe(
|
|
150
|
+
K(q) || K(D.rawSpec) || "",
|
|
149
151
|
e,
|
|
150
152
|
o
|
|
151
153
|
);
|
|
152
154
|
})
|
|
153
|
-
),
|
|
154
|
-
window.removeEventListener("scroll", N),
|
|
155
|
-
}),
|
|
156
|
-
|
|
157
|
-
|
|
155
|
+
), pe(() => {
|
|
156
|
+
window.removeEventListener("scroll", N), G.reset();
|
|
157
|
+
}), ke(() => ge()), S(Me, "modal"), S(We, t), S(
|
|
158
|
+
et,
|
|
159
|
+
tt({
|
|
158
160
|
plugins: t.value.plugins
|
|
159
161
|
})
|
|
160
162
|
);
|
|
161
|
-
|
|
162
|
-
D(
|
|
163
|
-
() => t.value[e],
|
|
164
|
-
(a) => {
|
|
165
|
-
typeof a < "u" && o(a);
|
|
166
|
-
},
|
|
167
|
-
{ immediate: !0 }
|
|
168
|
-
);
|
|
169
|
-
}
|
|
170
|
-
const { setExcludedClients: ce, setDefaultHttpClient: me } = xe();
|
|
171
|
-
V("defaultHttpClient", me), V("hiddenClients", ce);
|
|
172
|
-
const fe = M(
|
|
163
|
+
const ue = M(
|
|
173
164
|
() => `<style>
|
|
174
|
-
${
|
|
165
|
+
${_e(t.value.theme, {
|
|
175
166
|
fonts: t.value.withDefaultFonts
|
|
176
167
|
})}</style>`
|
|
177
|
-
), { mediaQueries:
|
|
178
|
-
return
|
|
168
|
+
), { mediaQueries: ce } = Pe(), me = !1;
|
|
169
|
+
return O(ce.lg, (e, o) => {
|
|
179
170
|
o && !e && (I.value = !1);
|
|
180
|
-
}),
|
|
171
|
+
}), O(C, (e, o) => {
|
|
181
172
|
e && e !== o && (I.value = !1);
|
|
182
173
|
}), (e, o) => {
|
|
183
|
-
var
|
|
184
|
-
return
|
|
185
|
-
p("div", { innerHTML:
|
|
174
|
+
var s, w, k, $, V;
|
|
175
|
+
return a(), f(z, null, [
|
|
176
|
+
p("div", { innerHTML: ue.value }, null, 8, st),
|
|
186
177
|
p("div", {
|
|
187
178
|
ref_key: "documentEl",
|
|
188
179
|
ref: y,
|
|
189
|
-
class:
|
|
180
|
+
class: Se(["scalar-app scalar-api-reference references-layout", [
|
|
190
181
|
{
|
|
191
182
|
"scalar-api-references-standalone-mobile": t.value.showSidebar ?? !0,
|
|
192
|
-
"scalar-scrollbars-obtrusive":
|
|
183
|
+
"scalar-scrollbars-obtrusive": te.value,
|
|
193
184
|
"references-editable": t.value.isEditable,
|
|
194
185
|
"references-sidebar": t.value.showSidebar,
|
|
195
186
|
"references-sidebar-mobile-open": r(I),
|
|
@@ -197,62 +188,62 @@ const st = ["innerHTML"], dt = { class: "references-header" }, ut = ["aria-label
|
|
|
197
188
|
},
|
|
198
189
|
e.$attrs.class
|
|
199
190
|
]]),
|
|
200
|
-
style:
|
|
191
|
+
style: he({
|
|
201
192
|
"--scalar-y-offset": `var(--scalar-custom-header-height, ${F.value}px)`
|
|
202
193
|
})
|
|
203
194
|
}, [
|
|
204
|
-
p("div",
|
|
205
|
-
t.value.layout === "modern" && (t.value.showSidebar ?? !0) ? (
|
|
195
|
+
p("div", it, [
|
|
196
|
+
t.value.layout === "modern" && (t.value.showSidebar ?? !0) ? (a(), b(Ge, {
|
|
206
197
|
key: 0,
|
|
207
198
|
breadcrumb: c.value.breadcrumb
|
|
208
199
|
}, null, 8, ["breadcrumb"])) : i("", !0),
|
|
209
200
|
d(e.$slots, "header", g(h(c.value)), void 0, !0)
|
|
210
201
|
]),
|
|
211
|
-
t.value.showSidebar ? (
|
|
202
|
+
t.value.showSidebar ? (a(), f("aside", {
|
|
212
203
|
key: 0,
|
|
213
|
-
"aria-label": `Sidebar for ${(
|
|
204
|
+
"aria-label": `Sidebar for ${(w = (s = r(u)) == null ? void 0 : s.info) == null ? void 0 : w.title}`,
|
|
214
205
|
class: "references-navigation t-doc__sidebar"
|
|
215
206
|
}, [
|
|
216
|
-
p("div",
|
|
217
|
-
v(r(
|
|
218
|
-
default:
|
|
219
|
-
var
|
|
207
|
+
p("div", lt, [
|
|
208
|
+
v(r(Ee), null, {
|
|
209
|
+
default: n(() => {
|
|
210
|
+
var l, m;
|
|
220
211
|
return [
|
|
221
|
-
v(r(
|
|
222
|
-
title: ((m = (
|
|
212
|
+
v(r(ot), {
|
|
213
|
+
title: ((m = (l = r(u)) == null ? void 0 : l.info) == null ? void 0 : m.title) ?? "The OpenAPI Schema"
|
|
223
214
|
}, {
|
|
224
|
-
"sidebar-start":
|
|
225
|
-
var B,
|
|
215
|
+
"sidebar-start": n(() => {
|
|
216
|
+
var B, U;
|
|
226
217
|
return [
|
|
227
|
-
e.$slots["document-selector"] ? (
|
|
218
|
+
e.$slots["document-selector"] ? (a(), f("div", dt, [
|
|
228
219
|
d(e.$slots, "document-selector", {}, void 0, !0)
|
|
229
220
|
])) : i("", !0),
|
|
230
|
-
t.value.hideSearch ? i("", !0) : (
|
|
231
|
-
v(r(
|
|
221
|
+
t.value.hideSearch ? i("", !0) : (a(), f("div", ut, [
|
|
222
|
+
v(r(Q), {
|
|
232
223
|
searchHotKey: (B = t.value) == null ? void 0 : B.searchHotKey,
|
|
233
|
-
hideModels: (
|
|
234
|
-
spec:
|
|
224
|
+
hideModels: (U = t.value) == null ? void 0 : U.hideModels,
|
|
225
|
+
spec: E.value
|
|
235
226
|
}, null, 8, ["searchHotKey", "hideModels", "spec"])
|
|
236
227
|
])),
|
|
237
228
|
d(e.$slots, "sidebar-start", g(h(c.value)), void 0, !0)
|
|
238
229
|
];
|
|
239
230
|
}),
|
|
240
|
-
"sidebar-end":
|
|
231
|
+
"sidebar-end": n(() => [
|
|
241
232
|
d(e.$slots, "sidebar-end", g(h(c.value)), () => [
|
|
242
|
-
v(r(
|
|
243
|
-
toggle:
|
|
244
|
-
t.value.hideDarkModeToggle ? (
|
|
233
|
+
v(r(Oe), { class: "darklight-reference" }, {
|
|
234
|
+
toggle: n(() => [
|
|
235
|
+
t.value.hideDarkModeToggle ? (a(), f("span", ct)) : (a(), b(r(Ie), {
|
|
245
236
|
key: 0,
|
|
246
237
|
modelValue: e.isDark,
|
|
247
238
|
"onUpdate:modelValue": o[0] || (o[0] = (B) => e.$emit("toggleDarkMode"))
|
|
248
239
|
}, null, 8, ["modelValue"]))
|
|
249
240
|
]),
|
|
250
|
-
default:
|
|
251
|
-
t.value.hideClientButton ? i("", !0) : (
|
|
241
|
+
default: n(() => [
|
|
242
|
+
t.value.hideClientButton ? i("", !0) : (a(), b(r($e), {
|
|
252
243
|
key: 0,
|
|
253
244
|
buttonSource: "sidebar",
|
|
254
245
|
integration: t.value._integration,
|
|
255
|
-
isDevelopment:
|
|
246
|
+
isDevelopment: me,
|
|
256
247
|
url: t.value.url
|
|
257
248
|
}, null, 8, ["integration", "url"]))
|
|
258
249
|
]),
|
|
@@ -267,49 +258,49 @@ const st = ["innerHTML"], dt = { class: "references-header" }, ut = ["aria-label
|
|
|
267
258
|
_: 3
|
|
268
259
|
})
|
|
269
260
|
])
|
|
270
|
-
], 8,
|
|
271
|
-
|
|
272
|
-
p("div",
|
|
261
|
+
], 8, nt)) : i("", !0),
|
|
262
|
+
be(p("div", mt, [
|
|
263
|
+
p("div", ft, [
|
|
273
264
|
d(e.$slots, "editor", g(h(c.value)), void 0, !0)
|
|
274
265
|
])
|
|
275
266
|
], 512), [
|
|
276
|
-
[
|
|
267
|
+
[ye, t.value.isEditable]
|
|
277
268
|
]),
|
|
278
|
-
|
|
269
|
+
le.value ? (a(), f(z, { key: 1 }, [
|
|
279
270
|
p("main", {
|
|
280
|
-
"aria-label": `Open API Documentation for ${($ = (
|
|
271
|
+
"aria-label": `Open API Documentation for ${($ = (k = r(u)) == null ? void 0 : k.info) == null ? void 0 : $.title}`,
|
|
281
272
|
class: "references-rendered"
|
|
282
273
|
}, [
|
|
283
|
-
v(r(
|
|
284
|
-
layout: t.value.layout,
|
|
274
|
+
v(r(rt), {
|
|
285
275
|
document: r(u),
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
276
|
+
config: t.value,
|
|
277
|
+
store: e.store
|
|
278
|
+
}, we({
|
|
279
|
+
start: n(() => [
|
|
289
280
|
d(e.$slots, "content-start", g(h(c.value)), () => [
|
|
290
|
-
t.value.layout === "classic" ? (
|
|
291
|
-
"dark-mode-toggle":
|
|
292
|
-
t.value.hideDarkModeToggle ? i("", !0) : (
|
|
281
|
+
t.value.layout === "classic" ? (a(), b(Ye, { key: 0 }, {
|
|
282
|
+
"dark-mode-toggle": n(() => [
|
|
283
|
+
t.value.hideDarkModeToggle ? i("", !0) : (a(), b(r(Be), {
|
|
293
284
|
key: 0,
|
|
294
285
|
class: "text-c-2 hover:text-c-1",
|
|
295
286
|
mode: e.isDark ? "dark" : "light",
|
|
296
287
|
style: { transform: "scale(1.4)" },
|
|
297
288
|
variant: "icon",
|
|
298
|
-
onClick: o[1] || (o[1] = (
|
|
289
|
+
onClick: o[1] || (o[1] = (l) => e.$emit("toggleDarkMode"))
|
|
299
290
|
}, null, 8, ["mode"]))
|
|
300
291
|
]),
|
|
301
|
-
default:
|
|
302
|
-
var
|
|
292
|
+
default: n(() => {
|
|
293
|
+
var l;
|
|
303
294
|
return [
|
|
304
|
-
e.$slots["document-selector"] ? (
|
|
295
|
+
e.$slots["document-selector"] ? (a(), f("div", pt, [
|
|
305
296
|
d(e.$slots, "document-selector", {}, void 0, !0)
|
|
306
297
|
])) : i("", !0),
|
|
307
|
-
t.value.hideSearch ? i("", !0) : (
|
|
298
|
+
t.value.hideSearch ? i("", !0) : (a(), b(r(Q), {
|
|
308
299
|
key: 1,
|
|
309
300
|
class: "t-doc__sidebar max-w-64",
|
|
310
301
|
searchHotKey: t.value.searchHotKey,
|
|
311
|
-
hideModels: (
|
|
312
|
-
spec:
|
|
302
|
+
hideModels: (l = t.value) == null ? void 0 : l.hideModels,
|
|
303
|
+
spec: E.value
|
|
313
304
|
}, null, 8, ["searchHotKey", "hideModels", "spec"]))
|
|
314
305
|
];
|
|
315
306
|
}),
|
|
@@ -317,18 +308,18 @@ const st = ["innerHTML"], dt = { class: "references-header" }, ut = ["aria-label
|
|
|
317
308
|
})) : i("", !0)
|
|
318
309
|
], !0)
|
|
319
310
|
]),
|
|
320
|
-
end:
|
|
311
|
+
end: n(() => [
|
|
321
312
|
d(e.$slots, "content-end", g(h(c.value)), void 0, !0)
|
|
322
313
|
]),
|
|
323
314
|
_: 2
|
|
324
315
|
}, [
|
|
325
|
-
(
|
|
316
|
+
(V = t.value) != null && V.isEditable ? {
|
|
326
317
|
name: "empty-state",
|
|
327
|
-
fn:
|
|
328
|
-
var
|
|
318
|
+
fn: n(() => {
|
|
319
|
+
var l;
|
|
329
320
|
return [
|
|
330
|
-
v(
|
|
331
|
-
theme: ((
|
|
321
|
+
v(Ke, {
|
|
322
|
+
theme: ((l = t.value) == null ? void 0 : l.theme) || "default",
|
|
332
323
|
onChangeTheme: o[2] || (o[2] = (m) => e.$emit("changeTheme", m)),
|
|
333
324
|
onLinkSwaggerFile: o[3] || (o[3] = (m) => e.$emit("linkSwaggerFile")),
|
|
334
325
|
onLoadSwaggerFile: o[4] || (o[4] = (m) => e.$emit("loadSwaggerFile")),
|
|
@@ -338,22 +329,22 @@ const st = ["innerHTML"], dt = { class: "references-header" }, ut = ["aria-label
|
|
|
338
329
|
}),
|
|
339
330
|
key: "0"
|
|
340
331
|
} : void 0
|
|
341
|
-
]), 1032, ["
|
|
342
|
-
], 8,
|
|
343
|
-
e.$slots.footer ? (
|
|
332
|
+
]), 1032, ["document", "config", "store"])
|
|
333
|
+
], 8, vt),
|
|
334
|
+
e.$slots.footer ? (a(), f("div", gt, [
|
|
344
335
|
d(e.$slots, "footer", g(h(c.value)), void 0, !0)
|
|
345
336
|
])) : i("", !0)
|
|
346
337
|
], 64)) : i("", !0),
|
|
347
|
-
v(r(
|
|
338
|
+
v(r(at), {
|
|
348
339
|
configuration: t.value,
|
|
349
340
|
dereferencedDocument: r(u)
|
|
350
341
|
}, null, 8, ["configuration", "dereferencedDocument"])
|
|
351
342
|
], 6),
|
|
352
|
-
v(r(
|
|
343
|
+
v(r(Fe))
|
|
353
344
|
], 64);
|
|
354
345
|
};
|
|
355
346
|
}
|
|
356
347
|
});
|
|
357
348
|
export {
|
|
358
|
-
|
|
349
|
+
jt as default
|
|
359
350
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Badge.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Badge/Badge.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Badge.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Badge/Badge.vue"],"names":[],"mappings":"AA8CA,iBAAS,cAAc;WAgDT,OAAO,IAA6B;;yBARrB,GAAG;;;;EAa/B;AAOD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,0RAMnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAKpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { createElementBlock as t, openBlock as o, renderSlot as r } from "vue";
|
|
2
|
-
|
|
2
|
+
import "./Badge.vue2.js";
|
|
3
3
|
import c from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const d = {}, n = { class: "badge" };
|
|
5
5
|
function s(e, a) {
|
|
6
|
-
return o(), t("div",
|
|
6
|
+
return o(), t("div", n, [
|
|
7
7
|
r(e.$slots, "default", {}, void 0, !0)
|
|
8
8
|
]);
|
|
9
9
|
}
|
|
10
|
-
const l = /* @__PURE__ */ c(
|
|
10
|
+
const l = /* @__PURE__ */ c(d, [["render", s], ["__scopeId", "data-v-f1bc5cda"]]);
|
|
11
11
|
export {
|
|
12
12
|
l as default
|
|
13
13
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createElementBlock as c, openBlock as t, createElementVNode as s, renderSlot as r } from "vue";
|
|
2
|
-
|
|
2
|
+
import "./ClassicHeader.vue2.js";
|
|
3
3
|
import o from "../_virtual/_plugin-vue_export-helper.js";
|
|
4
4
|
const n = {}, d = { class: "references-classic-header-container" }, a = { class: "references-classic-header" }, i = { class: "references-classic-header-content" };
|
|
5
5
|
function l(e, _) {
|
|
@@ -1,3 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
import type { AvailableClients } from '@scalar/snippetz';
|
|
2
|
+
import type { WorkspaceDocument } from '@scalar/workspace-store/schemas/schemas/workspace';
|
|
3
|
+
import type { ClientOptionGroup } from '../../../v2/blocks/scalar-request-example-block/types';
|
|
4
|
+
type __VLS_Props = {
|
|
5
|
+
/** Current document from the store */
|
|
6
|
+
document: WorkspaceDocument;
|
|
7
|
+
/** Computed list of all available Http Client options */
|
|
8
|
+
clientOptions: ClientOptionGroup[];
|
|
9
|
+
/** The currently selected Http Client */
|
|
10
|
+
selectedClient?: AvailableClients[number];
|
|
11
|
+
};
|
|
12
|
+
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, {
|
|
13
|
+
wrapper: HTMLDivElement;
|
|
14
|
+
}, any>;
|
|
2
15
|
export default _default;
|
|
3
16
|
//# sourceMappingURL=ClientLibraries.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ClientLibraries.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/ClientLibraries/ClientLibraries.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"ClientLibraries.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/ClientLibraries/ClientLibraries.vue"],"names":[],"mappings":"AAsMA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAA;AACxD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mDAAmD,CAAA;AAI1F,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gDAAgD,CAAA;AAQvF,KAAK,WAAW,GAAG;IACjB,sCAAsC;IACtC,QAAQ,EAAE,iBAAiB,CAAA;IAC3B,yDAAyD;IACzD,aAAa,EAAE,iBAAiB,EAAE,CAAA;IAClC,yCAAyC;IACzC,cAAc,CAAC,EAAE,gBAAgB,CAAC,MAAM,CAAC,CAAA;CAC1C,CAAC;;;;AA8PF,wBAOG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./ClientLibraries.vue2.js";
|
|
2
|
-
|
|
2
|
+
import "./ClientLibraries.vue3.js";
|
|
3
3
|
import r from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const e = /* @__PURE__ */ r(o, [["__scopeId", "data-v-798b4d3b"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
e as default
|
|
7
7
|
};
|