@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,50 +0,0 @@
|
|
|
1
|
-
import { defineComponent as i, createBlock as n, openBlock as c, unref as e, withCtx as t, renderSlot as l, createVNode as a, createTextVNode as d, toDisplayString as s } from "vue";
|
|
2
|
-
import { ScalarMarkdown as m } from "@scalar/components";
|
|
3
|
-
import { useNavState as p } from "../../../hooks/useNavState.js";
|
|
4
|
-
import f from "../../Section/SectionContainerAccordion.vue.js";
|
|
5
|
-
import u from "../../Section/SectionHeader.vue.js";
|
|
6
|
-
import g from "../../Anchor/Anchor.vue.js";
|
|
7
|
-
import _ from "../../Section/SectionHeaderTag.vue.js";
|
|
8
|
-
const B = /* @__PURE__ */ i({
|
|
9
|
-
__name: "TagAccordion",
|
|
10
|
-
props: {
|
|
11
|
-
tag: {}
|
|
12
|
-
},
|
|
13
|
-
setup(S) {
|
|
14
|
-
const { getTagId: r } = p();
|
|
15
|
-
return (o, v) => (c(), n(e(f), { class: "tag-section" }, {
|
|
16
|
-
title: t(() => [
|
|
17
|
-
a(e(u), { class: "tag-name" }, {
|
|
18
|
-
default: t(() => [
|
|
19
|
-
a(e(g), {
|
|
20
|
-
id: e(r)(o.tag)
|
|
21
|
-
}, {
|
|
22
|
-
default: t(() => [
|
|
23
|
-
a(e(_), { level: 2 }, {
|
|
24
|
-
default: t(() => [
|
|
25
|
-
d(s(o.tag.name), 1)
|
|
26
|
-
]),
|
|
27
|
-
_: 1
|
|
28
|
-
})
|
|
29
|
-
]),
|
|
30
|
-
_: 1
|
|
31
|
-
}, 8, ["id"])
|
|
32
|
-
]),
|
|
33
|
-
_: 1
|
|
34
|
-
}),
|
|
35
|
-
a(e(m), {
|
|
36
|
-
class: "tag-description",
|
|
37
|
-
value: o.tag.description,
|
|
38
|
-
withImages: ""
|
|
39
|
-
}, null, 8, ["value"])
|
|
40
|
-
]),
|
|
41
|
-
default: t(() => [
|
|
42
|
-
l(o.$slots, "default", {}, void 0, !0)
|
|
43
|
-
]),
|
|
44
|
-
_: 3
|
|
45
|
-
}));
|
|
46
|
-
}
|
|
47
|
-
});
|
|
48
|
-
export {
|
|
49
|
-
B as default
|
|
50
|
-
};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import type { Collection, Server } from '@scalar/oas-utils/entities/spec';
|
|
2
|
-
import type { OpenAPIV3_1 } from '@scalar/openapi-types';
|
|
3
|
-
import type { Spec, Tag as TagType } from '@scalar/types/legacy';
|
|
4
|
-
type __VLS_Props = {
|
|
5
|
-
/** Just to set the id for webhooks, for now */
|
|
6
|
-
id?: string;
|
|
7
|
-
document: OpenAPIV3_1.Document;
|
|
8
|
-
/**
|
|
9
|
-
* @deprecated Use `document` instead
|
|
10
|
-
*/
|
|
11
|
-
collection: Collection;
|
|
12
|
-
tags: TagType[];
|
|
13
|
-
/**
|
|
14
|
-
* @deprecated Use `document` instead
|
|
15
|
-
*/
|
|
16
|
-
spec: Spec;
|
|
17
|
-
layout?: 'modern' | 'classic';
|
|
18
|
-
server?: Server;
|
|
19
|
-
};
|
|
20
|
-
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
21
|
-
export default _default;
|
|
22
|
-
//# sourceMappingURL=TagList.vue.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TagList.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/TagList.vue"],"names":[],"mappings":"AA2FA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAA;AACzE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACxD,OAAO,KAAK,EAAE,IAAI,EAAE,GAAG,IAAI,OAAO,EAAE,MAAM,sBAAsB,CAAA;AAahE,KAAK,WAAW,GAAG;IACjB,+CAA+C;IAC/C,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,QAAQ,EAAE,WAAW,CAAC,QAAQ,CAAA;IAC9B;;OAEG;IACH,UAAU,EAAE,UAAU,CAAA;IACtB,IAAI,EAAE,OAAO,EAAE,CAAA;IACf;;OAEG;IACH,IAAI,EAAE,IAAI,CAAA;IACV,MAAM,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAA;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB,CAAC;;AA8HF,wBAMG"}
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import { defineComponent as z, computed as m, createElementBlock as p, openBlock as a, Fragment as y, renderList as f, createBlock as r, unref as o, withCtx as c, resolveDynamicComponent as S, createVNode as h } from "vue";
|
|
2
|
-
import { ScalarErrorBoundary as B } from "@scalar/components";
|
|
3
|
-
import { useNavState as I } from "../../../hooks/useNavState.js";
|
|
4
|
-
import T from "./TagAccordion.vue.js";
|
|
5
|
-
import W from "./TagSection.vue.js";
|
|
6
|
-
import { useSidebar as C } from "../../../features/sidebar/hooks/useSidebar.js";
|
|
7
|
-
import v from "../Lazy/Lazy.vue2.js";
|
|
8
|
-
import E from "../../../features/Operation/Operation.vue.js";
|
|
9
|
-
const G = /* @__PURE__ */ z({
|
|
10
|
-
__name: "TagList",
|
|
11
|
-
props: {
|
|
12
|
-
id: {},
|
|
13
|
-
document: {},
|
|
14
|
-
collection: {},
|
|
15
|
-
tags: {},
|
|
16
|
-
spec: {},
|
|
17
|
-
layout: {},
|
|
18
|
-
server: {}
|
|
19
|
-
},
|
|
20
|
-
setup(s) {
|
|
21
|
-
const { getTagId: l, hash: k } = I(), { collapsedSidebarItems: n } = C(), L = m(
|
|
22
|
-
() => s.layout === "classic" ? T : W
|
|
23
|
-
), b = m(
|
|
24
|
-
() => s.tags.findIndex((e) => !n[l(e)]) + 1
|
|
25
|
-
), u = (e) => s.layout !== "classic" && !k.value.startsWith("model") && e > b.value;
|
|
26
|
-
return (e, N) => (a(!0), p(y, null, f(e.tags, (t, d) => (a(), r(o(v), {
|
|
27
|
-
id: e.id || o(l)(t),
|
|
28
|
-
key: e.id || o(l)(t),
|
|
29
|
-
isLazy: u(d)
|
|
30
|
-
}, {
|
|
31
|
-
default: c(() => [
|
|
32
|
-
(a(), r(S(L.value), {
|
|
33
|
-
id: e.id || o(l)(t),
|
|
34
|
-
collection: e.collection,
|
|
35
|
-
spec: e.spec,
|
|
36
|
-
tag: t
|
|
37
|
-
}, {
|
|
38
|
-
default: c(() => [
|
|
39
|
-
(a(!0), p(y, null, f(t.operations, (i, g) => (a(), r(o(v), {
|
|
40
|
-
id: i.id,
|
|
41
|
-
key: i.id,
|
|
42
|
-
isLazy: u(d) || o(n)[o(l)(t)] && g > 0
|
|
43
|
-
}, {
|
|
44
|
-
default: c(() => [
|
|
45
|
-
h(o(B), null, {
|
|
46
|
-
default: c(() => [
|
|
47
|
-
h(o(E), {
|
|
48
|
-
path: i.path,
|
|
49
|
-
method: i.httpVerb,
|
|
50
|
-
isWebhook: i.isWebhook,
|
|
51
|
-
id: i.id,
|
|
52
|
-
document: e.document,
|
|
53
|
-
collection: e.collection,
|
|
54
|
-
layout: e.layout,
|
|
55
|
-
server: e.server
|
|
56
|
-
}, null, 8, ["path", "method", "isWebhook", "id", "document", "collection", "layout", "server"])
|
|
57
|
-
]),
|
|
58
|
-
_: 2
|
|
59
|
-
}, 1024)
|
|
60
|
-
]),
|
|
61
|
-
_: 2
|
|
62
|
-
}, 1032, ["id", "isLazy"]))), 128))
|
|
63
|
-
]),
|
|
64
|
-
_: 2
|
|
65
|
-
}, 1032, ["id", "collection", "spec", "tag"]))
|
|
66
|
-
]),
|
|
67
|
-
_: 2
|
|
68
|
-
}, 1032, ["id", "isLazy"]))), 128));
|
|
69
|
-
}
|
|
70
|
-
});
|
|
71
|
-
export {
|
|
72
|
-
G as default
|
|
73
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TagSection.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/TagSection.vue"],"names":[],"mappings":"AAiFA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAA;AACjE,OAAO,KAAK,EAAE,IAAI,EAAE,GAAG,IAAI,OAAO,EAAE,MAAM,sBAAsB,CAAA;AAChE,OAAO,EAAY,QAAQ,EAAc,MAAM,KAAK,CAAA;AAUpD,KAAK,WAAW,GAAG;IACjB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,OAAO,CAAA;IACZ,UAAU,EAAE,UAAU,CAAA;IACtB,IAAI,EAAE,IAAI,CAAA;CACX,CAAC;AAiCF,iBAAS,cAAc;WAyFT,OAAO,IAA6B;;yBAVpB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCA4DspgB,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;EA7C5ygB;AAmBD,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,67 +0,0 @@
|
|
|
1
|
-
import { defineComponent as v, ref as f, useId as y, computed as r, createBlock as i, openBlock as n, unref as a, withCtx as C, createCommentVNode as b, createElementBlock as S, renderSlot as I, nextTick as T } from "vue";
|
|
2
|
-
import _ from "./Tag.vue.js";
|
|
3
|
-
import w from "../../ShowMoreButton.vue.js";
|
|
4
|
-
import { useNavState as B } from "../../../hooks/useNavState.js";
|
|
5
|
-
import { useSidebar as R } from "../../../features/sidebar/hooks/useSidebar.js";
|
|
6
|
-
import N from "../../Section/SectionContainer.vue.js";
|
|
7
|
-
const V = /* @__PURE__ */ v({
|
|
8
|
-
__name: "TagSection",
|
|
9
|
-
props: {
|
|
10
|
-
id: {},
|
|
11
|
-
tag: {},
|
|
12
|
-
collection: {},
|
|
13
|
-
spec: {}
|
|
14
|
-
},
|
|
15
|
-
setup(m) {
|
|
16
|
-
const o = m, p = f(), s = f(), c = y(), { collapsedSidebarItems: d } = R(), { getTagId: g } = B(), l = r(() => o.id || g(o.tag) || ""), u = r(
|
|
17
|
-
() => {
|
|
18
|
-
var e, t;
|
|
19
|
-
return ((e = o.spec.tags) == null ? void 0 : e.length) && ((t = o.spec.tags) == null ? void 0 : t.length) > 1;
|
|
20
|
-
}
|
|
21
|
-
), h = r(
|
|
22
|
-
() => {
|
|
23
|
-
var e, t;
|
|
24
|
-
return u.value || ((e = o.tag) == null ? void 0 : e.name) !== "default" || ((t = o.tag) == null ? void 0 : t.description) !== "";
|
|
25
|
-
}
|
|
26
|
-
);
|
|
27
|
-
async function k() {
|
|
28
|
-
var e, t;
|
|
29
|
-
await T(), (t = (e = s.value) == null ? void 0 : e.querySelector("button")) == null || t.focus();
|
|
30
|
-
}
|
|
31
|
-
return (e, t) => (n(), i(a(N), {
|
|
32
|
-
ref_key: "sectionContainerRef",
|
|
33
|
-
ref: p,
|
|
34
|
-
"aria-labelledby": a(c),
|
|
35
|
-
class: "tag-section-container",
|
|
36
|
-
role: "region"
|
|
37
|
-
}, {
|
|
38
|
-
default: C(() => [
|
|
39
|
-
h.value ? (n(), i(_, {
|
|
40
|
-
key: 0,
|
|
41
|
-
id: e.id,
|
|
42
|
-
collection: e.collection,
|
|
43
|
-
headerId: a(c),
|
|
44
|
-
isCollapsed: !a(d)[l.value],
|
|
45
|
-
tag: e.tag
|
|
46
|
-
}, null, 8, ["id", "collection", "headerId", "isCollapsed", "tag"])) : b("", !0),
|
|
47
|
-
!a(d)[l.value] && u.value ? (n(), i(w, {
|
|
48
|
-
key: 1,
|
|
49
|
-
id: l.value,
|
|
50
|
-
"aria-label": `Show all ${e.tag["x-displayName"] ?? e.tag.name} endpoints`,
|
|
51
|
-
onClick: k
|
|
52
|
-
}, null, 8, ["id", "aria-label"])) : (n(), S("div", {
|
|
53
|
-
key: 2,
|
|
54
|
-
ref_key: "contentsRef",
|
|
55
|
-
ref: s,
|
|
56
|
-
class: "contents"
|
|
57
|
-
}, [
|
|
58
|
-
I(e.$slots, "default", {}, void 0, !0)
|
|
59
|
-
], 512))
|
|
60
|
-
]),
|
|
61
|
-
_: 3
|
|
62
|
-
}, 8, ["aria-labelledby"]));
|
|
63
|
-
}
|
|
64
|
-
});
|
|
65
|
-
export {
|
|
66
|
-
V as default
|
|
67
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,kBAAkB,CAAA;AACxD,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,eAAe,CAAA"}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import type { HiddenClients } from '@scalar/types/legacy';
|
|
2
|
-
import type { Target, TargetId } from '@scalar/types/snippetz';
|
|
3
|
-
import { type Ref } from 'vue';
|
|
4
|
-
/**
|
|
5
|
-
* Gets the client title from the availableTargets
|
|
6
|
-
* { targetKey: 'shell', clientKey: 'curl' } -> 'Shell'
|
|
7
|
-
*/
|
|
8
|
-
declare function getTargetTitle(client: HttpClientState): string;
|
|
9
|
-
/**
|
|
10
|
-
* Gets the client title from the availableTargets
|
|
11
|
-
* { targetKey: 'shell', clientKey: 'curl' } -> 'cURL'
|
|
12
|
-
*/
|
|
13
|
-
declare function getClientTitle(client: HttpClientState): string;
|
|
14
|
-
/**
|
|
15
|
-
* Filters out hidden clients from the available targets (based on the given configuration).
|
|
16
|
-
*/
|
|
17
|
-
export declare function filterHiddenClients(targets: Target[], exclude: Ref<HiddenClients>): Target[];
|
|
18
|
-
/** The selected HTTP client */
|
|
19
|
-
export type HttpClientState = {
|
|
20
|
-
targetKey: TargetId;
|
|
21
|
-
clientKey: string;
|
|
22
|
-
};
|
|
23
|
-
declare function setDefaultHttpClient(httpClient?: HttpClientState): void;
|
|
24
|
-
declare function resetState(): void;
|
|
25
|
-
/** Keep track of the available and the selected HTTP client(s) */
|
|
26
|
-
export declare const useHttpClientStore: () => {
|
|
27
|
-
httpClient: {
|
|
28
|
-
readonly targetKey: TargetId;
|
|
29
|
-
readonly clientKey: string;
|
|
30
|
-
};
|
|
31
|
-
resetState: typeof resetState;
|
|
32
|
-
setHttpClient: (newState: Partial<HttpClientState>) => void;
|
|
33
|
-
setDefaultHttpClient: typeof setDefaultHttpClient;
|
|
34
|
-
excludedClients: Ref<HiddenClients>;
|
|
35
|
-
setExcludedClients: (v: HiddenClients) => void;
|
|
36
|
-
availableTargets: import("vue").ComputedRef<Target[]>;
|
|
37
|
-
getClientTitle: typeof getClientTitle;
|
|
38
|
-
getTargetTitle: typeof getTargetTitle;
|
|
39
|
-
httpTargetTitle: import("vue").ComputedRef<string>;
|
|
40
|
-
httpClientTitle: import("vue").ComputedRef<string>;
|
|
41
|
-
};
|
|
42
|
-
export {};
|
|
43
|
-
//# sourceMappingURL=useHttpClientStore.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useHttpClientStore.d.ts","sourceRoot":"","sources":["../../src/stores/useHttpClientStore.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AACzD,OAAO,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAA;AAC9D,OAAO,EAAE,KAAK,GAAG,EAAqC,MAAM,KAAK,CAAA;AASjE;;;GAGG;AACH,iBAAS,cAAc,CAAC,MAAM,EAAE,eAAe,UAE9C;AAED;;;GAGG;AACH,iBAAS,cAAc,CAAC,MAAM,EAAE,eAAe,UAM9C;AAYD;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,GAAG,CAAC,aAAa,CAAC,GAAG,MAAM,EAAE,CAoD5F;AASD,+BAA+B;AAC/B,MAAM,MAAM,eAAe,GAAG;IAAE,SAAS,EAAE,QAAQ,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,CAAA;AAMxE,iBAAS,oBAAoB,CAAC,UAAU,CAAC,EAAE,eAAe,QAOzD;AAiCD,iBAAS,UAAU,SAElB;AAeD,kEAAkE;AAClE,eAAO,MAAM,kBAAkB;;4BAhEY,QAAQ;4BAAa,MAAM;;;8BAqDrC,OAAO,CAAC,eAAe,CAAC;;qBAiBP,GAAG,CAAC,aAAa,CAAC;4BACxC,aAAa;;;;;;CAaxC,CAAA"}
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import { safeLocalStorage as T, REFERENCE_LS_KEYS as m } from "@scalar/helpers/object/local-storage";
|
|
2
|
-
import { objectReplace as p } from "@scalar/helpers/object/object-replace";
|
|
3
|
-
import { snippetz as A } from "@scalar/snippetz";
|
|
4
|
-
import { computed as o, readonly as a, ref as C, reactive as k } from "vue";
|
|
5
|
-
const y = {
|
|
6
|
-
targetKey: "shell",
|
|
7
|
-
clientKey: "curl"
|
|
8
|
-
}, { clients: H } = A();
|
|
9
|
-
function d(t) {
|
|
10
|
-
var n;
|
|
11
|
-
return ((n = r.value.find((e) => e.key === t.targetKey)) == null ? void 0 : n.title) ?? t.targetKey;
|
|
12
|
-
}
|
|
13
|
-
function E(t) {
|
|
14
|
-
var n, e;
|
|
15
|
-
return ((e = (n = r.value.find((i) => i.key === t.targetKey)) == null ? void 0 : n.clients.find((i) => i.client === t.clientKey)) == null ? void 0 : e.title) ?? t.clientKey;
|
|
16
|
-
}
|
|
17
|
-
const L = o(() => d(l)), S = o(() => E(l));
|
|
18
|
-
function _(t, n) {
|
|
19
|
-
return n.value === !0 ? [] : t.flatMap((e) => {
|
|
20
|
-
var i;
|
|
21
|
-
return typeof n.value != "object" ? [] : Array.isArray(n.value) ? (e.clients = e.clients.filter(
|
|
22
|
-
// @ts-expect-error Typescript, chill. It's all good. It has to be an array.
|
|
23
|
-
(s) => !n.value.includes(s.client)
|
|
24
|
-
), e.clients.length ? [e] : []) : n.value[e.key] === !0 ? [] : (Array.isArray(n.value[e.key]) && (e.clients = e.clients.filter((s) => !// @ts-expect-error We checked whether it's an Array already.
|
|
25
|
-
n.value[e.key].includes(s.client))), (i = e == null ? void 0 : e.clients) != null && i.length ? [e] : []);
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
const r = o(() => _(H(), c)), c = C({}), f = C();
|
|
29
|
-
function b(t) {
|
|
30
|
-
t !== void 0 && (f.value = t, K(u()));
|
|
31
|
-
}
|
|
32
|
-
const u = () => {
|
|
33
|
-
var t, n, e, i;
|
|
34
|
-
return v(f.value) ? f.value : v(y) ? y : {
|
|
35
|
-
targetKey: (t = r.value[0]) == null ? void 0 : t.key,
|
|
36
|
-
clientKey: (i = (e = (n = r.value[0]) == null ? void 0 : n.clients) == null ? void 0 : e[0]) == null ? void 0 : i.client
|
|
37
|
-
};
|
|
38
|
-
};
|
|
39
|
-
function v(t) {
|
|
40
|
-
return t === void 0 ? !1 : !!r.value.find(
|
|
41
|
-
(n) => n.key === t.targetKey && n.clients.find((e) => e.client === t.clientKey)
|
|
42
|
-
);
|
|
43
|
-
}
|
|
44
|
-
function D() {
|
|
45
|
-
p(l, u());
|
|
46
|
-
}
|
|
47
|
-
const l = k(u()), K = (t) => {
|
|
48
|
-
Object.assign(l, {
|
|
49
|
-
...l,
|
|
50
|
-
...t
|
|
51
|
-
}), T().setItem(m.SELECTED_CLIENT_DEPRECATED, JSON.stringify(l));
|
|
52
|
-
}, I = () => ({
|
|
53
|
-
httpClient: a(l),
|
|
54
|
-
resetState: D,
|
|
55
|
-
setHttpClient: K,
|
|
56
|
-
setDefaultHttpClient: b,
|
|
57
|
-
excludedClients: a(c),
|
|
58
|
-
setExcludedClients: (t) => {
|
|
59
|
-
c.value = t, p(l, u());
|
|
60
|
-
},
|
|
61
|
-
availableTargets: r,
|
|
62
|
-
getClientTitle: E,
|
|
63
|
-
getTargetTitle: d,
|
|
64
|
-
httpTargetTitle: L,
|
|
65
|
-
httpClientTitle: S
|
|
66
|
-
});
|
|
67
|
-
export {
|
|
68
|
-
_ as filterHiddenClients,
|
|
69
|
-
I as useHttpClientStore
|
|
70
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { WorkspaceStore } from '@scalar/workspace-store/client';
|
|
2
|
-
/**
|
|
3
|
-
* Composable for accessing the new workspace store
|
|
4
|
-
*
|
|
5
|
-
* When called with a store it provides that store
|
|
6
|
-
* When called without parameters, it returns the injected store
|
|
7
|
-
*/
|
|
8
|
-
export declare const useStore: (store?: WorkspaceStore) => WorkspaceStore;
|
|
9
|
-
//# sourceMappingURL=useStore.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useStore.d.ts","sourceRoot":"","sources":["../../../src/v2/hooks/useStore.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AAKpE;;;;;GAKG;AACH,eAAO,MAAM,QAAQ,WAAY,cAAc,mBAe9C,CAAA"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { provide as r, inject as n } from "vue";
|
|
2
|
-
const o = Symbol(), a = (e) => {
|
|
3
|
-
if (e)
|
|
4
|
-
return r(o, e), e;
|
|
5
|
-
const t = n(o);
|
|
6
|
-
if (!t)
|
|
7
|
-
throw new Error(
|
|
8
|
-
"useStore() was called without a store and no store instance was found. Make sure to call useStore(store) in a parent component first."
|
|
9
|
-
);
|
|
10
|
-
return t;
|
|
11
|
-
};
|
|
12
|
-
export {
|
|
13
|
-
a as useStore
|
|
14
|
-
};
|
|
File without changes
|
|
File without changes
|