@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
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { defineComponent as i, ref as s, onMounted as a, onUnmounted as c, createElementBlock as u, openBlock as d, normalizeClass as f, renderSlot as m } from "vue";
|
|
2
|
+
const w = /* @__PURE__ */ i({
|
|
3
|
+
__name: "LinkList",
|
|
4
|
+
setup(v) {
|
|
5
|
+
const e = s(), r = s(!1), n = () => {
|
|
6
|
+
if (!e.value)
|
|
7
|
+
return;
|
|
8
|
+
const { scrollWidth: o, clientWidth: l } = e.value;
|
|
9
|
+
r.value = o > l;
|
|
10
|
+
};
|
|
11
|
+
let t = null;
|
|
12
|
+
return a(() => {
|
|
13
|
+
n(), window.addEventListener("resize", n), e.value && (t = new MutationObserver(() => {
|
|
14
|
+
n();
|
|
15
|
+
}), t.observe(e.value, {
|
|
16
|
+
childList: !0,
|
|
17
|
+
subtree: !0
|
|
18
|
+
}));
|
|
19
|
+
}), c(() => {
|
|
20
|
+
window.removeEventListener("resize", n), t && (t.disconnect(), t = null);
|
|
21
|
+
}), (o, l) => (d(), u("div", {
|
|
22
|
+
ref_key: "containerRef",
|
|
23
|
+
ref: e,
|
|
24
|
+
class: f([{ "icons-only": r.value }, "custom-scroll mb-3 flex h-auto min-h-8 max-w-full items-center gap-2 overflow-x-auto text-xs whitespace-nowrap xl:mb-1.5"])
|
|
25
|
+
}, [
|
|
26
|
+
m(o.$slots, "default", {}, void 0, !0)
|
|
27
|
+
], 2));
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
export {
|
|
31
|
+
w as default
|
|
32
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/LinkList/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,gBAAgB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LoadingSkeleton.vue.d.ts","sourceRoot":"","sources":["../../src/components/LoadingSkeleton.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"LoadingSkeleton.vue.d.ts","sourceRoot":"","sources":["../../src/components/LoadingSkeleton.vue"],"names":[],"mappings":"AAmDA,KAAK,WAAW,GAAG;IAAE,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;;WAAT,MAAM;;AAsEnC,wBAOG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./LoadingSkeleton.vue2.js";
|
|
2
|
-
|
|
2
|
+
import "./LoadingSkeleton.vue3.js";
|
|
3
3
|
import t from "../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-8e0226d7"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { Tag } from '@scalar/types/legacy';
|
|
1
|
+
import type { TraversedTag } from '../../features/traverse-schema';
|
|
3
2
|
type __VLS_Props = {
|
|
4
|
-
tag:
|
|
5
|
-
collection: Collection;
|
|
6
|
-
isCollapsed?: boolean;
|
|
3
|
+
tag: TraversedTag;
|
|
7
4
|
};
|
|
8
5
|
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>;
|
|
9
6
|
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OperationsList.vue.d.ts","sourceRoot":"","sources":["../../../src/components/OperationsList/OperationsList.vue"],"names":[],"mappings":"AA0EA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAA;AAU9D,KAAK,WAAW,GAAG;IACjB,GAAG,EAAE,YAAY,CAAA;CAClB,CAAC;;AAwHF,wBAMG"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { defineComponent as u, computed as f, createBlock as s, createCommentVNode as h, openBlock as r, unref as o, withCtx as t, createVNode as n, createTextVNode as d, toDisplayString as c, createElementVNode as g, createElementBlock as k, Fragment as _, renderList as C } from "vue";
|
|
2
|
+
import { ScalarCard as S, ScalarCardHeader as b, ScalarCardSection as N } from "@scalar/components";
|
|
3
|
+
import V from "../ScreenReader.vue.js";
|
|
4
|
+
import y from "./OperationsListItem.vue.js";
|
|
5
|
+
const B = ["aria-label"], O = /* @__PURE__ */ u({
|
|
6
|
+
__name: "OperationsList",
|
|
7
|
+
props: {
|
|
8
|
+
tag: {}
|
|
9
|
+
},
|
|
10
|
+
setup(m) {
|
|
11
|
+
const p = f(
|
|
12
|
+
() => {
|
|
13
|
+
var e;
|
|
14
|
+
return (e = m.tag.children) == null ? void 0 : e.filter(
|
|
15
|
+
(a) => "operation" in a || "webhook" in a
|
|
16
|
+
);
|
|
17
|
+
}
|
|
18
|
+
);
|
|
19
|
+
return (e, a) => {
|
|
20
|
+
var l;
|
|
21
|
+
return ((l = e.tag.children) == null ? void 0 : l.length) > 0 ? (r(), s(o(S), {
|
|
22
|
+
key: 0,
|
|
23
|
+
class: "endpoints-card"
|
|
24
|
+
}, {
|
|
25
|
+
default: t(() => [
|
|
26
|
+
n(o(b), { muted: "" }, {
|
|
27
|
+
default: t(() => [
|
|
28
|
+
n(V, null, {
|
|
29
|
+
default: t(() => [
|
|
30
|
+
d(c(e.tag.title), 1)
|
|
31
|
+
]),
|
|
32
|
+
_: 1
|
|
33
|
+
}),
|
|
34
|
+
d(" " + c(e.tag.isWebhooks ? "Webhooks" : "Operations"), 1)
|
|
35
|
+
]),
|
|
36
|
+
_: 1
|
|
37
|
+
}),
|
|
38
|
+
n(o(N), { class: "custom-scroll max-h-[60vh]" }, {
|
|
39
|
+
default: t(() => [
|
|
40
|
+
g("ul", {
|
|
41
|
+
"aria-label": `${e.tag.title} endpoints`,
|
|
42
|
+
class: "endpoints"
|
|
43
|
+
}, [
|
|
44
|
+
(r(!0), k(_, null, C(p.value, (i) => (r(), s(y, {
|
|
45
|
+
key: i.id,
|
|
46
|
+
operation: i
|
|
47
|
+
}, null, 8, ["operation"]))), 128))
|
|
48
|
+
], 8, B)
|
|
49
|
+
]),
|
|
50
|
+
_: 1
|
|
51
|
+
})
|
|
52
|
+
]),
|
|
53
|
+
_: 1
|
|
54
|
+
})) : h("", !0);
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
export {
|
|
59
|
+
O as default
|
|
60
|
+
};
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { TransformedOperation } from '@scalar/types/legacy';
|
|
1
|
+
import type { TraversedOperation, TraversedWebhook } from '../../features/traverse-schema';
|
|
3
2
|
type __VLS_Props = {
|
|
4
|
-
|
|
5
|
-
collection: Collection;
|
|
3
|
+
operation: TraversedOperation | TraversedWebhook;
|
|
6
4
|
isCollapsed?: boolean;
|
|
7
5
|
};
|
|
8
6
|
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, {}, HTMLLIElement>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OperationsListItem.vue.d.ts","sourceRoot":"","sources":["../../../src/components/OperationsList/OperationsListItem.vue"],"names":[],"mappings":"AAkJA,OAAO,KAAK,EAEV,kBAAkB,EAClB,gBAAgB,EACjB,MAAM,4BAA4B,CAAA;AAInC,KAAK,WAAW,GAAG;IACjB,SAAS,EAAE,kBAAkB,GAAG,gBAAgB,CAAA;IAChD,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,CAAC;;AA6JF,wBAOG"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { defineComponent as u, computed as y, createElementBlock as k, openBlock as r, createBlock as i, createCommentVNode as a, createElementVNode as s, unref as o, withCtx as l, createTextVNode as C, toDisplayString as p, withModifiers as g, createVNode as S, normalizeStyle as V, normalizeClass as b } from "vue";
|
|
2
|
+
import { getHttpMethodInfo as v } from "@scalar/helpers/http/http-info";
|
|
3
|
+
import { ScalarIconWebhooksLogo as B } from "@scalar/icons";
|
|
4
|
+
import { isOperationDeprecated as H } from "@scalar/oas-utils/helpers";
|
|
5
|
+
import { useSidebar as N } from "../../features/sidebar/hooks/useSidebar.js";
|
|
6
|
+
import O from "../Section/SectionHeaderTag.vue.js";
|
|
7
|
+
import T from "../HttpMethod/HttpMethod.vue.js";
|
|
8
|
+
const w = ["href"], j = /* @__PURE__ */ u({
|
|
9
|
+
__name: "OperationsListItem",
|
|
10
|
+
props: {
|
|
11
|
+
operation: {},
|
|
12
|
+
isCollapsed: { type: Boolean }
|
|
13
|
+
},
|
|
14
|
+
setup(t) {
|
|
15
|
+
const { scrollToOperation: d } = N(), m = async (e) => {
|
|
16
|
+
d(e.id, !0);
|
|
17
|
+
}, c = y(() => "path" in t.operation ? t.operation.path : t.operation.title), f = (e) => "operation" in e && H(
|
|
18
|
+
e.operation
|
|
19
|
+
), h = (e) => "webhook" in e;
|
|
20
|
+
return (e, n) => (r(), k("li", {
|
|
21
|
+
key: e.operation.id,
|
|
22
|
+
class: "contents"
|
|
23
|
+
}, [
|
|
24
|
+
e.isCollapsed ? (r(), i(o(O), {
|
|
25
|
+
key: 0,
|
|
26
|
+
class: "sr-only",
|
|
27
|
+
level: 3
|
|
28
|
+
}, {
|
|
29
|
+
default: l(() => [
|
|
30
|
+
C(p(e.operation.title) + " (Hidden) ", 1)
|
|
31
|
+
]),
|
|
32
|
+
_: 1
|
|
33
|
+
})) : a("", !0),
|
|
34
|
+
s("a", {
|
|
35
|
+
class: "endpoint",
|
|
36
|
+
href: `#${e.operation.id}`,
|
|
37
|
+
onClick: n[0] || (n[0] = g((z) => m(e.operation), ["prevent"]))
|
|
38
|
+
}, [
|
|
39
|
+
S(o(T), {
|
|
40
|
+
class: "endpoint-method items-center justify-end gap-2",
|
|
41
|
+
method: e.operation.method
|
|
42
|
+
}, {
|
|
43
|
+
default: l(() => [
|
|
44
|
+
h(e.operation) ? (r(), i(o(B), {
|
|
45
|
+
key: 0,
|
|
46
|
+
style: V({
|
|
47
|
+
color: o(v)(e.operation.method).colorVar
|
|
48
|
+
}),
|
|
49
|
+
class: "size-3.5"
|
|
50
|
+
}, null, 8, ["style"])) : a("", !0)
|
|
51
|
+
]),
|
|
52
|
+
_: 1
|
|
53
|
+
}, 8, ["method"]),
|
|
54
|
+
s("span", {
|
|
55
|
+
class: b(["endpoint-path", { deprecated: f(e.operation) }])
|
|
56
|
+
}, p(c.value), 3)
|
|
57
|
+
], 8, w)
|
|
58
|
+
]));
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
export {
|
|
62
|
+
j as default
|
|
63
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/OperationsList/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,sBAAsB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CompactSection.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Section/CompactSection.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CompactSection.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Section/CompactSection.vue"],"names":[],"mappings":"AA2GA,KAAK,WAAW,GAAG;IACjB,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAC;AAuBF,iBAAS,cAAc;WAwFT,OAAO,IAA6B;;yBATpB,GAAG;yBACH,GAAG;;;;EAahC;AAYD,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,7 +1,7 @@
|
|
|
1
1
|
import o from "./CompactSection.vue2.js";
|
|
2
|
-
|
|
2
|
+
import "./CompactSection.vue3.js";
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const r = /* @__PURE__ */ t(o, [["__scopeId", "data-v-9a9a7b16"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
r as default
|
|
7
7
|
};
|
|
@@ -1,61 +1,60 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
const
|
|
1
|
+
import { defineComponent as m, ref as p, watch as f, nextTick as v, createElementBlock as b, openBlock as i, createElementVNode as h, createBlock as g, createCommentVNode as C, normalizeClass as r, createVNode as s, unref as t, withCtx as n, renderSlot as c } from "vue";
|
|
2
|
+
import { scrollToId as k } from "@scalar/helpers/dom/scroll-to-id";
|
|
3
|
+
import { ScalarIconCaretRight as S } from "@scalar/icons";
|
|
4
|
+
import { useNavState as _ } from "../../hooks/useNavState.js";
|
|
5
|
+
import w from "../Anchor/Anchor.vue.js";
|
|
6
|
+
import N from "./Section.vue.js";
|
|
7
|
+
const $ = { class: "collapsible-section" }, y = ["id", "aria-controls", "aria-expanded"], j = /* @__PURE__ */ m({
|
|
8
8
|
__name: "CompactSection",
|
|
9
9
|
props: {
|
|
10
10
|
id: {},
|
|
11
11
|
label: {}
|
|
12
12
|
},
|
|
13
13
|
setup(d) {
|
|
14
|
-
const a = d, { hash:
|
|
15
|
-
return
|
|
16
|
-
|
|
17
|
-
async (
|
|
18
|
-
|
|
14
|
+
const a = d, { hash: u } = _(), o = p(!1);
|
|
15
|
+
return f(
|
|
16
|
+
u,
|
|
17
|
+
async (e) => {
|
|
18
|
+
e === a.id && !o.value && (o.value = !0, await v(), k(a.id));
|
|
19
19
|
},
|
|
20
20
|
{ immediate: !0 }
|
|
21
|
-
), (
|
|
22
|
-
|
|
23
|
-
id:
|
|
24
|
-
"aria-controls":
|
|
25
|
-
"aria-expanded":
|
|
26
|
-
class:
|
|
21
|
+
), (e, l) => (i(), b("div", $, [
|
|
22
|
+
h("button", {
|
|
23
|
+
id: e.id,
|
|
24
|
+
"aria-controls": e.id,
|
|
25
|
+
"aria-expanded": o.value,
|
|
26
|
+
class: r(["collapsible-section-trigger", { "collapsible-section-trigger-open": o.value }]),
|
|
27
27
|
type: "button",
|
|
28
|
-
onClick:
|
|
28
|
+
onClick: l[0] || (l[0] = (B) => o.value = !o.value)
|
|
29
29
|
}, [
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
id: o.id,
|
|
30
|
+
s(t(S), {
|
|
31
|
+
weight: "bold",
|
|
32
|
+
class: r(["size-3 transition-transform duration-100", { "rotate-90": o.value }])
|
|
33
|
+
}, null, 8, ["class"]),
|
|
34
|
+
s(t(w), {
|
|
35
|
+
id: e.id,
|
|
37
36
|
class: "collapsible-section-header"
|
|
38
37
|
}, {
|
|
39
|
-
default:
|
|
40
|
-
c(
|
|
38
|
+
default: n(() => [
|
|
39
|
+
c(e.$slots, "heading", {}, void 0, !0)
|
|
41
40
|
]),
|
|
42
41
|
_: 3
|
|
43
42
|
}, 8, ["id"])
|
|
44
|
-
], 10,
|
|
45
|
-
|
|
43
|
+
], 10, y),
|
|
44
|
+
o.value ? (i(), g(t(N), {
|
|
46
45
|
key: 0,
|
|
47
|
-
id:
|
|
46
|
+
id: e.id,
|
|
48
47
|
class: "collapsible-section-content",
|
|
49
|
-
label:
|
|
48
|
+
label: e.label
|
|
50
49
|
}, {
|
|
51
|
-
default:
|
|
52
|
-
c(
|
|
50
|
+
default: n(() => [
|
|
51
|
+
c(e.$slots, "default", {}, void 0, !0)
|
|
53
52
|
]),
|
|
54
53
|
_: 3
|
|
55
|
-
}, 8, ["id", "label"])) :
|
|
54
|
+
}, 8, ["id", "label"])) : C("", !0)
|
|
56
55
|
]));
|
|
57
56
|
}
|
|
58
57
|
});
|
|
59
58
|
export {
|
|
60
|
-
|
|
59
|
+
j as default
|
|
61
60
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SectionAccordion.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Section/SectionAccordion.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SectionAccordion.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Section/SectionAccordion.vue"],"names":[],"mappings":"AA4JA,KAAK,WAAW,GAAG;IACjB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,CAAC;AA6BF,iBAAS,cAAc;WA4IT,OAAO,IAA6B;;uBAZtB,GAAG;;;YACD,GAAG;6BACC,GAAG;yBACP,GAAG;;;;;;;;;;;;;;;;0BA/KjC,KA/F2B,eA+F3B,KA/F+C,uBA+F/C,KA9FoB;;oBA8FpB,KA3FsB,eA2FtB,KA1FU,uBA0FV,KA1FsC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuRrC;AAgBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,kSAOnB,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,7 +1,7 @@
|
|
|
1
1
|
import o from "./SectionAccordion.vue2.js";
|
|
2
|
-
|
|
2
|
+
import "./SectionAccordion.vue3.js";
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const e = /* @__PURE__ */ t(o, [["__scopeId", "data-v-d3d6e381"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
e as default
|
|
7
7
|
};
|
|
@@ -1,59 +1,65 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { Disclosure as
|
|
3
|
-
import { ScalarIconCaretRight as
|
|
4
|
-
import { useElementHover as
|
|
5
|
-
import
|
|
6
|
-
|
|
1
|
+
import { defineComponent as $, ref as C, createBlock as B, openBlock as r, withCtx as s, createVNode as n, unref as o, normalizeClass as l, createElementVNode as u, createElementBlock as m, createCommentVNode as f, renderSlot as i } from "vue";
|
|
2
|
+
import { Disclosure as I, DisclosureButton as _, DisclosurePanel as y } from "@headlessui/vue";
|
|
3
|
+
import { ScalarIconCaretRight as E } from "@scalar/icons";
|
|
4
|
+
import { useElementHover as N } from "@vueuse/core";
|
|
5
|
+
import { useNavState as g } from "../../hooks/useNavState.js";
|
|
6
|
+
import w from "../IntersectionObserver.vue.js";
|
|
7
|
+
import { useSidebar as D } from "../../features/sidebar/hooks/useSidebar.js";
|
|
8
|
+
const V = { class: "section-accordion-button-content" }, z = {
|
|
7
9
|
key: 0,
|
|
8
10
|
class: "section-accordion-button-actions"
|
|
9
|
-
},
|
|
11
|
+
}, H = {
|
|
10
12
|
key: 0,
|
|
11
13
|
class: "section-accordion-description"
|
|
12
|
-
},
|
|
14
|
+
}, W = { class: "section-accordion-content-card" }, G = /* @__PURE__ */ $({
|
|
13
15
|
__name: "SectionAccordion",
|
|
14
16
|
props: {
|
|
15
17
|
id: {},
|
|
16
18
|
transparent: { type: Boolean }
|
|
17
19
|
},
|
|
18
|
-
setup(
|
|
19
|
-
const
|
|
20
|
-
|
|
21
|
-
id
|
|
22
|
-
|
|
20
|
+
setup(e) {
|
|
21
|
+
const a = C(), p = N(a), { getSectionId: v, isIntersectionEnabled: h, replaceUrlState: b } = g(), { setCollapsedSidebarItem: S } = D(), k = () => {
|
|
22
|
+
var t, c;
|
|
23
|
+
!e.id || !h.value || (b(e.id), ((t = e.id) != null && t.startsWith("model") || (c = e.id) != null && c.startsWith("webhook")) && S(v(e.id), !0));
|
|
24
|
+
};
|
|
25
|
+
return (t, c) => (r(), B(w, {
|
|
26
|
+
id: t.id,
|
|
27
|
+
class: "section-wrapper",
|
|
28
|
+
onIntersecting: k
|
|
23
29
|
}, {
|
|
24
|
-
default:
|
|
25
|
-
|
|
30
|
+
default: s(() => [
|
|
31
|
+
n(o(I), {
|
|
26
32
|
as: "section",
|
|
27
|
-
class:
|
|
33
|
+
class: l(["section-accordion", { "section-accordion-transparent": t.transparent }])
|
|
28
34
|
}, {
|
|
29
|
-
default:
|
|
30
|
-
|
|
35
|
+
default: s(({ open: d }) => [
|
|
36
|
+
n(o(_), {
|
|
31
37
|
ref_key: "button",
|
|
32
|
-
ref:
|
|
38
|
+
ref: a,
|
|
33
39
|
class: "section-accordion-button"
|
|
34
40
|
}, {
|
|
35
|
-
default:
|
|
36
|
-
|
|
37
|
-
|
|
41
|
+
default: s(() => [
|
|
42
|
+
u("div", V, [
|
|
43
|
+
i(t.$slots, "title", {}, void 0, !0)
|
|
38
44
|
]),
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
active:
|
|
45
|
+
t.$slots.actions ? (r(), m("div", z, [
|
|
46
|
+
i(t.$slots, "actions", {
|
|
47
|
+
active: o(p) || d
|
|
42
48
|
}, void 0, !0)
|
|
43
|
-
])) :
|
|
44
|
-
|
|
45
|
-
class:
|
|
49
|
+
])) : f("", !0),
|
|
50
|
+
n(o(E), {
|
|
51
|
+
class: l(["section-accordion-chevron size-4.5 transition-transform", { "rotate-90": d }])
|
|
46
52
|
}, null, 8, ["class"])
|
|
47
53
|
]),
|
|
48
54
|
_: 2
|
|
49
55
|
}, 1536),
|
|
50
|
-
|
|
51
|
-
default:
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
])) :
|
|
55
|
-
|
|
56
|
-
|
|
56
|
+
n(o(y), { class: "section-accordion-content" }, {
|
|
57
|
+
default: s(() => [
|
|
58
|
+
t.$slots.description ? (r(), m("div", H, [
|
|
59
|
+
i(t.$slots, "description", {}, void 0, !0)
|
|
60
|
+
])) : f("", !0),
|
|
61
|
+
u("div", W, [
|
|
62
|
+
i(t.$slots, "default", {}, void 0, !0)
|
|
57
63
|
])
|
|
58
64
|
]),
|
|
59
65
|
_: 3
|
|
@@ -67,5 +73,5 @@ const C = { class: "section-accordion-button-content" }, y = {
|
|
|
67
73
|
}
|
|
68
74
|
});
|
|
69
75
|
export {
|
|
70
|
-
|
|
76
|
+
G as default
|
|
71
77
|
};
|