@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,16 +0,0 @@
|
|
|
1
|
-
import { type HttpClientState } from '../../../stores/useHttpClientStore.js';
|
|
2
|
-
import type { ClientId, Target } from '@scalar/snippetz';
|
|
3
|
-
export type FeaturedClient = {
|
|
4
|
-
targetKey: Target['key'];
|
|
5
|
-
clientKey: ClientId<Target['key']>;
|
|
6
|
-
};
|
|
7
|
-
/**
|
|
8
|
-
* Provides a list of featured http clients
|
|
9
|
-
*/
|
|
10
|
-
export declare function useFeaturedHttpClients(): {
|
|
11
|
-
/** The featured http clients */
|
|
12
|
-
featuredClients: FeaturedClient[];
|
|
13
|
-
/** Whether a client is featured */
|
|
14
|
-
isFeatured: (client: HttpClientState) => boolean;
|
|
15
|
-
};
|
|
16
|
-
//# sourceMappingURL=useFeaturedHttpClients.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useFeaturedHttpClients.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/ClientLibraries/useFeaturedHttpClients.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,eAAe,EAAsB,MAAM,6BAA6B,CAAA;AACtF,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;AAExD,MAAM,MAAM,cAAc,GAAG;IAAE,SAAS,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC;IAAC,SAAS,EAAE,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAA;CAAE,CAAA;AAE7F;;GAEG;AACH,wBAAgB,sBAAsB;IAwClC,gCAAgC;;IAEhC,mCAAmC;yBANT,eAAe;EAS5C"}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { useHttpClientStore as y } from "../../../stores/useHttpClientStore.js";
|
|
2
|
-
function K() {
|
|
3
|
-
const { availableTargets: r } = y(), n = [
|
|
4
|
-
{
|
|
5
|
-
targetKey: "shell",
|
|
6
|
-
clientKey: "curl"
|
|
7
|
-
},
|
|
8
|
-
{
|
|
9
|
-
targetKey: "ruby",
|
|
10
|
-
clientKey: "native"
|
|
11
|
-
},
|
|
12
|
-
{
|
|
13
|
-
targetKey: "node",
|
|
14
|
-
clientKey: "undici"
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
targetKey: "php",
|
|
18
|
-
clientKey: "guzzle"
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
targetKey: "python",
|
|
22
|
-
clientKey: "python3"
|
|
23
|
-
}
|
|
24
|
-
].filter(
|
|
25
|
-
(e) => r.value.find((t) => t.key === e.targetKey && t.clients.find((i) => i.client === e.clientKey))
|
|
26
|
-
);
|
|
27
|
-
return {
|
|
28
|
-
/** The featured http clients */
|
|
29
|
-
featuredClients: n,
|
|
30
|
-
/** Whether a client is featured */
|
|
31
|
-
isFeatured: (e) => n.some((t) => t.targetKey === e.targetKey && t.clientKey === e.clientKey)
|
|
32
|
-
};
|
|
33
|
-
}
|
|
34
|
-
export {
|
|
35
|
-
K as useFeaturedHttpClients
|
|
36
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Lazy.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Lazy/Lazy.vue"],"names":[],"mappings":"AA6DA;;;;;GAKG;AACH,KAAK,WAAW,GAAG;IAEf,EAAE,CAAC,EAAE,MAAM,CAAA;IAEX,MAAM,CAAC,EAAE,OAAO,CAAA;IAEhB,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB,CAAC;AA0CJ,iBAAS,cAAc;WAmCT,OAAO,IAA6B;;yBARrB,GAAG;;;;EAa/B;AAUD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;YAhGR,OAAO;iBAEF,MAAM;6EAqGtB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAgBpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { defineComponent as n, ref as s, nextTick as i, renderSlot as u, createCommentVNode as r } from "vue";
|
|
2
|
-
import { lazyBus as a } from "./lazyBus.js";
|
|
3
|
-
const y = /* @__PURE__ */ n({
|
|
4
|
-
__name: "Lazy",
|
|
5
|
-
props: {
|
|
6
|
-
id: {},
|
|
7
|
-
isLazy: { type: Boolean, default: !0 },
|
|
8
|
-
lazyTimeout: { default: 0 }
|
|
9
|
-
},
|
|
10
|
-
setup(d) {
|
|
11
|
-
const e = d, l = (t = () => {
|
|
12
|
-
}) => {
|
|
13
|
-
typeof window > "u" || ("requestIdleCallback" in window ? setTimeout(() => window.requestIdleCallback(t), e.lazyTimeout) : setTimeout(() => i(t), e.lazyTimeout ?? 300));
|
|
14
|
-
}, o = s(!e.isLazy);
|
|
15
|
-
return e.isLazy ? l(() => {
|
|
16
|
-
o.value = !0, e.id && i(() => a.emit({ id: e.id }));
|
|
17
|
-
}) : e.id && i(() => a.emit({ id: e.id })), (t, f) => o.value ? u(t.$slots, "default", { key: 0 }) : r("", !0);
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
export {
|
|
21
|
-
y as default
|
|
22
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import type { Collection, Server } from '@scalar/oas-utils/entities/spec';
|
|
2
|
-
import type { OpenAPIV3_1 } from '@scalar/openapi-types';
|
|
3
|
-
import type { Spec } from '@scalar/types/legacy';
|
|
4
|
-
declare const _default: import("vue").DefineComponent<{
|
|
5
|
-
document: OpenAPIV3_1.Document;
|
|
6
|
-
collection: Collection;
|
|
7
|
-
server?: Server;
|
|
8
|
-
layout?: "modern" | "classic";
|
|
9
|
-
parsedSpec: Spec;
|
|
10
|
-
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
|
|
11
|
-
document: OpenAPIV3_1.Document;
|
|
12
|
-
collection: Collection;
|
|
13
|
-
server?: Server;
|
|
14
|
-
layout?: "modern" | "classic";
|
|
15
|
-
parsedSpec: Spec;
|
|
16
|
-
}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
17
|
-
export default _default;
|
|
18
|
-
//# sourceMappingURL=Loading.vue.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Loading.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Lazy/Loading.vue"],"names":[],"mappings":"AAsQA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAA;AACzE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACxD,OAAO,KAAK,EACV,IAAI,EAGL,MAAM,sBAAsB,CAAA;;cAuCjB,WAAW,CAAC,QAAQ;gBAClB,UAAU;aACb,MAAM;aACN,QAAQ,GAAG,SAAS;gBACjB,IAAI;;cAJN,WAAW,CAAC,QAAQ;gBAClB,UAAU;aACb,MAAM;aACN,QAAQ,GAAG,SAAS;gBACjB,IAAI;;AApBlB,wBAmUK"}
|
|
@@ -1,163 +0,0 @@
|
|
|
1
|
-
import { defineComponent as M, ref as v, watch as x, onMounted as D, withDirectives as E, createElementBlock as m, openBlock as i, normalizeClass as H, createBlock as p, createCommentVNode as b, Fragment as g, renderList as w, unref as l, withCtx as f, createVNode as y, createTextVNode as K, toDisplayString as j, vShow as A } from "vue";
|
|
2
|
-
import { scrollToId as T } from "@scalar/helpers/dom/scroll-to-id";
|
|
3
|
-
import { lazyBus as F } from "./lazyBus.js";
|
|
4
|
-
import { useNavState as $ } from "../../../hooks/useNavState.js";
|
|
5
|
-
import { getModels as S } from "../../../libs/openapi.js";
|
|
6
|
-
import q from "../Tag/TagSection.vue.js";
|
|
7
|
-
import G from "../../../features/Operation/Operation.vue.js";
|
|
8
|
-
import J from "../../Section/SectionContainer.vue.js";
|
|
9
|
-
import P from "../../Section/Section.vue.js";
|
|
10
|
-
import Q from "../../Section/SectionContent.vue.js";
|
|
11
|
-
import R from "../../Section/SectionHeader.vue.js";
|
|
12
|
-
import U from "../../Anchor/Anchor.vue.js";
|
|
13
|
-
import X from "../../Section/SectionHeaderTag.vue.js";
|
|
14
|
-
import Y from "../Schema/Schema.vue.js";
|
|
15
|
-
const C = v(!1), ce = /* @__PURE__ */ M({
|
|
16
|
-
__name: "Loading",
|
|
17
|
-
props: {
|
|
18
|
-
document: {},
|
|
19
|
-
collection: {},
|
|
20
|
-
server: {},
|
|
21
|
-
layout: { default: "modern" },
|
|
22
|
-
parsedSpec: {}
|
|
23
|
-
},
|
|
24
|
-
setup(s) {
|
|
25
|
-
const z = v(!1), k = v([]), I = v([]), { getModelId: W, getSectionId: B, getTagId: N, hash: a, isIntersectionEnabled: h } = $(), L = v(!C.value && s.layout !== "classic" && a.value);
|
|
26
|
-
x(
|
|
27
|
-
() => {
|
|
28
|
-
var t;
|
|
29
|
-
return (t = s.parsedSpec.tags) == null ? void 0 : t.length;
|
|
30
|
-
},
|
|
31
|
-
(t) => {
|
|
32
|
-
var e, d;
|
|
33
|
-
if (!a.value || typeof t != "number" || !s.parsedSpec.tags)
|
|
34
|
-
return;
|
|
35
|
-
const n = B();
|
|
36
|
-
if (n.startsWith("tag")) {
|
|
37
|
-
let o = 0;
|
|
38
|
-
const c = ((e = s.parsedSpec.tags) == null ? void 0 : e.findIndex((u) => N(u) === n)) ?? 0;
|
|
39
|
-
o = (d = s.parsedSpec.tags[c]) == null ? void 0 : d.operations.findIndex(
|
|
40
|
-
({ id: u }) => u === a.value
|
|
41
|
-
);
|
|
42
|
-
const r = s.parsedSpec.tags[c];
|
|
43
|
-
if (!r)
|
|
44
|
-
return;
|
|
45
|
-
r.name !== "default" && (z.value = n !== a.value && n.startsWith("tag")), k.value.push({
|
|
46
|
-
...r,
|
|
47
|
-
lazyOperations: r.operations.slice(o, o + 2).map((u) => ({
|
|
48
|
-
...u,
|
|
49
|
-
// Prefix the id with lazy- to avoid collisions with the real ids
|
|
50
|
-
id: "lazy-" + u.id
|
|
51
|
-
}))
|
|
52
|
-
}), a.value.includes("/description/") && (typeof window < "u" && T(a.value), setTimeout(() => h.value = !0, 1e3));
|
|
53
|
-
} else if (a.value.startsWith("model")) {
|
|
54
|
-
const o = Object.keys(S(s.document) ?? {}), [, c] = a.value.toLowerCase().split("/"), r = a.value === "models" ? 0 : o.findIndex((u) => u.toLowerCase() === c);
|
|
55
|
-
if (r === -1)
|
|
56
|
-
return;
|
|
57
|
-
I.value = o.slice(r, r + 3);
|
|
58
|
-
} else
|
|
59
|
-
typeof window < "u" && T(a.value), setTimeout(() => h.value = !0, 1e3);
|
|
60
|
-
},
|
|
61
|
-
{ immediate: !0 }
|
|
62
|
-
);
|
|
63
|
-
const V = F.on(({ id: t }) => {
|
|
64
|
-
const n = a.value;
|
|
65
|
-
!n || t !== n || (V(), setTimeout(() => {
|
|
66
|
-
typeof window < "u" && T(n), L.value = !1, C.value = !0, setTimeout(() => {
|
|
67
|
-
h.value = !0;
|
|
68
|
-
}, 1e3);
|
|
69
|
-
}, 300));
|
|
70
|
-
});
|
|
71
|
-
return D(() => {
|
|
72
|
-
a.value || (C.value = !0, setTimeout(() => {
|
|
73
|
-
h.value = !0;
|
|
74
|
-
}, 1e3));
|
|
75
|
-
}), (t, n) => E((i(), m("div", {
|
|
76
|
-
class: H(["references-loading", {
|
|
77
|
-
"references-loading-hidden-tag": z.value,
|
|
78
|
-
"references-loading-top-spacer": k.value.length
|
|
79
|
-
}])
|
|
80
|
-
}, [
|
|
81
|
-
(i(!0), m(g, null, w(k.value, (e, d) => (i(), m(g, {
|
|
82
|
-
key: e.name + d
|
|
83
|
-
}, [
|
|
84
|
-
e.operations && e.operations.length > 0 ? (i(), p(l(q), {
|
|
85
|
-
key: 0,
|
|
86
|
-
collection: t.collection,
|
|
87
|
-
spec: t.parsedSpec,
|
|
88
|
-
id: "lazy-{{ getTagId(tag) }}",
|
|
89
|
-
tag: e
|
|
90
|
-
}, {
|
|
91
|
-
default: f(() => [
|
|
92
|
-
(i(!0), m(g, null, w(e.lazyOperations, (o) => (i(), p(l(G), {
|
|
93
|
-
path: o.path,
|
|
94
|
-
method: o.httpVerb,
|
|
95
|
-
isWebhook: o.isWebhook,
|
|
96
|
-
key: o.id,
|
|
97
|
-
id: o.id,
|
|
98
|
-
collection: t.collection,
|
|
99
|
-
layout: t.layout,
|
|
100
|
-
server: t.server
|
|
101
|
-
}, null, 8, ["path", "method", "isWebhook", "id", "collection", "layout", "server"]))), 128))
|
|
102
|
-
]),
|
|
103
|
-
_: 2
|
|
104
|
-
}, 1032, ["collection", "spec", "tag"])) : b("", !0)
|
|
105
|
-
], 64))), 128)),
|
|
106
|
-
I.value.length ? (i(), p(l(J), { key: 0 }, {
|
|
107
|
-
default: f(() => [
|
|
108
|
-
(i(!0), m(g, null, w(I.value, (e) => (i(), p(l(P), {
|
|
109
|
-
key: e,
|
|
110
|
-
label: e
|
|
111
|
-
}, {
|
|
112
|
-
default: f(() => {
|
|
113
|
-
var d;
|
|
114
|
-
return [
|
|
115
|
-
(d = l(S)(t.document)) != null && d[e] ? (i(), p(l(Q), { key: 0 }, {
|
|
116
|
-
default: f(() => {
|
|
117
|
-
var o;
|
|
118
|
-
return [
|
|
119
|
-
y(l(R), null, {
|
|
120
|
-
default: f(() => [
|
|
121
|
-
y(l(U), {
|
|
122
|
-
id: "lazy-" + l(W)({ name: e })
|
|
123
|
-
}, {
|
|
124
|
-
default: f(() => [
|
|
125
|
-
y(l(X), { level: 2 }, {
|
|
126
|
-
default: f(() => {
|
|
127
|
-
var c;
|
|
128
|
-
return [
|
|
129
|
-
K(j(((c = l(S)(t.document)) == null ? void 0 : c[e]).title ?? e), 1)
|
|
130
|
-
];
|
|
131
|
-
}),
|
|
132
|
-
_: 2
|
|
133
|
-
}, 1024)
|
|
134
|
-
]),
|
|
135
|
-
_: 2
|
|
136
|
-
}, 1032, ["id"])
|
|
137
|
-
]),
|
|
138
|
-
_: 2
|
|
139
|
-
}, 1024),
|
|
140
|
-
y(l(Y), {
|
|
141
|
-
name: e,
|
|
142
|
-
noncollapsible: "",
|
|
143
|
-
value: (o = l(S)(t.document)) == null ? void 0 : o[e]
|
|
144
|
-
}, null, 8, ["name", "value"])
|
|
145
|
-
];
|
|
146
|
-
}),
|
|
147
|
-
_: 2
|
|
148
|
-
}, 1024)) : b("", !0)
|
|
149
|
-
];
|
|
150
|
-
}),
|
|
151
|
-
_: 2
|
|
152
|
-
}, 1032, ["label"]))), 128))
|
|
153
|
-
]),
|
|
154
|
-
_: 1
|
|
155
|
-
})) : b("", !0)
|
|
156
|
-
], 2)), [
|
|
157
|
-
[A, L.value]
|
|
158
|
-
]);
|
|
159
|
-
}
|
|
160
|
-
});
|
|
161
|
-
export {
|
|
162
|
-
ce as default
|
|
163
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Lazy/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,YAAY,CAAA;AAC5C,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,eAAe,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"lazyBus.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Lazy/lazyBus.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,OAAO;QADqB,MAAM;OACI,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ModelsAccordion.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Models/ModelsAccordion.vue"],"names":[],"mappings":"AAkGA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAgBxD,KAAK,WAAW,GAAG;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,YAAY,CAAC,GAAG,OAAO,CAAA;CAC7D,CAAC;;AAqKF,wBAMG"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"OperationsList.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/OperationsList.vue"],"names":[],"mappings":"AAiEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAA;AACjE,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAS/C,KAAK,WAAW,GAAG;IACjB,GAAG,EAAE,GAAG,CAAA;IACR,UAAU,EAAE,UAAU,CAAA;IACtB,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,CAAC;;AA+GF,wBAMG"}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { defineComponent as u, computed as f, createBlock as c, createCommentVNode as C, openBlock as a, unref as o, withCtx as t, createVNode as l, createTextVNode as p, toDisplayString as g, createElementVNode as _, createElementBlock as N, Fragment as S, renderList as k } from "vue";
|
|
2
|
-
import { ScalarCard as y, ScalarCardHeader as O, ScalarCardSection as B } from "@scalar/components";
|
|
3
|
-
import V from "../../ScreenReader.vue.js";
|
|
4
|
-
import L from "./OperationsListItem.vue.js";
|
|
5
|
-
const b = ["aria-label"], x = /* @__PURE__ */ u({
|
|
6
|
-
__name: "OperationsList",
|
|
7
|
-
props: {
|
|
8
|
-
tag: {},
|
|
9
|
-
collection: {},
|
|
10
|
-
isCollapsed: { type: Boolean }
|
|
11
|
-
},
|
|
12
|
-
setup(m) {
|
|
13
|
-
const r = m, n = f(() => r.tag["x-displayName"] ?? r.tag.name);
|
|
14
|
-
return (e, s) => {
|
|
15
|
-
var i;
|
|
16
|
-
return ((i = e.tag.operations) == null ? void 0 : i.length) > 0 ? (a(), c(o(y), {
|
|
17
|
-
key: 0,
|
|
18
|
-
class: "endpoints-card"
|
|
19
|
-
}, {
|
|
20
|
-
default: t(() => [
|
|
21
|
-
l(o(O), null, {
|
|
22
|
-
default: t(() => [
|
|
23
|
-
l(V, null, {
|
|
24
|
-
default: t(() => [
|
|
25
|
-
p(g(n.value), 1)
|
|
26
|
-
]),
|
|
27
|
-
_: 1
|
|
28
|
-
}),
|
|
29
|
-
s[0] || (s[0] = p(" Operations "))
|
|
30
|
-
]),
|
|
31
|
-
_: 1,
|
|
32
|
-
__: [0]
|
|
33
|
-
}),
|
|
34
|
-
l(o(B), { class: "custom-scroll" }, {
|
|
35
|
-
default: t(() => [
|
|
36
|
-
_("ul", {
|
|
37
|
-
"aria-label": `${n.value} endpoints`,
|
|
38
|
-
class: "endpoints"
|
|
39
|
-
}, [
|
|
40
|
-
(a(!0), N(S, null, k(e.tag.operations, (d) => (a(), c(L, {
|
|
41
|
-
key: d.id,
|
|
42
|
-
collection: e.collection,
|
|
43
|
-
isCollapsed: e.isCollapsed,
|
|
44
|
-
transformedOperation: d
|
|
45
|
-
}, null, 8, ["collection", "isCollapsed", "transformedOperation"]))), 128))
|
|
46
|
-
], 8, b)
|
|
47
|
-
]),
|
|
48
|
-
_: 1
|
|
49
|
-
})
|
|
50
|
-
]),
|
|
51
|
-
_: 1
|
|
52
|
-
})) : C("", !0);
|
|
53
|
-
};
|
|
54
|
-
}
|
|
55
|
-
});
|
|
56
|
-
export {
|
|
57
|
-
x as default
|
|
58
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"OperationsListItem.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/OperationsListItem.vue"],"names":[],"mappings":"AAsHA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAA;AAEjE,OAAO,KAAK,EAEV,oBAAoB,EAErB,MAAM,sBAAsB,CAAA;AAS7B,KAAK,WAAW,GAAG;IACjB,oBAAoB,EAAE,oBAAoB,CAAA;IAC1C,UAAU,EAAE,UAAU,CAAA;IACtB,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,CAAC;;AA4IF,wBAOG"}
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import { defineComponent as c, computed as u, createElementBlock as h, openBlock as r, createBlock as a, createCommentVNode as s, createElementVNode as i, unref as t, withCtx as d, createTextVNode as O, toDisplayString as p, withModifiers as k, createVNode as y, normalizeClass as C } from "vue";
|
|
2
|
-
import { ScalarIconWebhooksLogo as V } from "@scalar/icons";
|
|
3
|
-
import { isOperationDeprecated as b } from "@scalar/oas-utils/helpers";
|
|
4
|
-
import { useSidebar as g } from "../../../features/sidebar/hooks/useSidebar.js";
|
|
5
|
-
import v from "../../Section/SectionHeaderTag.vue.js";
|
|
6
|
-
import B from "../../HttpMethod/HttpMethod.vue.js";
|
|
7
|
-
const N = ["href"], E = /* @__PURE__ */ c({
|
|
8
|
-
__name: "OperationsListItem",
|
|
9
|
-
props: {
|
|
10
|
-
transformedOperation: {},
|
|
11
|
-
collection: {},
|
|
12
|
-
isCollapsed: { type: Boolean }
|
|
13
|
-
},
|
|
14
|
-
setup(n) {
|
|
15
|
-
const { scrollToOperation: m } = g(), l = async (e) => {
|
|
16
|
-
m(e.id, !0);
|
|
17
|
-
}, f = u(
|
|
18
|
-
() => {
|
|
19
|
-
var e, o;
|
|
20
|
-
return ((e = n.transformedOperation) == null ? void 0 : e.name) || ((o = n.transformedOperation) == null ? void 0 : o.path);
|
|
21
|
-
}
|
|
22
|
-
);
|
|
23
|
-
return (e, o) => (r(), h("li", {
|
|
24
|
-
key: e.transformedOperation.id,
|
|
25
|
-
class: "contents"
|
|
26
|
-
}, [
|
|
27
|
-
e.isCollapsed ? (r(), a(t(v), {
|
|
28
|
-
key: 0,
|
|
29
|
-
class: "sr-only",
|
|
30
|
-
level: 3
|
|
31
|
-
}, {
|
|
32
|
-
default: d(() => [
|
|
33
|
-
O(p(f.value) + " (Hidden) ", 1)
|
|
34
|
-
]),
|
|
35
|
-
_: 1
|
|
36
|
-
})) : s("", !0),
|
|
37
|
-
i("a", {
|
|
38
|
-
class: "endpoint",
|
|
39
|
-
href: `#${e.transformedOperation.id}`,
|
|
40
|
-
onClick: o[0] || (o[0] = k((S) => l(e.transformedOperation), ["prevent"]))
|
|
41
|
-
}, [
|
|
42
|
-
y(t(B), {
|
|
43
|
-
class: "endpoint-method items-center justify-end gap-2",
|
|
44
|
-
method: e.transformedOperation.httpVerb
|
|
45
|
-
}, {
|
|
46
|
-
default: d(() => [
|
|
47
|
-
e.transformedOperation.isWebhook ? (r(), a(t(V), {
|
|
48
|
-
key: 0,
|
|
49
|
-
class: "size-3.5"
|
|
50
|
-
})) : s("", !0)
|
|
51
|
-
]),
|
|
52
|
-
_: 1
|
|
53
|
-
}, 8, ["method"]),
|
|
54
|
-
i("span", {
|
|
55
|
-
class: C(["endpoint-path", {
|
|
56
|
-
deprecated: t(b)(
|
|
57
|
-
e.transformedOperation.information
|
|
58
|
-
)
|
|
59
|
-
}])
|
|
60
|
-
}, p(e.transformedOperation.path), 3)
|
|
61
|
-
], 8, N)
|
|
62
|
-
]));
|
|
63
|
-
}
|
|
64
|
-
});
|
|
65
|
-
export {
|
|
66
|
-
E as default
|
|
67
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Tag.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/Tag.vue"],"names":[],"mappings":"AAyEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAA;AACjE,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAqB/C,KAAK,WAAW,GAAG;IACjB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,GAAG,CAAA;IACR,UAAU,EAAE,UAAU,CAAA;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,CAAC;;AAuKF,wBAOG"}
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
import { defineComponent as C, computed as d, createBlock as m, openBlock as p, unref as e, withCtx as t, withDirectives as v, createVNode as o, createTextVNode as u, createCommentVNode as S, toDisplayString as _, vShow as h } from "vue";
|
|
2
|
-
import { ScalarMarkdown as w } from "@scalar/components";
|
|
3
|
-
import I from "../../ScreenReader.vue.js";
|
|
4
|
-
import { useConfig as N } from "../../../hooks/useConfig.js";
|
|
5
|
-
import { useNavState as k } from "../../../hooks/useNavState.js";
|
|
6
|
-
import y from "./OperationsList.vue.js";
|
|
7
|
-
import T from "../../Section/Section.vue.js";
|
|
8
|
-
import B from "../../Section/SectionHeader.vue.js";
|
|
9
|
-
import L from "../../Anchor/Anchor.vue.js";
|
|
10
|
-
import V from "../../Section/SectionHeaderTag.vue.js";
|
|
11
|
-
import b from "../../Section/SectionContent.vue.js";
|
|
12
|
-
import D from "../../Section/SectionColumns.vue.js";
|
|
13
|
-
import s from "../../Section/SectionColumn.vue.js";
|
|
14
|
-
import H from "../../../features/specification-extension/SpecificationExtension.vue.js";
|
|
15
|
-
const P = /* @__PURE__ */ C({
|
|
16
|
-
__name: "Tag",
|
|
17
|
-
props: {
|
|
18
|
-
id: {},
|
|
19
|
-
tag: {},
|
|
20
|
-
collection: {},
|
|
21
|
-
headerId: {},
|
|
22
|
-
isCollapsed: { type: Boolean }
|
|
23
|
-
},
|
|
24
|
-
setup(f) {
|
|
25
|
-
const l = f, { getTagId: c } = k(), i = N(), r = d(() => l.id || c(l.tag) || ""), g = d(() => l.tag["x-displayName"] ?? l.tag.name);
|
|
26
|
-
return (a, n) => (p(), m(e(T), {
|
|
27
|
-
id: r.value,
|
|
28
|
-
label: a.tag.name.toUpperCase(),
|
|
29
|
-
role: "none"
|
|
30
|
-
}, {
|
|
31
|
-
default: t(() => [
|
|
32
|
-
v(o(e(B), null, {
|
|
33
|
-
default: t(() => [
|
|
34
|
-
o(e(L), { id: r.value }, {
|
|
35
|
-
default: t(() => [
|
|
36
|
-
o(e(V), {
|
|
37
|
-
id: a.headerId,
|
|
38
|
-
level: 2
|
|
39
|
-
}, {
|
|
40
|
-
default: t(() => [
|
|
41
|
-
u(_(g.value) + " ", 1),
|
|
42
|
-
a.isCollapsed ? (p(), m(I, { key: 0 }, {
|
|
43
|
-
default: t(() => n[0] || (n[0] = [
|
|
44
|
-
u(" (Collapsed)")
|
|
45
|
-
])),
|
|
46
|
-
_: 1,
|
|
47
|
-
__: [0]
|
|
48
|
-
})) : S("", !0)
|
|
49
|
-
]),
|
|
50
|
-
_: 1
|
|
51
|
-
}, 8, ["id"])
|
|
52
|
-
]),
|
|
53
|
-
_: 1
|
|
54
|
-
}, 8, ["id"])
|
|
55
|
-
]),
|
|
56
|
-
_: 1
|
|
57
|
-
}, 512), [
|
|
58
|
-
[h, !e(i).isLoading]
|
|
59
|
-
]),
|
|
60
|
-
o(e(b), {
|
|
61
|
-
loading: e(i).isLoading
|
|
62
|
-
}, {
|
|
63
|
-
default: t(() => [
|
|
64
|
-
o(e(D), null, {
|
|
65
|
-
default: t(() => [
|
|
66
|
-
o(e(s), null, {
|
|
67
|
-
default: t(() => [
|
|
68
|
-
o(e(w), {
|
|
69
|
-
clamp: a.isCollapsed ? "7" : !1,
|
|
70
|
-
value: a.tag.description,
|
|
71
|
-
withImages: ""
|
|
72
|
-
}, null, 8, ["clamp", "value"])
|
|
73
|
-
]),
|
|
74
|
-
_: 1
|
|
75
|
-
}),
|
|
76
|
-
o(e(s), null, {
|
|
77
|
-
default: t(() => [
|
|
78
|
-
o(y, {
|
|
79
|
-
collection: a.collection,
|
|
80
|
-
tag: a.tag
|
|
81
|
-
}, null, 8, ["collection", "tag"])
|
|
82
|
-
]),
|
|
83
|
-
_: 1
|
|
84
|
-
})
|
|
85
|
-
]),
|
|
86
|
-
_: 1
|
|
87
|
-
})
|
|
88
|
-
]),
|
|
89
|
-
_: 1
|
|
90
|
-
}, 8, ["loading"]),
|
|
91
|
-
o(e(H), { value: a.tag }, null, 8, ["value"])
|
|
92
|
-
]),
|
|
93
|
-
_: 1
|
|
94
|
-
}, 8, ["id", "label"]));
|
|
95
|
-
}
|
|
96
|
-
});
|
|
97
|
-
export {
|
|
98
|
-
P as default
|
|
99
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TagAccordion.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/TagAccordion.vue"],"names":[],"mappings":"AAmDA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAY/C,KAAK,WAAW,GAAG;IACjB,GAAG,EAAE,GAAG,CAAA;CACT,CAAC;AAUF,iBAAS,cAAc;WAoFT,OAAO,IAA6B;;yBARpB,GAAG;;;;EAahC;AAcD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,6SAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { defineComponent as i, createBlock as n, openBlock as c, unref as e, withCtx as t, renderSlot as l, createVNode as a, createTextVNode as d, toDisplayString as s } from "vue";
|
|
2
|
-
import { ScalarMarkdown as m } from "@scalar/components";
|
|
3
|
-
import { useNavState as p } from "../../../hooks/useNavState.js";
|
|
4
|
-
import f from "../../Section/SectionContainerAccordion.vue.js";
|
|
5
|
-
import u from "../../Section/SectionHeader.vue.js";
|
|
6
|
-
import g from "../../Anchor/Anchor.vue.js";
|
|
7
|
-
import _ from "../../Section/SectionHeaderTag.vue.js";
|
|
8
|
-
const B = /* @__PURE__ */ i({
|
|
9
|
-
__name: "TagAccordion",
|
|
10
|
-
props: {
|
|
11
|
-
tag: {}
|
|
12
|
-
},
|
|
13
|
-
setup(S) {
|
|
14
|
-
const { getTagId: r } = p();
|
|
15
|
-
return (o, v) => (c(), n(e(f), { class: "tag-section" }, {
|
|
16
|
-
title: t(() => [
|
|
17
|
-
a(e(u), { class: "tag-name" }, {
|
|
18
|
-
default: t(() => [
|
|
19
|
-
a(e(g), {
|
|
20
|
-
id: e(r)(o.tag)
|
|
21
|
-
}, {
|
|
22
|
-
default: t(() => [
|
|
23
|
-
a(e(_), { level: 2 }, {
|
|
24
|
-
default: t(() => [
|
|
25
|
-
d(s(o.tag.name), 1)
|
|
26
|
-
]),
|
|
27
|
-
_: 1
|
|
28
|
-
})
|
|
29
|
-
]),
|
|
30
|
-
_: 1
|
|
31
|
-
}, 8, ["id"])
|
|
32
|
-
]),
|
|
33
|
-
_: 1
|
|
34
|
-
}),
|
|
35
|
-
a(e(m), {
|
|
36
|
-
class: "tag-description",
|
|
37
|
-
value: o.tag.description,
|
|
38
|
-
withImages: ""
|
|
39
|
-
}, null, 8, ["value"])
|
|
40
|
-
]),
|
|
41
|
-
default: t(() => [
|
|
42
|
-
l(o.$slots, "default", {}, void 0, !0)
|
|
43
|
-
]),
|
|
44
|
-
_: 3
|
|
45
|
-
}));
|
|
46
|
-
}
|
|
47
|
-
});
|
|
48
|
-
export {
|
|
49
|
-
B as default
|
|
50
|
-
};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import type { Collection, Server } from '@scalar/oas-utils/entities/spec';
|
|
2
|
-
import type { OpenAPIV3_1 } from '@scalar/openapi-types';
|
|
3
|
-
import type { Spec, Tag as TagType } from '@scalar/types/legacy';
|
|
4
|
-
type __VLS_Props = {
|
|
5
|
-
/** Just to set the id for webhooks, for now */
|
|
6
|
-
id?: string;
|
|
7
|
-
document: OpenAPIV3_1.Document;
|
|
8
|
-
/**
|
|
9
|
-
* @deprecated Use `document` instead
|
|
10
|
-
*/
|
|
11
|
-
collection: Collection;
|
|
12
|
-
tags: TagType[];
|
|
13
|
-
/**
|
|
14
|
-
* @deprecated Use `document` instead
|
|
15
|
-
*/
|
|
16
|
-
spec: Spec;
|
|
17
|
-
layout?: 'modern' | 'classic';
|
|
18
|
-
server?: Server;
|
|
19
|
-
};
|
|
20
|
-
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
21
|
-
export default _default;
|
|
22
|
-
//# sourceMappingURL=TagList.vue.d.ts.map
|