@scalar/api-reference 1.32.10 → 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 +70 -0
- package/dist/browser/standalone.js +15385 -15039
- 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 +107 -104
- package/dist/components/ApiReferenceLayout.vue3.js +4 -0
- package/dist/components/ApiReferenceLayout.vue4.js +4 -0
- package/dist/components/ApiReferenceLayout.vue5.js +4 -0
- package/dist/components/ApiReferenceLayout.vue6.js +4 -0
- package/dist/components/Badge/Badge.vue.js +1 -1
- package/dist/components/Badge/Badge.vue2.js +4 -0
- package/dist/components/ClassicHeader.vue.js +1 -1
- package/dist/components/ClassicHeader.vue2.js +4 -0
- package/dist/components/Content/ClientLibraries/ClientLibraries.vue.d.ts +14 -1
- package/dist/components/Content/ClientLibraries/ClientLibraries.vue.d.ts.map +1 -1
- package/dist/components/Content/ClientLibraries/ClientLibraries.vue.js +3 -3
- package/dist/components/Content/ClientLibraries/ClientLibraries.vue2.js +74 -84
- package/dist/components/Content/ClientLibraries/ClientLibraries.vue3.js +4 -0
- package/dist/components/Content/ClientLibraries/ClientSelector.vue.d.ts +8 -0
- package/dist/components/Content/ClientLibraries/ClientSelector.vue.d.ts.map +1 -1
- package/dist/components/Content/ClientLibraries/ClientSelector.vue.js +2 -2
- package/dist/components/Content/ClientLibraries/ClientSelector.vue2.js +81 -80
- package/dist/components/Content/ClientLibraries/ClientSelector.vue3.js +4 -0
- package/dist/components/Content/ClientLibraries/featured-clients.d.ts +11 -0
- package/dist/components/Content/ClientLibraries/featured-clients.d.ts.map +1 -0
- package/dist/components/Content/ClientLibraries/featured-clients.js +17 -0
- package/dist/components/Content/Content.vue.d.ts +5 -6
- package/dist/components/Content/Content.vue.d.ts.map +1 -1
- package/dist/components/Content/Content.vue.js +49 -6
- package/dist/components/Content/Content.vue2.js +2 -160
- package/dist/components/Content/Content.vue3.js +5 -0
- package/dist/components/Content/Introduction/Description.vue.js +1 -1
- package/dist/components/Content/Introduction/Description.vue3.js +4 -0
- package/dist/components/Content/Introduction/Introduction.vue.d.ts +7 -17
- package/dist/components/Content/Introduction/Introduction.vue.d.ts.map +1 -1
- package/dist/components/Content/Introduction/Introduction.vue.js +3 -3
- package/dist/components/Content/Introduction/Introduction.vue2.js +103 -150
- package/dist/components/Content/Introduction/Introduction.vue3.js +4 -0
- package/dist/components/Content/Introduction/IntroductionSection.vue.d.ts +25 -0
- package/dist/components/Content/Introduction/IntroductionSection.vue.d.ts.map +1 -0
- package/dist/components/Content/Introduction/IntroductionSection.vue.js +7 -0
- package/dist/components/Content/Introduction/IntroductionSection.vue2.js +159 -0
- package/dist/components/Content/Introduction/IntroductionSection.vue3.js +4 -0
- package/dist/components/Content/Models/{ModelsAccordion.vue.d.ts → ClassicLayout.vue.d.ts} +2 -2
- package/dist/components/Content/Models/ClassicLayout.vue.d.ts.map +1 -0
- package/dist/components/Content/Models/ClassicLayout.vue.js +7 -0
- package/dist/components/Content/Models/{ModelsAccordion.vue2.js → ClassicLayout.vue2.js} +30 -30
- package/dist/components/Content/Models/ClassicLayout.vue3.js +4 -0
- package/dist/components/Content/Models/Models.vue.d.ts +3 -1
- package/dist/components/Content/Models/Models.vue.d.ts.map +1 -1
- package/dist/components/Content/Models/Models.vue.js +38 -5
- package/dist/components/Content/Models/Models.vue2.js +2 -114
- package/dist/components/Content/Models/ModernLayout.vue.d.ts +7 -0
- package/dist/components/Content/Models/ModernLayout.vue.d.ts.map +1 -0
- package/dist/components/Content/Models/ModernLayout.vue.js +7 -0
- package/dist/components/Content/Models/ModernLayout.vue2.js +100 -0
- package/dist/components/Content/Models/ModernLayout.vue3.js +4 -0
- package/dist/components/Content/Models/index.d.ts +0 -1
- package/dist/components/Content/Models/index.d.ts.map +1 -1
- package/dist/components/Content/Operations/TraversedEntry.vue.d.ts +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 +3 -1
- package/dist/components/LinkList/LinkList.vue.d.ts.map +1 -1
- package/dist/components/LinkList/LinkList.vue.js +5 -10
- package/dist/components/LinkList/LinkList.vue2.js +32 -0
- package/dist/components/LinkList/LinkList.vue3.js +4 -0
- package/dist/components/LoadingSkeleton.vue.d.ts.map +1 -1
- package/dist/components/LoadingSkeleton.vue.js +3 -3
- package/dist/components/LoadingSkeleton.vue3.js +4 -0
- package/dist/components/MobileHeader.vue.js +1 -1
- package/dist/components/MobileHeader.vue3.js +4 -0
- package/dist/components/OperationPath.vue.js +1 -1
- package/dist/components/OperationPath.vue3.js +4 -0
- package/dist/components/{Content/Tag → OperationsList}/OperationsList.vue.d.ts +2 -5
- package/dist/components/OperationsList/OperationsList.vue.d.ts.map +1 -0
- package/dist/components/OperationsList/OperationsList.vue.js +7 -0
- package/dist/components/OperationsList/OperationsList.vue2.js +60 -0
- package/dist/components/OperationsList/OperationsList.vue3.js +4 -0
- package/dist/components/{Content/Tag → OperationsList}/OperationsListItem.vue.d.ts +2 -4
- package/dist/components/OperationsList/OperationsListItem.vue.d.ts.map +1 -0
- package/dist/components/OperationsList/OperationsListItem.vue.js +7 -0
- package/dist/components/OperationsList/OperationsListItem.vue2.js +63 -0
- package/dist/components/OperationsList/OperationsListItem.vue3.js +4 -0
- package/dist/components/OperationsList/index.d.ts +2 -0
- package/dist/components/OperationsList/index.d.ts.map +1 -0
- package/dist/components/ScreenReader.vue.js +1 -1
- package/dist/components/ScreenReader.vue3.js +4 -0
- package/dist/components/Section/CompactSection.vue.d.ts.map +1 -1
- package/dist/components/Section/CompactSection.vue.js +3 -3
- package/dist/components/Section/CompactSection.vue2.js +35 -36
- package/dist/components/Section/CompactSection.vue3.js +4 -0
- package/dist/components/Section/Section.vue.js +1 -1
- package/dist/components/Section/Section.vue3.js +4 -0
- package/dist/components/Section/SectionAccordion.vue.d.ts.map +1 -1
- package/dist/components/Section/SectionAccordion.vue.js +3 -3
- package/dist/components/Section/SectionAccordion.vue2.js +42 -36
- package/dist/components/Section/SectionAccordion.vue3.js +4 -0
- package/dist/components/Section/SectionColumn.vue.js +1 -1
- package/dist/components/Section/SectionColumn.vue2.js +4 -0
- package/dist/components/Section/SectionColumns.vue.js +1 -1
- package/dist/components/Section/SectionColumns.vue2.js +4 -0
- package/dist/components/Section/SectionContainer.vue.d.ts +9 -2
- package/dist/components/Section/SectionContainer.vue.d.ts.map +1 -1
- package/dist/components/Section/SectionContainer.vue.js +5 -11
- package/dist/components/Section/SectionContainer.vue2.js +18 -0
- package/dist/components/Section/SectionContainer.vue3.js +4 -0
- package/dist/components/Section/SectionContainerAccordion.vue.d.ts.map +1 -1
- package/dist/components/Section/SectionContainerAccordion.vue.js +3 -3
- package/dist/components/Section/SectionContainerAccordion.vue3.js +4 -0
- package/dist/components/Section/SectionContent.vue.js +1 -1
- package/dist/components/Section/SectionContent.vue3.js +4 -0
- package/dist/components/Section/SectionHeader.vue.js +1 -1
- package/dist/components/Section/SectionHeader.vue3.js +4 -0
- package/dist/components/Section/SectionHeaderTag.vue.js +1 -1
- package/dist/components/Section/SectionHeaderTag.vue3.js +4 -0
- package/dist/components/SectionFlare/SectionFlare.vue.d.ts +3 -0
- package/dist/components/SectionFlare/SectionFlare.vue.d.ts.map +1 -0
- package/dist/components/SectionFlare/SectionFlare.vue.js +13 -0
- package/dist/components/SectionFlare/SectionFlare.vue2.js +4 -0
- package/dist/components/SectionFlare/index.d.ts +2 -0
- package/dist/components/SectionFlare/index.d.ts.map +1 -0
- package/dist/components/ShowMoreButton.vue.d.ts.map +1 -1
- package/dist/components/ShowMoreButton.vue.js +3 -3
- package/dist/components/ShowMoreButton.vue2.js +12 -12
- package/dist/components/ShowMoreButton.vue3.js +4 -0
- package/dist/features/Operation/Operation.vue.d.ts +5 -1
- package/dist/features/Operation/Operation.vue.d.ts.map +1 -1
- package/dist/features/Operation/Operation.vue.js +55 -38
- package/dist/features/Operation/components/ContentTypeSelect.vue.d.ts.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.map +1 -1
- package/dist/features/Operation/components/callbacks/Callback.vue.js +3 -3
- package/dist/features/Operation/components/callbacks/Callback.vue2.js +9 -9
- package/dist/features/Operation/components/callbacks/Callback.vue3.js +4 -0
- package/dist/features/Operation/components/callbacks/Callbacks.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/callbacks/Callbacks.vue.js +20 -28
- package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts +6 -0
- package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts.map +1 -1
- package/dist/features/Operation/layouts/ClassicLayout.vue.js +2 -2
- package/dist/features/Operation/layouts/ClassicLayout.vue2.js +77 -62
- package/dist/features/Operation/layouts/ClassicLayout.vue3.js +4 -0
- package/dist/features/Operation/layouts/ModernLayout.vue.d.ts +6 -0
- package/dist/features/Operation/layouts/ModernLayout.vue.d.ts.map +1 -1
- package/dist/features/Operation/layouts/ModernLayout.vue.js +3 -3
- package/dist/features/Operation/layouts/ModernLayout.vue2.js +94 -81
- 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 +414 -354
- package/dist/features/api-client-modal/useApiClient.d.ts.map +1 -1
- package/dist/features/download-link/DownloadLink.vue.js +2 -2
- package/dist/features/download-link/DownloadLink.vue3.js +4 -0
- package/dist/features/example-responses/ExampleResponse.vue.d.ts +4 -2
- package/dist/features/example-responses/ExampleResponse.vue.d.ts.map +1 -1
- package/dist/features/example-responses/ExampleResponse.vue.js +3 -3
- package/dist/features/example-responses/ExampleResponse.vue2.js +15 -14
- package/dist/features/example-responses/ExampleResponse.vue3.js +4 -0
- package/dist/features/example-responses/ExampleResponseTab.vue.js +1 -1
- package/dist/features/example-responses/ExampleResponseTab.vue3.js +4 -0
- package/dist/features/example-responses/ExampleResponseTabList.vue.js +1 -1
- package/dist/features/example-responses/ExampleResponseTabList.vue3.js +4 -0
- package/dist/features/example-responses/ExampleResponses.vue.d.ts +3 -2
- package/dist/features/example-responses/ExampleResponses.vue.d.ts.map +1 -1
- package/dist/features/example-responses/ExampleResponses.vue.js +4 -4
- package/dist/features/example-responses/ExampleResponses.vue2.js +107 -104
- package/dist/features/example-responses/ExampleResponses.vue3.js +4 -0
- package/dist/features/info-object/License.vue.d.ts.map +1 -1
- package/dist/features/info-object/License.vue.js +18 -15
- package/dist/features/sidebar/components/Sidebar.vue.js +3 -3
- package/dist/features/sidebar/components/Sidebar.vue3.js +4 -0
- package/dist/features/sidebar/components/SidebarElement.vue.js +3 -3
- package/dist/features/sidebar/components/SidebarElement.vue3.js +4 -0
- package/dist/features/sidebar/components/SidebarGroup.vue.js +1 -1
- package/dist/features/sidebar/components/SidebarGroup.vue3.js +4 -0
- package/dist/features/sidebar/components/SidebarHttpBadge.vue.js +1 -1
- package/dist/features/sidebar/components/SidebarHttpBadge.vue3.js +4 -0
- package/dist/features/sidebar/helpers/create-sidebar.js +12 -12
- package/dist/features/test-request-button/TestRequestButton.vue.js +1 -1
- package/dist/features/test-request-button/TestRequestButton.vue3.js +4 -0
- package/dist/features/traverse-schema/index.d.ts +2 -1
- package/dist/features/traverse-schema/index.d.ts.map +1 -1
- 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 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +24 -21
- 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 +1 -1
- package/dist/v2/ApiReferenceWorkspace.vue.d.ts.map +1 -1
- package/dist/v2/ApiReferenceWorkspace.vue.js +83 -93
- package/dist/v2/ApiReferenceWorkspace.vue2.js +4 -0
- package/dist/v2/ApiReferenceWorkspace.vue3.js +1 -1
- package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue.d.ts +2 -2
- package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue2.js +32 -29
- package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue.d.ts +4 -13
- package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue.js +3 -3
- package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue2.js +185 -181
- package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue3.js +4 -0
- package/dist/v2/blocks/scalar-request-example-block/helpers/find-client.d.ts +1 -0
- package/dist/v2/blocks/scalar-request-example-block/helpers/find-client.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-request-example-block/helpers/find-client.js +1 -0
- package/dist/v2/blocks/scalar-request-example-block/helpers/generate-client-options.d.ts +12 -13
- package/dist/v2/blocks/scalar-request-example-block/helpers/generate-client-options.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-request-example-block/helpers/generate-client-options.js +28 -30
- package/dist/v2/blocks/scalar-request-example-block/types.d.ts +11 -3
- package/dist/v2/blocks/scalar-request-example-block/types.d.ts.map +1 -1
- package/package.json +19 -19
- package/dist/components/Content/ClientLibraries/useFeaturedHttpClients.d.ts +0 -16
- package/dist/components/Content/ClientLibraries/useFeaturedHttpClients.d.ts.map +0 -1
- package/dist/components/Content/ClientLibraries/useFeaturedHttpClients.js +0 -36
- package/dist/components/Content/Lazy/Lazy.vue.d.ts.map +0 -1
- package/dist/components/Content/Lazy/Lazy.vue2.js +0 -22
- package/dist/components/Content/Lazy/Loading.vue.d.ts +0 -18
- package/dist/components/Content/Lazy/Loading.vue.d.ts.map +0 -1
- package/dist/components/Content/Lazy/Loading.vue.js +0 -163
- package/dist/components/Content/Lazy/Loading.vue3.js +0 -5
- package/dist/components/Content/Lazy/index.d.ts +0 -3
- package/dist/components/Content/Lazy/index.d.ts.map +0 -1
- package/dist/components/Content/Lazy/lazyBus.d.ts +0 -4
- package/dist/components/Content/Lazy/lazyBus.d.ts.map +0 -1
- package/dist/components/Content/Lazy/lazyBus.js +0 -5
- package/dist/components/Content/Models/ModelsAccordion.vue.d.ts.map +0 -1
- package/dist/components/Content/Models/ModelsAccordion.vue.js +0 -7
- package/dist/components/Content/Tag/OperationsList.vue.d.ts.map +0 -1
- package/dist/components/Content/Tag/OperationsList.vue.js +0 -7
- package/dist/components/Content/Tag/OperationsList.vue2.js +0 -58
- package/dist/components/Content/Tag/OperationsListItem.vue.d.ts.map +0 -1
- package/dist/components/Content/Tag/OperationsListItem.vue.js +0 -7
- package/dist/components/Content/Tag/OperationsListItem.vue2.js +0 -67
- package/dist/components/Content/Tag/Tag.vue.d.ts.map +0 -1
- package/dist/components/Content/Tag/Tag.vue.js +0 -99
- package/dist/components/Content/Tag/TagAccordion.vue.d.ts.map +0 -1
- package/dist/components/Content/Tag/TagAccordion.vue.js +0 -7
- package/dist/components/Content/Tag/TagAccordion.vue2.js +0 -50
- package/dist/components/Content/Tag/TagList.vue.d.ts +0 -22
- package/dist/components/Content/Tag/TagList.vue.d.ts.map +0 -1
- package/dist/components/Content/Tag/TagList.vue.js +0 -73
- package/dist/components/Content/Tag/TagList.vue2.js +0 -4
- package/dist/components/Content/Tag/TagSection.vue.d.ts.map +0 -1
- package/dist/components/Content/Tag/TagSection.vue.js +0 -7
- package/dist/components/Content/Tag/TagSection.vue2.js +0 -67
- package/dist/components/Content/Tag/index.d.ts +0 -3
- package/dist/components/Content/Tag/index.d.ts.map +0 -1
- package/dist/stores/useHttpClientStore.d.ts +0 -43
- package/dist/stores/useHttpClientStore.d.ts.map +0 -1
- package/dist/stores/useHttpClientStore.js +0 -70
- package/dist/v2/hooks/useStore.d.ts +0 -9
- package/dist/v2/hooks/useStore.d.ts.map +0 -1
- package/dist/v2/hooks/useStore.js +0 -14
- /package/dist/components/Content/{Tag → Tags}/Tag.vue2.js +0 -0
- /package/dist/components/{Content/Lazy → Lazy}/Lazy.vue.js +0 -0
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { Disclosure as
|
|
3
|
-
import {
|
|
1
|
+
import { defineComponent as b, computed as u, ref as E, createElementBlock as S, createCommentVNode as o, openBlock as s, createVNode as l, createElementVNode as p, unref as r, withCtx as c, createBlock as i, normalizeClass as w, toDisplayString as q } from "vue";
|
|
2
|
+
import { Disclosure as D, DisclosureButton as P, DisclosurePanel as V } from "@headlessui/vue";
|
|
3
|
+
import { ScalarMarkdown as I } from "@scalar/components";
|
|
4
|
+
import { ScalarIconCaretRight as j } from "@scalar/icons";
|
|
4
5
|
import { isDefined as N } from "@scalar/oas-utils/helpers";
|
|
5
6
|
import T from "./ContentTypeSelect.vue.js";
|
|
6
7
|
import z from "./ParameterHeaders.vue.js";
|
|
@@ -8,7 +9,7 @@ import O from "../../../components/Content/Schema/SchemaProperty.vue.js";
|
|
|
8
9
|
const H = {
|
|
9
10
|
key: 0,
|
|
10
11
|
class: "parameter-item group/parameter-item relative"
|
|
11
|
-
}, L = { class: "parameter-item-name" }, M = { class: "parameter-item-type" }, R = { class: "absolute top-
|
|
12
|
+
}, L = { class: "parameter-item-name" }, M = { class: "parameter-item-type" }, R = { class: "absolute top-3 right-0 opacity-0 group-focus-within/parameter-item:opacity-100 group-hover/parameter-item:opacity-100" }, W = /* @__PURE__ */ b({
|
|
12
13
|
__name: "ParameterListItem",
|
|
13
14
|
props: {
|
|
14
15
|
parameter: {},
|
|
@@ -17,28 +18,29 @@ const H = {
|
|
|
17
18
|
withExamples: { type: Boolean, default: !0 },
|
|
18
19
|
schemas: {}
|
|
19
20
|
},
|
|
20
|
-
setup(
|
|
21
|
-
const a =
|
|
22
|
-
|
|
21
|
+
setup(g) {
|
|
22
|
+
const a = g, B = u(() => a.parameter.content ? Object.keys(a.parameter.content) : []), t = E(
|
|
23
|
+
B.value[0]
|
|
23
24
|
);
|
|
24
25
|
a.parameter.content && "application/json" in a.parameter.content && (t.value = "application/json");
|
|
25
|
-
const m =
|
|
26
|
-
return (e, d) => C.value ? (s(),
|
|
27
|
-
|
|
26
|
+
const m = u(() => !!(a.collapsableItems && (a.parameter.content || a.parameter.headers || a.parameter.schema))), C = u(() => a.parameter.readOnly !== !0);
|
|
27
|
+
return (e, d) => C.value ? (s(), S("li", H, [
|
|
28
|
+
l(r(D), null, {
|
|
28
29
|
default: c(({ open: n }) => [
|
|
29
|
-
m.value ? (s(),
|
|
30
|
+
m.value ? (s(), i(r(P), {
|
|
30
31
|
key: 0,
|
|
31
|
-
class:
|
|
32
|
+
class: w(["parameter-item-trigger", { "parameter-item-trigger-open": n }])
|
|
32
33
|
}, {
|
|
33
34
|
default: c(() => [
|
|
34
|
-
p(
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
35
|
+
p("span", L, [
|
|
36
|
+
l(r(j), {
|
|
37
|
+
weight: "bold",
|
|
38
|
+
class: w(["parameter-item-icon size-3 transition-transform duration-100", { "rotate-90": n }])
|
|
39
|
+
}, null, 8, ["class"]),
|
|
40
|
+
p("span", null, q(e.parameter.name), 1)
|
|
41
|
+
]),
|
|
42
|
+
p("span", M, [
|
|
43
|
+
e.parameter.description ? (s(), i(r(I), {
|
|
42
44
|
key: 0,
|
|
43
45
|
class: "markdown",
|
|
44
46
|
value: e.parameter.description
|
|
@@ -47,18 +49,18 @@ const H = {
|
|
|
47
49
|
]),
|
|
48
50
|
_: 2
|
|
49
51
|
}, 1032, ["class"])) : o("", !0),
|
|
50
|
-
|
|
52
|
+
l(r(V), {
|
|
51
53
|
class: "parameter-item-container parameter-item-container-markdown",
|
|
52
54
|
static: !m.value
|
|
53
55
|
}, {
|
|
54
56
|
default: c(() => {
|
|
55
|
-
var h,
|
|
57
|
+
var f, h, y, v, k;
|
|
56
58
|
return [
|
|
57
|
-
e.parameter.headers ? (s(),
|
|
59
|
+
e.parameter.headers ? (s(), i(z, {
|
|
58
60
|
key: 0,
|
|
59
61
|
headers: e.parameter.headers
|
|
60
62
|
}, null, 8, ["headers"])) : o("", !0),
|
|
61
|
-
|
|
63
|
+
l(r(O), {
|
|
62
64
|
is: "div",
|
|
63
65
|
compact: "",
|
|
64
66
|
description: m.value ? "" : e.parameter.description,
|
|
@@ -67,12 +69,12 @@ const H = {
|
|
|
67
69
|
required: e.parameter.required,
|
|
68
70
|
schemas: e.schemas,
|
|
69
71
|
value: {
|
|
70
|
-
...e.parameter.content ? (
|
|
72
|
+
...e.parameter.content ? (h = (f = e.parameter.content) == null ? void 0 : f[t.value]) == null ? void 0 : h.schema : e.parameter.schema,
|
|
71
73
|
deprecated: e.parameter.deprecated,
|
|
72
74
|
...r(N)(e.parameter.example) && { example: e.parameter.example },
|
|
73
75
|
examples: e.parameter.content ? {
|
|
74
76
|
...e.parameter.examples,
|
|
75
|
-
...(
|
|
77
|
+
...(v = (y = e.parameter.content) == null ? void 0 : y[t.value]) == null ? void 0 : v.examples
|
|
76
78
|
} : e.parameter.examples || ((k = e.parameter.schema) == null ? void 0 : k.examples)
|
|
77
79
|
},
|
|
78
80
|
withExamples: e.withExamples
|
|
@@ -84,8 +86,8 @@ const H = {
|
|
|
84
86
|
]),
|
|
85
87
|
_: 1
|
|
86
88
|
}),
|
|
87
|
-
|
|
88
|
-
m.value && a.parameter.content ? (s(),
|
|
89
|
+
p("div", R, [
|
|
90
|
+
m.value && a.parameter.content ? (s(), i(T, {
|
|
89
91
|
key: 0,
|
|
90
92
|
class: "parameter-item-content-type",
|
|
91
93
|
defaultValue: t.value,
|
|
@@ -97,5 +99,5 @@ const H = {
|
|
|
97
99
|
}
|
|
98
100
|
});
|
|
99
101
|
export {
|
|
100
|
-
|
|
102
|
+
W as default
|
|
101
103
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Callback.vue.d.ts","sourceRoot":"","sources":["../../../../../src/features/Operation/components/callbacks/Callback.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Callback.vue.d.ts","sourceRoot":"","sources":["../../../../../src/features/Operation/components/callbacks/Callback.vue"],"names":[],"mappings":"AA+GA,OAAO,KAAK,EAAE,UAAU,IAAI,cAAc,EAAE,MAAM,mCAAmC,CAAA;AAErF,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,6DAA6D,CAAA;AAClG,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,iDAAiD,CAAA;AAKlF,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAA;AAIjE,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE,WAAW,CAAC,eAAe,CAAC,CAAA;IACtC,MAAM,EAAE,cAAc,CAAA;IACtB,IAAI,EAAE,MAAM,CAAA;IACZ,eAAe,EAAE,cAAc,CAAA;IAC/B,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,GAAG,EAAE,MAAM,CAAA;CACZ,CAAC;;AAyJF,wBAOG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./Callback.vue2.js";
|
|
2
|
-
|
|
3
|
-
import
|
|
4
|
-
const m = /* @__PURE__ */
|
|
2
|
+
import "./Callback.vue3.js";
|
|
3
|
+
import f from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const m = /* @__PURE__ */ f(o, [["__scopeId", "data-v-ff71bf53"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as r, createElementBlock as l, openBlock as c, createElementVNode as s, createVNode as
|
|
1
|
+
import { defineComponent as r, createElementBlock as l, openBlock as c, createElementVNode as s, createVNode as t, unref as a, createTextVNode as n, toDisplayString as o } from "vue";
|
|
2
2
|
import { ScalarIconCaretRight as m } from "@scalar/icons";
|
|
3
3
|
import i from "../OperationParameters.vue.js";
|
|
4
4
|
import p from "../OperationResponses.vue.js";
|
|
5
5
|
import d from "../../../../components/HttpMethod/HttpMethod.vue.js";
|
|
6
|
-
const f = { class: "group callback-list-item" },
|
|
6
|
+
const f = { class: "group callback-list-item" }, u = { class: "font-code bg-b-1 callback-sticky-offset callback-list-item-title sticky flex cursor-pointer flex-row items-start gap-2 border-t py-3 text-sm group-open:flex-wrap" }, h = { class: "text-c-1 min-w-0 flex-1 truncate leading-3 group-open:whitespace-normal" }, _ = { class: "text-c-2" }, b = { class: "callback-operation-container flex flex-col gap-2" }, v = /* @__PURE__ */ r({
|
|
7
7
|
__name: "Callback",
|
|
8
8
|
props: {
|
|
9
9
|
callback: {},
|
|
@@ -16,25 +16,25 @@ const f = { class: "group callback-list-item" }, h = { class: "font-code bg-b-1
|
|
|
16
16
|
},
|
|
17
17
|
setup(k) {
|
|
18
18
|
return (e, g) => (c(), l("details", f, [
|
|
19
|
-
s("summary",
|
|
20
|
-
a(
|
|
21
|
-
a(
|
|
19
|
+
s("summary", u, [
|
|
20
|
+
t(a(m), { class: "callback-list-item-icon text-c-3 group-hover:text-c-1 absolute top-3.5 -left-5 size-4 transition-transform duration-100 group-open:rotate-90" }),
|
|
21
|
+
t(a(d), {
|
|
22
22
|
as: "span",
|
|
23
|
-
class: "request-method",
|
|
23
|
+
class: "request-method py-0.75",
|
|
24
24
|
method: e.method
|
|
25
25
|
}, null, 8, ["method"]),
|
|
26
|
-
s("div",
|
|
26
|
+
s("div", h, [
|
|
27
27
|
n(o(e.name) + " ", 1),
|
|
28
28
|
s("span", _, o(e.url), 1)
|
|
29
29
|
])
|
|
30
30
|
]),
|
|
31
31
|
s("div", b, [
|
|
32
|
-
|
|
32
|
+
t(i, {
|
|
33
33
|
requestBody: e.callback.requestBody,
|
|
34
34
|
parameters: e.callback.parameters,
|
|
35
35
|
schemas: e.schemas
|
|
36
36
|
}, null, 8, ["requestBody", "parameters", "schemas"]),
|
|
37
|
-
|
|
37
|
+
t(p, {
|
|
38
38
|
collapsableItems: !1,
|
|
39
39
|
responses: e.callback.responses,
|
|
40
40
|
schemas: e.schemas
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Callbacks.vue.d.ts","sourceRoot":"","sources":["../../../../../src/features/Operation/components/callbacks/Callbacks.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Callbacks.vue.d.ts","sourceRoot":"","sources":["../../../../../src/features/Operation/components/callbacks/Callbacks.vue"],"names":[],"mappings":"AA0DA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAA;AAEnE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,6DAA6D,CAAA;AAGjG,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAA;AAMjE,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,UAAU,CAAA;IAClB,SAAS,EAAE,cAAc,CAAA;IACzB,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,CAAC;;AAwFF,wBAOG"}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { isHttpMethod as
|
|
3
|
-
import { isReference as
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
const M = { class: "callbacks-list gap-3" }, F = /* @__PURE__ */ b({
|
|
1
|
+
import { defineComponent as h, createElementBlock as t, openBlock as e, createElementVNode as f, Fragment as r, renderList as o, createCommentVNode as m, unref as u, createBlock as b } from "vue";
|
|
2
|
+
import { isHttpMethod as y } from "@scalar/helpers/http/is-http-method";
|
|
3
|
+
import { isReference as C } from "@scalar/workspace-store/schemas/v3.1/type-guard";
|
|
4
|
+
import g from "./Callback.vue.js";
|
|
5
|
+
const B = { class: "callbacks-list gap-3" }, N = /* @__PURE__ */ h({
|
|
7
6
|
__name: "Callbacks",
|
|
8
7
|
props: {
|
|
9
8
|
path: {},
|
|
@@ -11,29 +10,22 @@ const M = { class: "callbacks-list gap-3" }, F = /* @__PURE__ */ b({
|
|
|
11
10
|
callbacks: {},
|
|
12
11
|
schemas: {}
|
|
13
12
|
},
|
|
14
|
-
setup(
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
()
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
{ immediate: !0 }
|
|
22
|
-
), (l, o) => (e(), t("div", M, [
|
|
23
|
-
o[0] || (o[0] = C("div", { class: "callbacks-title text-c-1 my-3 text-lg font-medium" }, " Callbacks ", -1)),
|
|
24
|
-
(e(!0), t(a, null, s(l.callbacks, (m, n) => (e(), t(a, { key: n }, [
|
|
25
|
-
i(h)(m) ? u("", !0) : (e(!0), t(a, { key: 0 }, s(m, (d, p) => (e(), t(a, null, [
|
|
26
|
-
(e(!0), t(a, null, s(d, (f, c) => (e(), t(a, { key: c }, [
|
|
27
|
-
i(g)(c) ? (e(), v(E, {
|
|
13
|
+
setup(i) {
|
|
14
|
+
return (a, s) => (e(), t("div", B, [
|
|
15
|
+
s[0] || (s[0] = f("div", { class: "callbacks-title text-c-1 my-3 text-lg font-medium" }, " Callbacks ", -1)),
|
|
16
|
+
(e(!0), t(r, null, o(a.callbacks, (c, n) => (e(), t(r, { key: n }, [
|
|
17
|
+
u(C)(c) ? m("", !0) : (e(!0), t(r, { key: 0 }, o(c, (p, k) => (e(), t(r, null, [
|
|
18
|
+
(e(!0), t(r, null, o(p, (d, l) => (e(), t(r, { key: l }, [
|
|
19
|
+
u(y)(l) ? (e(), b(g, {
|
|
28
20
|
key: 0,
|
|
29
|
-
callback:
|
|
30
|
-
method:
|
|
31
|
-
operationMethod:
|
|
21
|
+
callback: d,
|
|
22
|
+
method: l,
|
|
23
|
+
operationMethod: i.method,
|
|
32
24
|
name: n,
|
|
33
|
-
path:
|
|
34
|
-
schemas:
|
|
35
|
-
url:
|
|
36
|
-
}, null, 8, ["callback", "method", "operationMethod", "name", "path", "schemas", "url"])) :
|
|
25
|
+
path: a.path,
|
|
26
|
+
schemas: a.schemas,
|
|
27
|
+
url: k
|
|
28
|
+
}, null, 8, ["callback", "method", "operationMethod", "name", "path", "schemas", "url"])) : m("", !0)
|
|
37
29
|
], 64))), 128))
|
|
38
30
|
], 64))), 256))
|
|
39
31
|
], 64))), 128))
|
|
@@ -41,5 +33,5 @@ const M = { class: "callbacks-list gap-3" }, F = /* @__PURE__ */ b({
|
|
|
41
33
|
}
|
|
42
34
|
});
|
|
43
35
|
export {
|
|
44
|
-
|
|
36
|
+
N as default
|
|
45
37
|
};
|
|
@@ -1,20 +1,26 @@
|
|
|
1
1
|
import type { HttpMethod as HttpMethodType } from '@scalar/helpers/http/http-methods';
|
|
2
2
|
import type { OpenAPIV3_1 } from '@scalar/openapi-types';
|
|
3
|
+
import type { WorkspaceStore } from '@scalar/workspace-store/client';
|
|
4
|
+
import type { ParameterObject } from '@scalar/workspace-store/schemas/v3.1/strict/parameter';
|
|
3
5
|
import type { OperationObject } from '@scalar/workspace-store/schemas/v3.1/strict/path-operations';
|
|
4
6
|
import type { SecuritySchemeObject } from '@scalar/workspace-store/schemas/v3.1/strict/security-scheme';
|
|
5
7
|
import type { ServerObject } from '@scalar/workspace-store/schemas/v3.1/strict/server';
|
|
6
8
|
import type { Dereference } from '@scalar/workspace-store/schemas/v3.1/type-guard';
|
|
7
9
|
import type { Schemas } from '../../../features/Operation/types/schemas';
|
|
10
|
+
import type { ClientOptionGroup } from '../../../v2/blocks/scalar-request-example-block/types';
|
|
8
11
|
type __VLS_Props = {
|
|
9
12
|
id: string;
|
|
10
13
|
path: string;
|
|
14
|
+
clientOptions: ClientOptionGroup[];
|
|
11
15
|
method: HttpMethodType;
|
|
12
16
|
operation: Dereference<OperationObject>;
|
|
13
17
|
oldOperation: OpenAPIV3_1.OperationObject;
|
|
18
|
+
parameters: ParameterObject[];
|
|
14
19
|
isWebhook: boolean;
|
|
15
20
|
server: ServerObject | undefined;
|
|
16
21
|
securitySchemes: SecuritySchemeObject[];
|
|
17
22
|
schemas?: Schemas;
|
|
23
|
+
store: WorkspaceStore;
|
|
18
24
|
};
|
|
19
25
|
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
20
26
|
"update:modelValue": (value: string) => any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ClassicLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/layouts/ClassicLayout.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ClassicLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/layouts/ClassicLayout.vue"],"names":[],"mappings":"AAqcA,OAAO,KAAK,EAAE,UAAU,IAAI,cAAc,EAAE,MAAM,mCAAmC,CAAA;AAWrF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAExD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AACpE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uDAAuD,CAAA;AAC5F,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,6DAA6D,CAAA;AAClG,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,6DAA6D,CAAA;AACvG,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oDAAoD,CAAA;AACtF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iDAAiD,CAAA;AAclF,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAA;AAIjE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gDAAgD,CAAA;AAIvF,KAAK,WAAW,GAAG;IACjB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,aAAa,EAAE,iBAAiB,EAAE,CAAA;IAClC,MAAM,EAAE,cAAc,CAAA;IACtB,SAAS,EAAE,WAAW,CAAC,eAAe,CAAC,CAAA;IACvC,YAAY,EAAE,WAAW,CAAC,eAAe,CAAA;IACzC,UAAU,EAAE,eAAe,EAAE,CAAA;IAE7B,SAAS,EAAE,OAAO,CAAA;IAClB,MAAM,EAAE,YAAY,GAAG,SAAS,CAAA;IAChC,eAAe,EAAE,oBAAoB,EAAE,CAAA;IACvC,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,KAAK,EAAE,cAAc,CAAA;CACtB,CAAC;;;;;;AA+ZF,wBAQG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./ClassicLayout.vue2.js";
|
|
2
|
-
|
|
2
|
+
import "./ClassicLayout.vue3.js";
|
|
3
3
|
import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const c = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
4
|
+
const c = /* @__PURE__ */ t(o, [["__scopeId", "data-v-d52c6d10"]]);
|
|
5
5
|
export {
|
|
6
6
|
c as default
|
|
7
7
|
};
|
|
@@ -1,43 +1,47 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ScalarErrorBoundary as
|
|
3
|
-
import { ScalarIconPlay as
|
|
4
|
-
import { isOperationDeprecated as
|
|
5
|
-
import { useClipboard as
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import { useConfig as
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
1
|
+
import { defineComponent as g, computed as B, createBlock as r, openBlock as i, unref as o, createSlots as O, withCtx as s, createElementVNode as a, createVNode as t, createElementBlock as w, createCommentVNode as n, withModifiers as V, toDisplayString as h, normalizeClass as $, createTextVNode as u } from "vue";
|
|
2
|
+
import { ScalarErrorBoundary as q, ScalarIconButton as I, ScalarMarkdown as T } from "@scalar/components";
|
|
3
|
+
import { ScalarIconPlay as D, ScalarIconCopy as E, ScalarIconWebhooksLogo as L } from "@scalar/icons";
|
|
4
|
+
import { isOperationDeprecated as R, getOperationStability as f, getOperationStabilityColor as W } from "@scalar/oas-utils/helpers";
|
|
5
|
+
import { useClipboard as N } from "@scalar/use-hooks/useClipboard";
|
|
6
|
+
import P from "../../../components/OperationPath.vue.js";
|
|
7
|
+
import _ from "../components/callbacks/Callbacks.vue.js";
|
|
8
|
+
import z from "../components/OperationParameters.vue.js";
|
|
9
|
+
import U from "../components/OperationResponses.vue.js";
|
|
10
|
+
import { useConfig as A } from "../../../hooks/useConfig.js";
|
|
11
|
+
import M from "../../../components/Section/SectionAccordion.vue.js";
|
|
12
|
+
import j from "../../example-responses/ExampleResponses.vue.js";
|
|
13
|
+
import F from "../../../components/LinkList/LinkList.vue.js";
|
|
14
|
+
import G from "../../external-docs/ExternalDocs.vue.js";
|
|
14
15
|
import H from "../../../v2/blocks/scalar-request-example-block/components/RequestExample.vue.js";
|
|
15
16
|
import J from "../../test-request-button/TestRequestButton.vue.js";
|
|
16
17
|
import K from "../../../components/HttpMethod/HttpMethod.vue.js";
|
|
17
18
|
import Q from "../../../components/Anchor/Anchor.vue.js";
|
|
18
19
|
import y from "../../../components/Badge/Badge.vue.js";
|
|
19
|
-
const X = { class: "operation-title" }, Y = { class: "operation-details" }, Z = { class: "endpoint-label" }, x = { class: "endpoint-label-path" }, ee = { class: "endpoint-label-name" }, oe = { class: "endpoint-content" }, te = { class: "operation-details-card" }, ae = { class: "operation-details-card-item" }, se = { class: "operation-details-card-item" },
|
|
20
|
+
const X = { class: "operation-title" }, Y = { class: "operation-details" }, Z = { class: "endpoint-label" }, x = { class: "endpoint-label-path" }, ee = { class: "endpoint-label-name" }, oe = { class: "endpoint-content" }, te = { class: "operation-details-card" }, ae = { class: "operation-details-card-item" }, se = { class: "operation-details-card-item" }, ie = {
|
|
20
21
|
key: 0,
|
|
21
22
|
class: "operation-details-card-item"
|
|
22
|
-
},
|
|
23
|
+
}, Ve = /* @__PURE__ */ g({
|
|
23
24
|
__name: "ClassicLayout",
|
|
24
25
|
props: {
|
|
25
26
|
id: {},
|
|
26
27
|
path: {},
|
|
28
|
+
clientOptions: {},
|
|
27
29
|
method: {},
|
|
28
30
|
operation: {},
|
|
29
31
|
oldOperation: {},
|
|
32
|
+
parameters: {},
|
|
30
33
|
isWebhook: { type: Boolean },
|
|
31
34
|
server: {},
|
|
32
35
|
securitySchemes: {},
|
|
33
|
-
schemas: {}
|
|
36
|
+
schemas: {},
|
|
37
|
+
store: {}
|
|
34
38
|
},
|
|
35
39
|
emits: ["update:modelValue"],
|
|
36
40
|
setup(d, { emit: k }) {
|
|
37
|
-
const
|
|
38
|
-
|
|
41
|
+
const v = B(() => d.operation.summary || d.path || ""), { copyToClipboard: b } = N(), S = A(), C = k, m = (e) => {
|
|
42
|
+
C("update:modelValue", e);
|
|
39
43
|
};
|
|
40
|
-
return (e,
|
|
44
|
+
return (e, l) => (i(), r(o(M), {
|
|
41
45
|
id: e.id,
|
|
42
46
|
class: "reference-endpoint",
|
|
43
47
|
transparent: ""
|
|
@@ -57,32 +61,32 @@ const X = { class: "operation-title" }, Y = { class: "operation-details" }, Z =
|
|
|
57
61
|
default: s(() => [
|
|
58
62
|
a("h3", Z, [
|
|
59
63
|
a("div", x, [
|
|
60
|
-
t(
|
|
61
|
-
deprecated: o(
|
|
64
|
+
t(P, {
|
|
65
|
+
deprecated: o(R)(e.operation),
|
|
62
66
|
path: e.path
|
|
63
67
|
}, null, 8, ["deprecated", "path"])
|
|
64
68
|
]),
|
|
65
|
-
a("div", ee, h(
|
|
66
|
-
o(f)(e.operation) ? (
|
|
69
|
+
a("div", ee, h(v.value), 1),
|
|
70
|
+
o(f)(e.operation) ? (i(), r(o(y), {
|
|
67
71
|
key: 0,
|
|
68
|
-
class:
|
|
72
|
+
class: $(o(W)(e.operation))
|
|
69
73
|
}, {
|
|
70
74
|
default: s(() => [
|
|
71
75
|
u(h(o(f)(e.operation)), 1)
|
|
72
76
|
]),
|
|
73
77
|
_: 1
|
|
74
|
-
}, 8, ["class"])) :
|
|
75
|
-
e.isWebhook ? (
|
|
78
|
+
}, 8, ["class"])) : n("", !0),
|
|
79
|
+
e.isWebhook ? (i(), r(o(y), {
|
|
76
80
|
key: 1,
|
|
77
81
|
class: "font-code text-green flex w-fit items-center justify-center gap-1"
|
|
78
82
|
}, {
|
|
79
83
|
default: s(() => [
|
|
80
|
-
t(o(
|
|
81
|
-
|
|
84
|
+
t(o(L), { weight: "bold" }),
|
|
85
|
+
l[1] || (l[1] = u("Webhook "))
|
|
82
86
|
]),
|
|
83
87
|
_: 1,
|
|
84
88
|
__: [1]
|
|
85
|
-
})) :
|
|
89
|
+
})) : n("", !0)
|
|
86
90
|
])
|
|
87
91
|
]),
|
|
88
92
|
_: 1
|
|
@@ -90,76 +94,87 @@ const X = { class: "operation-title" }, Y = { class: "operation-details" }, Z =
|
|
|
90
94
|
])
|
|
91
95
|
])
|
|
92
96
|
]),
|
|
93
|
-
actions: s(({ active:
|
|
97
|
+
actions: s(({ active: p }) => {
|
|
94
98
|
var c;
|
|
95
99
|
return [
|
|
96
|
-
|
|
100
|
+
p && !e.isWebhook ? (i(), r(o(J), {
|
|
97
101
|
key: 0,
|
|
98
102
|
method: e.method,
|
|
99
103
|
path: e.path
|
|
100
|
-
}, null, 8, ["method", "path"])) : (c = o(
|
|
104
|
+
}, null, 8, ["method", "path"])) : (c = o(S)) != null && c.hideTestRequestButton ? n("", !0) : (i(), r(o(D), {
|
|
101
105
|
key: 1,
|
|
102
106
|
class: "endpoint-try-hint size-4.5"
|
|
103
107
|
})),
|
|
104
|
-
t(o(
|
|
108
|
+
t(o(I), {
|
|
105
109
|
class: "endpoint-copy p-0.5",
|
|
106
|
-
icon: o(
|
|
110
|
+
icon: o(E),
|
|
107
111
|
label: "Copy endpoint URL",
|
|
108
112
|
size: "xs",
|
|
109
113
|
variant: "ghost",
|
|
110
|
-
onClick:
|
|
114
|
+
onClick: l[0] || (l[0] = V((re) => o(b)(e.path), ["stop"]))
|
|
111
115
|
}, null, 8, ["icon"])
|
|
112
116
|
];
|
|
113
117
|
}),
|
|
114
118
|
default: s(() => {
|
|
115
|
-
var
|
|
119
|
+
var p;
|
|
116
120
|
return [
|
|
117
121
|
a("div", oe, [
|
|
118
122
|
a("div", te, [
|
|
119
123
|
a("div", ae, [
|
|
120
|
-
t(
|
|
121
|
-
parameters: e.oldOperation.parameters,
|
|
124
|
+
t(z, {
|
|
122
125
|
requestBody: e.oldOperation.requestBody,
|
|
126
|
+
parameters: e.parameters,
|
|
123
127
|
schemas: e.schemas,
|
|
124
128
|
"onUpdate:modelValue": m
|
|
125
|
-
}, null, 8, ["
|
|
129
|
+
}, null, 8, ["requestBody", "parameters", "schemas"])
|
|
126
130
|
]),
|
|
127
131
|
a("div", se, [
|
|
128
|
-
t(
|
|
132
|
+
t(U, {
|
|
129
133
|
collapsableItems: !1,
|
|
130
134
|
responses: e.oldOperation.responses,
|
|
131
135
|
schemas: e.schemas
|
|
132
136
|
}, null, 8, ["responses", "schemas"])
|
|
133
137
|
]),
|
|
134
|
-
(
|
|
135
|
-
t(
|
|
138
|
+
(p = e.operation) != null && p.callbacks ? (i(), w("div", ie, [
|
|
139
|
+
t(_, {
|
|
136
140
|
method: e.method,
|
|
137
141
|
path: e.path,
|
|
138
142
|
callbacks: e.operation.callbacks,
|
|
139
143
|
schemas: e.schemas
|
|
140
144
|
}, null, 8, ["method", "path", "callbacks", "schemas"])
|
|
141
|
-
])) :
|
|
145
|
+
])) : n("", !0)
|
|
142
146
|
]),
|
|
143
|
-
t(o(
|
|
147
|
+
t(o(j), {
|
|
144
148
|
class: "operation-example-card",
|
|
145
149
|
responses: e.operation.responses
|
|
146
150
|
}, null, 8, ["responses"]),
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
151
|
+
a("div", null, [
|
|
152
|
+
e.operation.externalDocs ? (i(), r(o(F), { key: 0 }, {
|
|
153
|
+
default: s(() => [
|
|
154
|
+
t(o(G), {
|
|
155
|
+
value: e.operation.externalDocs
|
|
156
|
+
}, null, 8, ["value"])
|
|
157
|
+
]),
|
|
158
|
+
_: 1
|
|
159
|
+
})) : n("", !0),
|
|
160
|
+
t(o(q), null, {
|
|
161
|
+
default: s(() => [
|
|
162
|
+
t(o(H), {
|
|
163
|
+
class: "operation-example-card",
|
|
164
|
+
method: e.method,
|
|
165
|
+
selectedServer: e.server,
|
|
166
|
+
clientOptions: e.clientOptions,
|
|
167
|
+
selectedClient: e.store.workspace["x-scalar-default-client"],
|
|
168
|
+
securitySchemes: e.securitySchemes,
|
|
169
|
+
path: e.path,
|
|
170
|
+
fallback: "",
|
|
171
|
+
operation: e.operation,
|
|
172
|
+
"onUpdate:modelValue": m
|
|
173
|
+
}, null, 8, ["method", "selectedServer", "clientOptions", "selectedClient", "securitySchemes", "path", "operation"])
|
|
174
|
+
]),
|
|
175
|
+
_: 1
|
|
176
|
+
})
|
|
177
|
+
])
|
|
163
178
|
])
|
|
164
179
|
];
|
|
165
180
|
}),
|
|
@@ -168,7 +183,7 @@ const X = { class: "operation-title" }, Y = { class: "operation-details" }, Z =
|
|
|
168
183
|
e.operation.description ? {
|
|
169
184
|
name: "description",
|
|
170
185
|
fn: s(() => [
|
|
171
|
-
t(o(
|
|
186
|
+
t(o(T), {
|
|
172
187
|
value: e.operation.description,
|
|
173
188
|
withImages: "",
|
|
174
189
|
withAnchors: "",
|
|
@@ -182,5 +197,5 @@ const X = { class: "operation-title" }, Y = { class: "operation-details" }, Z =
|
|
|
182
197
|
}
|
|
183
198
|
});
|
|
184
199
|
export {
|
|
185
|
-
|
|
200
|
+
Ve as default
|
|
186
201
|
};
|
|
@@ -1,20 +1,26 @@
|
|
|
1
1
|
import type { HttpMethod as HttpMethodType } from '@scalar/helpers/http/http-methods';
|
|
2
2
|
import type { OpenAPIV3_1 } from '@scalar/openapi-types';
|
|
3
|
+
import type { WorkspaceStore } from '@scalar/workspace-store/client';
|
|
4
|
+
import type { ParameterObject } from '@scalar/workspace-store/schemas/v3.1/strict/parameter';
|
|
3
5
|
import type { OperationObject } from '@scalar/workspace-store/schemas/v3.1/strict/path-operations';
|
|
4
6
|
import type { SecuritySchemeObject } from '@scalar/workspace-store/schemas/v3.1/strict/security-scheme';
|
|
5
7
|
import type { ServerObject } from '@scalar/workspace-store/schemas/v3.1/strict/server';
|
|
6
8
|
import type { Dereference } from '@scalar/workspace-store/schemas/v3.1/type-guard';
|
|
7
9
|
import type { Schemas } from '../../../features/Operation/types/schemas';
|
|
10
|
+
import type { ClientOptionGroup } from '../../../v2/blocks/scalar-request-example-block/types';
|
|
8
11
|
type __VLS_Props = {
|
|
9
12
|
id: string;
|
|
10
13
|
path: string;
|
|
14
|
+
clientOptions: ClientOptionGroup[];
|
|
11
15
|
method: HttpMethodType;
|
|
12
16
|
operation: Dereference<OperationObject>;
|
|
13
17
|
oldOperation: OpenAPIV3_1.OperationObject;
|
|
18
|
+
parameters: ParameterObject[];
|
|
14
19
|
isWebhook: boolean;
|
|
15
20
|
securitySchemes: SecuritySchemeObject[];
|
|
16
21
|
server: ServerObject | undefined;
|
|
17
22
|
schemas?: Schemas;
|
|
23
|
+
store: WorkspaceStore;
|
|
18
24
|
};
|
|
19
25
|
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
20
26
|
"update:modelValue": (value: string) => any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ModernLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/layouts/ModernLayout.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ModernLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/layouts/ModernLayout.vue"],"names":[],"mappings":"AAgNA,OAAO,KAAK,EAAE,UAAU,IAAI,cAAc,EAAE,MAAM,mCAAmC,CAAA;AAOrF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACxD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AACpE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uDAAuD,CAAA;AAC5F,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,6DAA6D,CAAA;AAClG,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,6DAA6D,CAAA;AACvG,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oDAAoD,CAAA;AACtF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iDAAiD,CAAA;AAoBlF,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAA;AAIjE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gDAAgD,CAAA;AAIvF,KAAK,WAAW,GAAG;IACjB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,aAAa,EAAE,iBAAiB,EAAE,CAAA;IAClC,MAAM,EAAE,cAAc,CAAA;IACtB,SAAS,EAAE,WAAW,CAAC,eAAe,CAAC,CAAA;IACvC,YAAY,EAAE,WAAW,CAAC,eAAe,CAAA;IACzC,UAAU,EAAE,eAAe,EAAE,CAAA;IAE7B,SAAS,EAAE,OAAO,CAAA;IAClB,eAAe,EAAE,oBAAoB,EAAE,CAAA;IACvC,MAAM,EAAE,YAAY,GAAG,SAAS,CAAA;IAChC,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,KAAK,EAAE,cAAc,CAAA;CACtB,CAAC;;;;;;AAmVF,wBAQG"}
|