@scalar/api-reference 1.36.2 → 1.38.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 +83 -0
- package/dist/browser/standalone.js +28796 -26431
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/ApiReferenceContent.vue.d.ts +34 -0
- package/dist/components/ApiReferenceContent.vue.d.ts.map +1 -0
- package/dist/components/ApiReferenceContent.vue.js +8 -0
- package/dist/components/ApiReferenceContent.vue2.js +148 -0
- package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
- package/dist/components/ApiReferenceLayout.vue.js +2 -2
- package/dist/components/ApiReferenceLayout.vue2.js +239 -219
- package/dist/components/Content/ClientLibraries/ClientLibraries.vue.d.ts +2 -2
- package/dist/components/Content/ClientLibraries/ClientLibraries.vue.d.ts.map +1 -1
- package/dist/components/Content/ClientLibraries/ClientSelector.vue.d.ts +1 -1
- package/dist/components/Content/ClientLibraries/ClientSelector.vue.d.ts.map +1 -1
- package/dist/components/Content/ClientLibraries/featured-clients.d.ts +1 -1
- package/dist/components/Content/ClientLibraries/featured-clients.d.ts.map +1 -1
- package/dist/components/Content/Content.vue.d.ts +21 -3
- package/dist/components/Content/Content.vue.d.ts.map +1 -1
- package/dist/components/Content/Content.vue.js +132 -95
- package/dist/components/Content/Models/ClassicLayout.vue.d.ts +4 -2
- package/dist/components/Content/Models/ClassicLayout.vue.d.ts.map +1 -1
- package/dist/components/Content/Models/ClassicLayout.vue.js +2 -2
- package/dist/components/Content/Models/ClassicLayout.vue2.js +28 -28
- package/dist/components/Content/Models/Models.vue.d.ts +10 -2
- package/dist/components/Content/Models/Models.vue.d.ts.map +1 -1
- package/dist/components/Content/Models/Models.vue.js +25 -27
- package/dist/components/Content/Models/ModernLayout.vue.d.ts +6 -2
- package/dist/components/Content/Models/ModernLayout.vue.d.ts.map +1 -1
- package/dist/components/Content/Models/ModernLayout.vue.js +1 -1
- package/dist/components/Content/Models/ModernLayout.vue2.js +30 -29
- package/dist/components/Content/Operations/TraversedEntry.vue.d.ts +20 -6
- package/dist/components/Content/Operations/TraversedEntry.vue.d.ts.map +1 -1
- package/dist/components/Content/Operations/TraversedEntry.vue.js +58 -46
- package/dist/components/Content/Operations/get-current-index.d.ts +1 -1
- package/dist/components/Content/Operations/get-current-index.d.ts.map +1 -1
- package/dist/components/Content/Schema/helpers/get-ref-name.d.ts.map +1 -1
- package/dist/components/Content/Schema/helpers/get-ref-name.js +9 -7
- package/dist/components/Content/Schema/helpers/merge-all-of-schemas.js +1 -1
- package/dist/components/Content/Schema/helpers/schema-name.d.ts.map +1 -1
- package/dist/components/Content/Schema/helpers/schema-name.js +15 -14
- package/dist/components/Content/Tags/ClassicLayout.vue.d.ts +1 -1
- package/dist/components/Content/Tags/ClassicLayout.vue.d.ts.map +1 -1
- package/dist/components/Content/Tags/ClassicLayout.vue.js +2 -2
- package/dist/components/Content/Tags/ModernLayout.vue.d.ts +3 -1
- package/dist/components/Content/Tags/ModernLayout.vue.d.ts.map +1 -1
- package/dist/components/Content/Tags/ModernLayout.vue.js +1 -1
- package/dist/components/Content/Tags/ModernLayout.vue2.js +34 -30
- package/dist/components/Content/Tags/Tag.vue.d.ts +3 -1
- package/dist/components/Content/Tags/Tag.vue.d.ts.map +1 -1
- package/dist/components/Content/Tags/Tag.vue.js +14 -12
- package/dist/components/Content/Tags/TagSection.vue.d.ts +2 -1
- package/dist/components/Content/Tags/TagSection.vue.d.ts.map +1 -1
- package/dist/components/Content/Tags/TagSection.vue.js +49 -52
- package/dist/components/GettingStarted.vue.d.ts.map +1 -1
- package/dist/components/GettingStarted.vue.js +2 -2
- package/dist/components/GettingStarted.vue2.js +22 -22
- package/dist/components/OperationsList/OperationsList.vue.d.ts +1 -1
- package/dist/components/OperationsList/OperationsList.vue.d.ts.map +1 -1
- package/dist/components/OperationsList/OperationsList.vue.js +2 -2
- package/dist/components/OperationsList/OperationsListItem.vue.d.ts +1 -1
- package/dist/components/OperationsList/OperationsListItem.vue.d.ts.map +1 -1
- package/dist/components/OperationsList/OperationsListItem.vue.js +2 -2
- package/dist/components/ShowMoreButton.vue.d.ts +1 -0
- package/dist/components/ShowMoreButton.vue.d.ts.map +1 -1
- package/dist/components/ShowMoreButton.vue.js +2 -2
- package/dist/components/ShowMoreButton.vue2.js +12 -12
- package/dist/esm.d.ts +2 -2
- package/dist/esm.d.ts.map +1 -1
- package/dist/features/Operation/Operation.vue.d.ts +21 -9
- package/dist/features/Operation/Operation.vue.d.ts.map +1 -1
- package/dist/features/Operation/Operation.vue.js +42 -53
- package/dist/features/Operation/components/Header.vue.d.ts +2 -2
- package/dist/features/Operation/components/Header.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/Header.vue.js +9 -8
- package/dist/features/Operation/components/Headers.vue.d.ts +2 -2
- package/dist/features/Operation/components/Headers.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/Headers.vue.js +2 -2
- package/dist/features/Operation/components/Headers.vue2.js +31 -29
- package/dist/features/Operation/components/OperationParameters.vue.d.ts +4 -0
- package/dist/features/Operation/components/OperationParameters.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/OperationParameters.vue.js +37 -31
- package/dist/features/Operation/components/OperationResponses.vue.d.ts +5 -1
- package/dist/features/Operation/components/OperationResponses.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/OperationResponses.vue.js +16 -17
- package/dist/features/Operation/components/ParameterList.vue.d.ts +6 -2
- package/dist/features/Operation/components/ParameterList.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/ParameterList.vue.js +17 -19
- package/dist/features/Operation/components/ParameterListItem.vue.d.ts +6 -2
- package/dist/features/Operation/components/ParameterListItem.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/ParameterListItem.vue.js +3 -3
- package/dist/features/Operation/components/ParameterListItem.vue2.js +64 -65
- package/dist/features/Operation/components/RequestBody.vue.d.ts +4 -0
- package/dist/features/Operation/components/RequestBody.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/RequestBody.vue.js +2 -2
- package/dist/features/Operation/components/RequestBody.vue2.js +65 -65
- package/dist/features/Operation/components/callbacks/Callback.vue.d.ts +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 +29 -22
- package/dist/features/Operation/components/callbacks/Callbacks.vue.d.ts +6 -0
- package/dist/features/Operation/components/callbacks/Callbacks.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/callbacks/Callbacks.vue.js +18 -16
- package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts +11 -5
- 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 +99 -90
- package/dist/features/Operation/layouts/ModernLayout.vue.d.ts +12 -5
- package/dist/features/Operation/layouts/ModernLayout.vue.d.ts.map +1 -1
- package/dist/features/Operation/layouts/ModernLayout.vue.js +2 -2
- package/dist/features/Operation/layouts/ModernLayout.vue2.js +99 -87
- package/dist/features/Search/helpers/create-search-index.d.ts +2 -1
- package/dist/features/Search/helpers/create-search-index.d.ts.map +1 -1
- package/dist/features/Search/types.d.ts +1 -1
- package/dist/features/Search/types.d.ts.map +1 -1
- package/dist/features/api-client-modal/ApiClientModal.vue.d.ts.map +1 -1
- package/dist/features/api-client-modal/ApiClientModal.vue.js +23 -26
- package/dist/features/api-client-modal/useApiClient.d.ts +3039 -2895
- package/dist/features/api-client-modal/useApiClient.d.ts.map +1 -1
- package/dist/features/document-source/hooks/useDocumentFetcher.d.ts +2 -2
- package/dist/features/document-source/hooks/useDocumentFetcher.d.ts.map +1 -1
- package/dist/features/document-source/hooks/useDocumentFetcher.js +13 -11
- package/dist/features/document-source/hooks/useDocumentSource.d.ts +2 -2
- package/dist/features/document-source/hooks/useDocumentSource.d.ts.map +1 -1
- package/dist/features/document-source/hooks/useDocumentSource.js +38 -34
- 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 +26 -18
- package/dist/features/example-responses/ExampleResponses.vue.d.ts.map +1 -1
- package/dist/features/example-responses/ExampleResponses.vue.js +2 -2
- package/dist/features/example-responses/ExampleResponses.vue2.js +53 -53
- package/dist/features/multiple-documents/DocumentSelector.vue.d.ts +2 -2
- package/dist/features/multiple-documents/DocumentSelector.vue.d.ts.map +1 -1
- package/dist/features/multiple-documents/useMultipleDocuments.d.ts +10 -7
- package/dist/features/multiple-documents/useMultipleDocuments.d.ts.map +1 -1
- package/dist/features/multiple-documents/useMultipleDocuments.js +47 -44
- package/dist/features/test-request-button/TestRequestButton.vue.d.ts.map +1 -1
- package/dist/features/test-request-button/TestRequestButton.vue.js +2 -2
- package/dist/features/test-request-button/TestRequestButton.vue2.js +15 -21
- package/dist/features/toolbar/ApiReferenceToolbar.vue.js +18 -18
- package/dist/features/toolbar/ApiReferenceToolbarConfig.vue.js +1 -1
- package/dist/features/toolbar/ApiReferenceToolbarConfigTheme.vue.d.ts +2 -2
- package/dist/features/toolbar/ApiReferenceToolbarPopover.vue.js +1 -1
- package/dist/features/toolbar/ApiReferenceToolbarSdks.vue.js +1 -1
- package/dist/features/toolbar/ApiReferenceToolbarShare.vue.js +8 -8
- package/dist/features/toolbar/ApiReferenceToolbarShareRegister.vue.d.ts.map +1 -1
- package/dist/features/toolbar/ApiReferenceToolbarShareRegister.vue.js +34 -28
- package/dist/features/toolbar/ApiReferenceToolbarTitle.vue.js +27 -27
- package/dist/helpers/test-utils.d.ts +3 -365
- package/dist/helpers/test-utils.d.ts.map +1 -1
- package/dist/hooks/useNavState.d.ts +4 -2
- package/dist/hooks/useNavState.d.ts.map +1 -1
- package/dist/hooks/useNavState.js +31 -27
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +21 -19
- package/dist/standalone/lib/html-api.d.ts +3 -3
- package/dist/standalone/lib/html-api.d.ts.map +1 -1
- package/dist/standalone/lib/register-globals.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types.d.ts +2 -2
- package/dist/types.d.ts.map +1 -1
- package/dist/v2/ApiReferenceWorkspace.vue.d.ts.map +1 -1
- package/dist/v2/ApiReferenceWorkspace.vue.js +46 -40
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.js +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue2.js +18 -19
- package/dist/v2/blocks/scalar-client-selector-block/components/ClientDropdown.vue.d.ts +1 -1
- package/dist/v2/blocks/scalar-client-selector-block/components/ClientDropdown.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-client-selector-block/components/ClientDropdown.vue.js +2 -2
- package/dist/v2/blocks/scalar-client-selector-block/components/ClientDropdown.vue2.js +11 -11
- package/dist/v2/blocks/scalar-client-selector-block/components/ClientSelector.vue.d.ts +2 -2
- package/dist/v2/blocks/scalar-client-selector-block/components/ClientSelector.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-client-selector-block/components/ClientSelector.vue.js +2 -2
- package/dist/v2/blocks/scalar-client-selector-block/components/ClientSelector.vue2.js +10 -10
- package/dist/v2/blocks/scalar-client-selector-block/helpers/featured-clients.d.ts +1 -1
- package/dist/v2/blocks/scalar-client-selector-block/helpers/featured-clients.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-info-block/components/DownloadLink.vue.d.ts +3 -0
- package/dist/v2/blocks/scalar-info-block/components/DownloadLink.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-info-block/components/DownloadLink.vue.js +2 -2
- package/dist/v2/blocks/scalar-info-block/components/DownloadLink.vue2.js +32 -31
- package/dist/v2/blocks/scalar-info-block/components/InfoBlock.vue.d.ts +15 -8
- package/dist/v2/blocks/scalar-info-block/components/InfoBlock.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-info-block/components/InfoBlock.vue.js +25 -20
- package/dist/v2/blocks/scalar-info-block/components/IntroductionLayout.vue.d.ts +8 -7
- package/dist/v2/blocks/scalar-info-block/components/IntroductionLayout.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-info-block/components/IntroductionLayout.vue.js +2 -2
- package/dist/v2/blocks/scalar-info-block/components/IntroductionLayout.vue2.js +27 -32
- package/dist/v2/blocks/scalar-server-selector-block/components/Selector.vue.d.ts +2 -22
- package/dist/v2/blocks/scalar-server-selector-block/components/Selector.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-sidebar-block/components/SidebarBlock.vue.d.ts +8 -0
- package/dist/v2/blocks/scalar-sidebar-block/components/SidebarBlock.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-sidebar-block/components/SidebarBlock.vue.js +2 -2
- package/dist/v2/blocks/scalar-sidebar-block/components/SidebarBlock.vue2.js +70 -65
- package/dist/v2/blocks/scalar-sidebar-block/components/SidebarElement.vue.d.ts +9 -1
- package/dist/v2/blocks/scalar-sidebar-block/components/SidebarElement.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-sidebar-block/components/SidebarElement.vue.js +2 -2
- package/dist/v2/blocks/scalar-sidebar-block/components/SidebarElement.vue2.js +60 -57
- package/dist/v2/blocks/scalar-sidebar-block/helpers/create-sidebar.d.ts +3 -365
- package/dist/v2/blocks/scalar-sidebar-block/helpers/create-sidebar.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-sidebar-block/helpers/generate-reverse-index.d.ts +3 -183
- package/dist/v2/blocks/scalar-sidebar-block/helpers/generate-reverse-index.d.ts.map +1 -1
- package/dist/v2/helpers/map-configuration.d.ts +24 -24
- package/dist/v2/helpers/map-configuration.d.ts.map +1 -1
- package/package.json +20 -17
- package/dist/components/Content/Operations/TraversedEntryContainer.vue.d.ts +0 -13
- package/dist/components/Content/Operations/TraversedEntryContainer.vue.d.ts.map +0 -1
- package/dist/components/Content/Operations/TraversedEntryContainer.vue.js +0 -52
- package/dist/components/Content/Operations/TraversedEntryContainer.vue2.js +0 -4
- package/dist/components/Content/Operations/index.d.ts +0 -2
- package/dist/components/Content/Operations/index.d.ts.map +0 -1
- package/dist/hooks/useConfig.d.ts +0 -9
- package/dist/hooks/useConfig.d.ts.map +0 -1
- package/dist/hooks/useConfig.js +0 -10
- package/dist/legacy/stores/index.d.ts +0 -2
- package/dist/legacy/stores/index.d.ts.map +0 -1
- package/dist/legacy/stores/useExampleStore.d.ts +0 -5
- package/dist/legacy/stores/useExampleStore.d.ts.map +0 -1
- package/dist/legacy/stores/useExampleStore.js +0 -8
- package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue.d.ts +0 -14
- package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue.js +0 -4
- package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue2.js +0 -55
- package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue.d.ts +0 -79
- package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue.js +0 -7
- package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue2.js +0 -236
- package/dist/v2/blocks/scalar-request-example-block/helpers/find-client.d.ts +0 -41
- package/dist/v2/blocks/scalar-request-example-block/helpers/find-client.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-request-example-block/helpers/find-client.js +0 -22
- package/dist/v2/blocks/scalar-request-example-block/helpers/generate-client-options.d.ts +0 -20
- package/dist/v2/blocks/scalar-request-example-block/helpers/generate-client-options.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-request-example-block/helpers/generate-client-options.js +0 -33
- package/dist/v2/blocks/scalar-request-example-block/helpers/generate-code-snippet.d.ts +0 -17
- package/dist/v2/blocks/scalar-request-example-block/helpers/generate-code-snippet.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-request-example-block/helpers/generate-code-snippet.js +0 -26
- package/dist/v2/blocks/scalar-request-example-block/helpers/get-secrets.d.ts +0 -4
- package/dist/v2/blocks/scalar-request-example-block/helpers/get-secrets.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-request-example-block/helpers/get-secrets.js +0 -10
- package/dist/v2/blocks/scalar-request-example-block/index.d.ts +0 -3
- package/dist/v2/blocks/scalar-request-example-block/index.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-request-example-block/types.d.ts +0 -29
- package/dist/v2/blocks/scalar-request-example-block/types.d.ts.map +0 -1
|
@@ -1,41 +1,39 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { provideUseId as
|
|
3
|
-
import { OpenApiClientButton as
|
|
4
|
-
import { LAYOUT_SYMBOL as
|
|
5
|
-
import { WORKSPACE_SYMBOL as
|
|
6
|
-
import { addScalarClassesToHeadless as
|
|
7
|
-
import { sleep as
|
|
8
|
-
import { hasObtrusiveScrollbars as
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import { useSidebar as
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
import
|
|
25
|
-
import A from "../features/Search/components/SearchButton.vue.js";
|
|
26
|
-
import Ue from "./Content/Content.vue.js";
|
|
1
|
+
import { defineComponent as Q, computed as g, provide as k, useId as W, ref as M, onBeforeMount as j, onMounted as J, onUnmounted as X, watch as $, createElementBlock as m, openBlock as n, Fragment as Z, createElementVNode as v, createVNode as c, normalizeStyle as _, normalizeClass as x, unref as a, createCommentVNode as i, withDirectives as ee, createBlock as S, renderSlot as d, normalizeProps as f, guardReactiveProps as h, withCtx as s, vShow as te, createSlots as oe } from "vue";
|
|
2
|
+
import { provideUseId as ae } from "@headlessui/vue";
|
|
3
|
+
import { OpenApiClientButton as re } from "@scalar/api-client/components";
|
|
4
|
+
import { LAYOUT_SYMBOL as ne } from "@scalar/api-client/hooks";
|
|
5
|
+
import { WORKSPACE_SYMBOL as le, ACTIVE_ENTITIES_SYMBOL as ie } from "@scalar/api-client/store";
|
|
6
|
+
import { addScalarClassesToHeadless as se, ScalarErrorBoundary as de, ScalarSidebarFooter as ue, ScalarColorModeToggleButton as ce, ScalarColorModeToggleIcon as me } from "@scalar/components";
|
|
7
|
+
import { sleep as ve } from "@scalar/helpers/testing/sleep";
|
|
8
|
+
import { hasObtrusiveScrollbars as fe, getThemeStyles as he } from "@scalar/themes";
|
|
9
|
+
import { useBreakpoints as pe } from "@scalar/use-hooks/useBreakpoints";
|
|
10
|
+
import { ScalarToasts as ge } from "@scalar/use-toasts";
|
|
11
|
+
import { useDebounceFn as Se, useResizeObserver as be } from "@vueuse/core";
|
|
12
|
+
import ye from "./ClassicHeader.vue.js";
|
|
13
|
+
import we from "./GettingStarted.vue.js";
|
|
14
|
+
import { hasLazyLoaded as ke } from "./Lazy/lazyBus.js";
|
|
15
|
+
import Te from "./MobileHeader.vue.js";
|
|
16
|
+
import { useNavState as Me } from "../hooks/useNavState.js";
|
|
17
|
+
import { useLegacyStoreEvents as $e } from "../v2/hooks/use-legacy-store-events.js";
|
|
18
|
+
import { useDocumentSource as De } from "../features/document-source/hooks/useDocumentSource.js";
|
|
19
|
+
import { PLUGIN_MANAGER_SYMBOL as Ce } from "../plugins/hooks/usePluginManager.js";
|
|
20
|
+
import { createPluginManager as Be } from "../plugins/plugin-manager.js";
|
|
21
|
+
import { useSidebar as Re } from "../v2/blocks/scalar-sidebar-block/hooks/useSidebar.js";
|
|
22
|
+
import Ae from "../v2/blocks/scalar-sidebar-block/components/SidebarBlock.vue.js";
|
|
23
|
+
import O from "../features/Search/components/SearchButton.vue.js";
|
|
24
|
+
import Le from "./Content/Content.vue.js";
|
|
27
25
|
/* empty css */
|
|
28
|
-
import
|
|
29
|
-
const
|
|
26
|
+
import Ee from "../features/api-client-modal/ApiClientModal.vue.js";
|
|
27
|
+
const Ie = ["innerHTML"], Oe = { class: "references-header" }, Pe = ["aria-label"], Fe = { class: "references-navigation-list" }, He = { key: 0 }, Ke = {
|
|
30
28
|
key: 1,
|
|
31
29
|
class: "scalar-api-references-standalone-search"
|
|
32
|
-
},
|
|
30
|
+
}, Ne = { key: 1 }, Ue = { class: "references-editor" }, Ve = { class: "references-editor-textarea" }, qe = ["aria-label"], Ye = {
|
|
33
31
|
key: 0,
|
|
34
32
|
class: "w-64 *:!p-0 empty:hidden"
|
|
35
|
-
},
|
|
36
|
-
key:
|
|
33
|
+
}, ze = {
|
|
34
|
+
key: 1,
|
|
37
35
|
class: "references-footer"
|
|
38
|
-
},
|
|
36
|
+
}, gt = /* @__PURE__ */ Q({
|
|
39
37
|
inheritAttrs: !1,
|
|
40
38
|
__name: "ApiReferenceLayout",
|
|
41
39
|
props: {
|
|
@@ -47,161 +45,167 @@ const Ve = ["innerHTML"], Ye = { class: "references-header" }, ze = ["aria-label
|
|
|
47
45
|
store: {}
|
|
48
46
|
},
|
|
49
47
|
emits: ["changeTheme", "updateContent", "loadSwaggerFile", "linkSwaggerFile", "toggleDarkMode"],
|
|
50
|
-
setup(
|
|
51
|
-
const
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
48
|
+
setup(r) {
|
|
49
|
+
const e = g(() => ({
|
|
50
|
+
...r.configuration,
|
|
51
|
+
hideClientButton: r.configuration.hideClientButton ?? !1,
|
|
52
|
+
showSidebar: r.configuration.showSidebar ?? !0,
|
|
53
|
+
theme: r.configuration.theme ?? "none",
|
|
54
|
+
layout: r.configuration.layout ?? "modern",
|
|
55
|
+
persistAuth: r.configuration.persistAuth ?? !1,
|
|
56
|
+
documentDownloadType: r.configuration.documentDownloadType ?? "both",
|
|
57
|
+
onBeforeRequest: r.configuration.onBeforeRequest
|
|
58
|
+
})), { dereferencedDocument: b, workspaceStore: D, activeEntitiesStore: C } = De({
|
|
59
|
+
configuration: e,
|
|
60
|
+
dereferencedDocument: r.dereferencedDocument,
|
|
61
|
+
originalDocument: r.originalDocument
|
|
64
62
|
});
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
63
|
+
k(le, D), k(ie, C), ae(() => W()), k(ne, "modal"), k(
|
|
64
|
+
Ce,
|
|
65
|
+
Be({
|
|
66
|
+
plugins: e.value.plugins
|
|
67
|
+
})
|
|
68
|
+
);
|
|
69
|
+
const { isSidebarOpen: T, setCollapsedSidebarItem: B, scrollToOperation: P, items: y } = Re(r.store), F = g(() => y.value.entries[0]?.id ?? ""), {
|
|
70
|
+
getReferenceId: H,
|
|
71
|
+
getPathRoutingId: K,
|
|
68
72
|
hash: w,
|
|
69
|
-
isIntersectionEnabled:
|
|
70
|
-
updateHash:
|
|
71
|
-
replaceUrlState:
|
|
72
|
-
} =
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
73
|
+
isIntersectionEnabled: R,
|
|
74
|
+
updateHash: A,
|
|
75
|
+
replaceUrlState: N
|
|
76
|
+
} = Me(), U = g(
|
|
77
|
+
() => y.value.entities?.get(w.value)?.title ?? ""
|
|
78
|
+
), u = g(() => ({
|
|
79
|
+
breadcrumb: U.value
|
|
80
|
+
})), V = g(fe), L = M(0);
|
|
81
|
+
if (e.value.redirect && typeof window < "u") {
|
|
82
|
+
const t = e.value.redirect(
|
|
83
|
+
(e.value.pathRouting ? window.location.pathname : "") + window.location.hash
|
|
76
84
|
);
|
|
77
|
-
|
|
85
|
+
t && history.replaceState({}, "", t);
|
|
78
86
|
}
|
|
79
|
-
|
|
80
|
-
|
|
87
|
+
j(() => {
|
|
88
|
+
A(), se();
|
|
81
89
|
});
|
|
82
|
-
const
|
|
83
|
-
|
|
84
|
-
}
|
|
85
|
-
|
|
90
|
+
const E = async (t) => {
|
|
91
|
+
R.value = !1, A(), t ? P(t) : p.value?.scrollTo(0, 0), await ve(100), R.value = !0;
|
|
92
|
+
};
|
|
93
|
+
J(() => {
|
|
86
94
|
history.scrollRestoration = "manual";
|
|
87
|
-
const
|
|
88
|
-
if (
|
|
89
|
-
const
|
|
90
|
-
|
|
95
|
+
const t = p.value?.parentElement?.getBoundingClientRect(), o = p.value?.getBoundingClientRect();
|
|
96
|
+
if (t && o) {
|
|
97
|
+
const l = o.top - t.top;
|
|
98
|
+
L.value = l < 2 ? 0 : l;
|
|
91
99
|
}
|
|
92
100
|
window.onhashchange = () => {
|
|
93
|
-
|
|
94
|
-
}, window.onpopstate = () =>
|
|
101
|
+
E(H());
|
|
102
|
+
}, window.onpopstate = () => e.value.pathRouting && E(K(window.location.pathname)), window.addEventListener("scroll", I, { passive: !0 });
|
|
95
103
|
});
|
|
96
|
-
const
|
|
97
|
-
|
|
98
|
-
)
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
() =>
|
|
104
|
+
const I = Se(() => {
|
|
105
|
+
window.scrollY < 50 && ke.value && N("");
|
|
106
|
+
});
|
|
107
|
+
X(() => {
|
|
108
|
+
window.removeEventListener("scroll", I);
|
|
109
|
+
}), $(
|
|
110
|
+
() => r.store.workspace.activeDocument,
|
|
103
111
|
() => {
|
|
104
112
|
if (w.value) {
|
|
105
|
-
const
|
|
106
|
-
o &&
|
|
113
|
+
const t = y.value.entities.get(w.value), o = t?.parent?.id ?? t?.id;
|
|
114
|
+
o && B(o, !0);
|
|
107
115
|
} else {
|
|
108
|
-
const
|
|
109
|
-
|
|
116
|
+
const t = y.value.entries.find((o) => o.type === "tag");
|
|
117
|
+
t && B(t.id, !0);
|
|
110
118
|
}
|
|
111
|
-
W.value = !0;
|
|
112
119
|
}
|
|
113
120
|
);
|
|
114
|
-
const
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
te(() => {
|
|
120
|
-
window.removeEventListener("scroll", R);
|
|
121
|
-
}), le(() => oe()), b(ue, "modal"), b(Ie, t), b(
|
|
122
|
-
Pe,
|
|
123
|
-
Ne({
|
|
124
|
-
plugins: t.value.plugins
|
|
125
|
-
})
|
|
126
|
-
);
|
|
127
|
-
const q = g(
|
|
121
|
+
const q = M("100dvh"), p = M(null);
|
|
122
|
+
be(p, (t) => {
|
|
123
|
+
q.value = t[0] ? t[0].contentRect.height + "px" : "100dvh";
|
|
124
|
+
});
|
|
125
|
+
const Y = g(
|
|
128
126
|
() => `<style>
|
|
129
|
-
${
|
|
130
|
-
fonts:
|
|
127
|
+
${he(e.value.theme, {
|
|
128
|
+
fonts: e.value.withDefaultFonts
|
|
131
129
|
})}</style>`
|
|
132
|
-
), { mediaQueries:
|
|
133
|
-
return
|
|
134
|
-
o && !
|
|
135
|
-
}),
|
|
136
|
-
|
|
137
|
-
}),
|
|
138
|
-
|
|
139
|
-
|
|
130
|
+
), { mediaQueries: z } = pe(), G = !1;
|
|
131
|
+
return $(z.lg, (t, o) => {
|
|
132
|
+
o && !t && (T.value = !1);
|
|
133
|
+
}), $(w, (t, o) => {
|
|
134
|
+
t && t !== o && (T.value = !1);
|
|
135
|
+
}), $e(r.store, D, C, p), (t, o) => (n(), m(Z, null, [
|
|
136
|
+
v("div", { innerHTML: Y.value }, null, 8, Ie),
|
|
137
|
+
v("div", {
|
|
140
138
|
ref_key: "documentEl",
|
|
141
|
-
ref:
|
|
142
|
-
class:
|
|
139
|
+
ref: p,
|
|
140
|
+
class: x(["scalar-app scalar-api-reference references-layout", [
|
|
143
141
|
{
|
|
144
|
-
"scalar-api-references-standalone-mobile":
|
|
145
|
-
"scalar-scrollbars-obtrusive":
|
|
146
|
-
"references-editable":
|
|
147
|
-
"references-sidebar":
|
|
148
|
-
"references-sidebar-mobile-open":
|
|
149
|
-
"references-classic":
|
|
142
|
+
"scalar-api-references-standalone-mobile": e.value.showSidebar ?? !0,
|
|
143
|
+
"scalar-scrollbars-obtrusive": V.value,
|
|
144
|
+
"references-editable": e.value.isEditable,
|
|
145
|
+
"references-sidebar": e.value.showSidebar,
|
|
146
|
+
"references-sidebar-mobile-open": a(T),
|
|
147
|
+
"references-classic": e.value.layout === "classic"
|
|
150
148
|
},
|
|
151
|
-
|
|
149
|
+
t.$attrs.class
|
|
152
150
|
]]),
|
|
153
|
-
style:
|
|
154
|
-
"--scalar-y-offset": `var(--scalar-custom-header-height, ${
|
|
151
|
+
style: _({
|
|
152
|
+
"--scalar-y-offset": `var(--scalar-custom-header-height, ${L.value}px)`
|
|
155
153
|
})
|
|
156
154
|
}, [
|
|
157
|
-
|
|
158
|
-
|
|
155
|
+
v("div", Oe, [
|
|
156
|
+
e.value.layout === "modern" && (e.value.showSidebar ?? !0) ? (n(), S(Te, {
|
|
159
157
|
key: 0,
|
|
160
|
-
breadcrumb:
|
|
161
|
-
}, null, 8, ["breadcrumb"])) :
|
|
162
|
-
|
|
158
|
+
breadcrumb: u.value.breadcrumb
|
|
159
|
+
}, null, 8, ["breadcrumb"])) : i("", !0),
|
|
160
|
+
d(t.$slots, "header", f(h(u.value)), void 0, !0)
|
|
163
161
|
]),
|
|
164
|
-
|
|
162
|
+
e.value.showSidebar ? (n(), m("aside", {
|
|
165
163
|
key: 0,
|
|
166
|
-
"aria-label": `Sidebar for ${
|
|
164
|
+
"aria-label": `Sidebar for ${a(b)?.info?.title}`,
|
|
167
165
|
class: "references-navigation t-doc__sidebar"
|
|
168
166
|
}, [
|
|
169
|
-
|
|
170
|
-
c(
|
|
171
|
-
default:
|
|
172
|
-
c(
|
|
173
|
-
|
|
167
|
+
v("div", Fe, [
|
|
168
|
+
c(a(de), null, {
|
|
169
|
+
default: s(() => [
|
|
170
|
+
c(a(Ae), {
|
|
171
|
+
options: {
|
|
172
|
+
pathRouting: e.value.pathRouting,
|
|
173
|
+
onSidebarClick: e.value.onSidebarClick,
|
|
174
|
+
operationTitleSource: e.value.operationTitleSource,
|
|
175
|
+
defaultOpenAllTags: e.value.defaultOpenAllTags
|
|
176
|
+
},
|
|
177
|
+
title: a(b)?.info?.title ?? "The OpenAPI Schema"
|
|
174
178
|
}, {
|
|
175
|
-
"sidebar-start":
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
])) :
|
|
179
|
-
|
|
180
|
-
c(
|
|
181
|
-
document:
|
|
182
|
-
hideModels:
|
|
183
|
-
searchHotKey:
|
|
179
|
+
"sidebar-start": s(() => [
|
|
180
|
+
t.$slots["document-selector"] ? (n(), m("div", He, [
|
|
181
|
+
d(t.$slots, "document-selector", {}, void 0, !0)
|
|
182
|
+
])) : i("", !0),
|
|
183
|
+
e.value.hideSearch ? i("", !0) : (n(), m("div", Ke, [
|
|
184
|
+
c(a(O), {
|
|
185
|
+
document: t.store.workspace.activeDocument,
|
|
186
|
+
hideModels: e.value?.hideModels,
|
|
187
|
+
searchHotKey: e.value?.searchHotKey
|
|
184
188
|
}, null, 8, ["document", "hideModels", "searchHotKey"])
|
|
185
189
|
])),
|
|
186
|
-
|
|
190
|
+
d(t.$slots, "sidebar-start", f(h(u.value)), void 0, !0)
|
|
187
191
|
]),
|
|
188
|
-
"sidebar-end":
|
|
189
|
-
|
|
190
|
-
c(
|
|
191
|
-
toggle:
|
|
192
|
-
|
|
192
|
+
"sidebar-end": s(() => [
|
|
193
|
+
d(t.$slots, "sidebar-end", f(h(u.value)), () => [
|
|
194
|
+
c(a(ue), { class: "darklight-reference" }, {
|
|
195
|
+
toggle: s(() => [
|
|
196
|
+
e.value.hideDarkModeToggle ? (n(), m("span", Ne)) : (n(), S(a(ce), {
|
|
193
197
|
key: 0,
|
|
194
|
-
modelValue:
|
|
195
|
-
"onUpdate:modelValue": o[0] || (o[0] = (
|
|
198
|
+
modelValue: t.isDark,
|
|
199
|
+
"onUpdate:modelValue": o[0] || (o[0] = (l) => t.$emit("toggleDarkMode"))
|
|
196
200
|
}, null, 8, ["modelValue"]))
|
|
197
201
|
]),
|
|
198
|
-
default:
|
|
199
|
-
|
|
202
|
+
default: s(() => [
|
|
203
|
+
e.value.hideClientButton ? i("", !0) : (n(), S(a(re), {
|
|
200
204
|
key: 0,
|
|
201
205
|
buttonSource: "sidebar",
|
|
202
|
-
integration:
|
|
203
|
-
isDevelopment:
|
|
204
|
-
url:
|
|
206
|
+
integration: e.value._integration,
|
|
207
|
+
isDevelopment: G,
|
|
208
|
+
url: e.value.url
|
|
205
209
|
}, null, 8, ["integration", "url"]))
|
|
206
210
|
]),
|
|
207
211
|
_: 1
|
|
@@ -209,88 +213,104 @@ const Ve = ["innerHTML"], Ye = { class: "references-header" }, ze = ["aria-label
|
|
|
209
213
|
], !0)
|
|
210
214
|
]),
|
|
211
215
|
_: 3
|
|
212
|
-
}, 8, ["title"])
|
|
216
|
+
}, 8, ["options", "title"])
|
|
213
217
|
]),
|
|
214
218
|
_: 3
|
|
215
219
|
})
|
|
216
220
|
])
|
|
217
|
-
], 8,
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
+
], 8, Pe)) : i("", !0),
|
|
222
|
+
ee(v("div", Ue, [
|
|
223
|
+
v("div", Ve, [
|
|
224
|
+
d(t.$slots, "editor", f(h(u.value)), void 0, !0)
|
|
221
225
|
])
|
|
222
226
|
], 512), [
|
|
223
|
-
[
|
|
227
|
+
[te, e.value.isEditable]
|
|
224
228
|
]),
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
+
v("main", {
|
|
230
|
+
"aria-label": `Open API Documentation for ${a(b)?.info?.title}`,
|
|
231
|
+
class: "references-rendered"
|
|
232
|
+
}, [
|
|
233
|
+
c(a(Le), {
|
|
234
|
+
contentId: F.value,
|
|
235
|
+
options: {
|
|
236
|
+
isLoading: e.value.isLoading,
|
|
237
|
+
slug: e.value.slug,
|
|
238
|
+
hiddenClients: e.value.hiddenClients,
|
|
239
|
+
layout: e.value.layout,
|
|
240
|
+
onLoaded: e.value.onLoaded,
|
|
241
|
+
persistAuth: e.value.persistAuth,
|
|
242
|
+
showOperationId: e.value.showOperationId,
|
|
243
|
+
hideTestRequestButton: e.value.hideTestRequestButton,
|
|
244
|
+
expandAllResponses: e.value.expandAllResponses,
|
|
245
|
+
hideModels: e.value.hideModels,
|
|
246
|
+
expandAllModelSections: e.value.expandAllModelSections,
|
|
247
|
+
orderRequiredPropertiesFirst: e.value.orderRequiredPropertiesFirst,
|
|
248
|
+
orderSchemaPropertiesBy: e.value.orderSchemaPropertiesBy,
|
|
249
|
+
documentDownloadType: e.value.documentDownloadType,
|
|
250
|
+
url: e.value.url,
|
|
251
|
+
onShowMore: e.value.onShowMore
|
|
252
|
+
},
|
|
253
|
+
store: t.store
|
|
254
|
+
}, oe({
|
|
255
|
+
start: s(() => [
|
|
256
|
+
d(t.$slots, "content-start", f(h(u.value)), void 0, !0),
|
|
257
|
+
e.value.layout === "classic" ? (n(), S(ye, { key: 0 }, {
|
|
258
|
+
"dark-mode-toggle": s(() => [
|
|
259
|
+
e.value.hideDarkModeToggle ? i("", !0) : (n(), S(a(me), {
|
|
260
|
+
key: 0,
|
|
261
|
+
class: "text-c-2 hover:text-c-1",
|
|
262
|
+
mode: t.isDark ? "dark" : "light",
|
|
263
|
+
style: { transform: "scale(1.4)" },
|
|
264
|
+
variant: "icon",
|
|
265
|
+
onClick: o[1] || (o[1] = (l) => t.$emit("toggleDarkMode"))
|
|
266
|
+
}, null, 8, ["mode"]))
|
|
267
|
+
]),
|
|
268
|
+
default: s(() => [
|
|
269
|
+
t.$slots["document-selector"] ? (n(), m("div", Ye, [
|
|
270
|
+
d(t.$slots, "document-selector", {}, void 0, !0)
|
|
271
|
+
])) : i("", !0),
|
|
272
|
+
e.value.hideSearch ? i("", !0) : (n(), S(a(O), {
|
|
273
|
+
key: 1,
|
|
274
|
+
class: "t-doc__sidebar max-w-64",
|
|
275
|
+
hideModels: e.value?.hideModels,
|
|
276
|
+
searchHotKey: e.value.searchHotKey
|
|
277
|
+
}, null, 8, ["hideModels", "searchHotKey"]))
|
|
278
|
+
]),
|
|
279
|
+
_: 3
|
|
280
|
+
})) : i("", !0)
|
|
281
|
+
]),
|
|
282
|
+
end: s(() => [
|
|
283
|
+
d(t.$slots, "content-end", f(h(u.value)), void 0, !0)
|
|
284
|
+
]),
|
|
285
|
+
_: 2
|
|
229
286
|
}, [
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
class: "text-c-2 hover:text-c-1",
|
|
241
|
-
mode: e.isDark ? "dark" : "light",
|
|
242
|
-
style: { transform: "scale(1.4)" },
|
|
243
|
-
variant: "icon",
|
|
244
|
-
onClick: o[1] || (o[1] = (n) => e.$emit("toggleDarkMode"))
|
|
245
|
-
}, null, 8, ["mode"]))
|
|
246
|
-
]),
|
|
247
|
-
default: i(() => [
|
|
248
|
-
e.$slots["document-selector"] ? (a(), u("div", Ze, [
|
|
249
|
-
l(e.$slots, "document-selector", {}, void 0, !0)
|
|
250
|
-
])) : s("", !0),
|
|
251
|
-
t.value.hideSearch ? s("", !0) : (a(), S(r(A), {
|
|
252
|
-
key: 1,
|
|
253
|
-
class: "t-doc__sidebar max-w-64",
|
|
254
|
-
hideModels: t.value?.hideModels,
|
|
255
|
-
searchHotKey: t.value.searchHotKey
|
|
256
|
-
}, null, 8, ["hideModels", "searchHotKey"]))
|
|
257
|
-
]),
|
|
258
|
-
_: 3
|
|
259
|
-
})) : s("", !0)
|
|
287
|
+
e.value?.isEditable ? {
|
|
288
|
+
name: "empty-state",
|
|
289
|
+
fn: s(() => [
|
|
290
|
+
c(we, {
|
|
291
|
+
theme: e.value?.theme || "default",
|
|
292
|
+
onChangeTheme: o[2] || (o[2] = (l) => t.$emit("changeTheme", l)),
|
|
293
|
+
onLinkSwaggerFile: o[3] || (o[3] = (l) => t.$emit("linkSwaggerFile")),
|
|
294
|
+
onLoadSwaggerFile: o[4] || (o[4] = (l) => t.$emit("loadSwaggerFile")),
|
|
295
|
+
onUpdateContent: o[5] || (o[5] = (l) => t.$emit("updateContent", l))
|
|
296
|
+
}, null, 8, ["theme"])
|
|
260
297
|
]),
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
onChangeTheme: o[2] || (o[2] = (n) => e.$emit("changeTheme", n)),
|
|
272
|
-
onLinkSwaggerFile: o[3] || (o[3] = (n) => e.$emit("linkSwaggerFile")),
|
|
273
|
-
onLoadSwaggerFile: o[4] || (o[4] = (n) => e.$emit("loadSwaggerFile")),
|
|
274
|
-
onUpdateContent: o[5] || (o[5] = (n) => e.$emit("updateContent", n))
|
|
275
|
-
}, null, 8, ["theme"])
|
|
276
|
-
]),
|
|
277
|
-
key: "0"
|
|
278
|
-
} : void 0
|
|
279
|
-
]), 1032, ["config", "store"])
|
|
280
|
-
], 8, Xe),
|
|
281
|
-
e.$slots.footer ? (a(), u("div", xe, [
|
|
282
|
-
l(e.$slots, "footer", v(f(d.value)), void 0, !0)
|
|
283
|
-
])) : s("", !0)
|
|
284
|
-
], 64)) : s("", !0),
|
|
285
|
-
c(r(Ke), {
|
|
286
|
-
configuration: t.value,
|
|
287
|
-
dereferencedDocument: r(y)
|
|
298
|
+
key: "0"
|
|
299
|
+
} : void 0
|
|
300
|
+
]), 1032, ["contentId", "options", "store"])
|
|
301
|
+
], 8, qe),
|
|
302
|
+
t.$slots.footer ? (n(), m("div", ze, [
|
|
303
|
+
d(t.$slots, "footer", f(h(u.value)), void 0, !0)
|
|
304
|
+
])) : i("", !0),
|
|
305
|
+
c(a(Ee), {
|
|
306
|
+
configuration: e.value,
|
|
307
|
+
dereferencedDocument: a(b)
|
|
288
308
|
}, null, 8, ["configuration", "dereferencedDocument"])
|
|
289
309
|
], 6),
|
|
290
|
-
c(
|
|
310
|
+
c(a(ge))
|
|
291
311
|
], 64));
|
|
292
312
|
}
|
|
293
313
|
});
|
|
294
314
|
export {
|
|
295
|
-
|
|
315
|
+
gt as default
|
|
296
316
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { type ClientOptionGroup } from '@scalar/api-client/v2/blocks/operation-code-sample';
|
|
1
2
|
import type { AvailableClients } from '@scalar/snippetz';
|
|
2
3
|
import type { WorkspaceDocument } from '@scalar/workspace-store/schemas/workspace';
|
|
3
|
-
import type { ClientOptionGroup } from '../../../v2/blocks/scalar-request-example-block/types';
|
|
4
4
|
type __VLS_Props = {
|
|
5
5
|
/** Current document from the store */
|
|
6
6
|
document: WorkspaceDocument;
|
|
@@ -10,7 +10,7 @@ type __VLS_Props = {
|
|
|
10
10
|
selectedClient?: AvailableClients[number];
|
|
11
11
|
};
|
|
12
12
|
declare const _default: import("vue").DefineComponent<__VLS_Props, {
|
|
13
|
-
selectedClientOption: import("vue").ComputedRef<import("
|
|
13
|
+
selectedClientOption: import("vue").ComputedRef<import("@scalar/api-client/v2/blocks/operation-code-sample").ClientOption>;
|
|
14
14
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
15
15
|
export default _default;
|
|
16
16
|
//# sourceMappingURL=ClientLibraries.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ClientLibraries.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/ClientLibraries/ClientLibraries.vue"],"names":[],"mappings":"AA0MA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"ClientLibraries.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/ClientLibraries/ClientLibraries.vue"],"names":[],"mappings":"AA0MA,OAAO,EAEL,KAAK,iBAAiB,EACvB,MAAM,oDAAoD,CAAA;AAE3D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAA;AAExD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAA;AAMlF,KAAK,WAAW,GAAG;IACjB,sCAAsC;IACtC,QAAQ,EAAE,iBAAiB,CAAA;IAC3B,yDAAyD;IACzD,aAAa,EAAE,iBAAiB,EAAE,CAAA;IAClC,yCAAyC;IACzC,cAAc,CAAC,EAAE,gBAAgB,CAAC,MAAM,CAAC,CAAA;CAC1C,CAAC;;;;AA0RF,wBAOG"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { type ClientOption, type ClientOptionGroup } from '@scalar/api-client/v2/blocks/operation-code-sample';
|
|
1
2
|
import type { AvailableClients } from '@scalar/types/snippetz';
|
|
2
|
-
import type { ClientOption, ClientOptionGroup } from '../../../v2/blocks/scalar-request-example-block/types';
|
|
3
3
|
type __VLS_Props = {
|
|
4
4
|
/** Client options */
|
|
5
5
|
clientOptions: ClientOptionGroup[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ClientSelector.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/ClientLibraries/ClientSelector.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ClientSelector.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/ClientLibraries/ClientSelector.vue"],"names":[],"mappings":"AAuPA,OAAO,EAEL,KAAK,YAAY,EACjB,KAAK,iBAAiB,EACvB,MAAM,oDAAoD,CAAA;AAG3D,OAAO,KAAK,EAAE,gBAAgB,EAAY,MAAM,wBAAwB,CAAA;AAMxE,KAAK,WAAW,GAAG;IACjB,qBAAqB;IACrB,aAAa,EAAE,iBAAiB,EAAE,CAAA;IAClC,yCAAyC;IACzC,cAAc,CAAC,EAAE,gBAAgB,CAAC,MAAM,CAAC,CAAA;IACzC,+BAA+B;IAC/B,eAAe,EAAE,YAAY,EAAE,CAAA;IAC/B,yEAAyE;IACzE,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAC;;AA+OF,wBAMG"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ClientOption, ClientOptionGroup } from '
|
|
1
|
+
import type { ClientOption, ClientOptionGroup } from '@scalar/api-client/v2/blocks/operation-code-sample';
|
|
2
2
|
import type { AvailableClients } from '@scalar/snippetz';
|
|
3
3
|
/** Whether or not a client is in the featured list */
|
|
4
4
|
export declare const isFeaturedClient: (clientId: AvailableClients[number] | undefined, featuredClients?: AvailableClients[number][]) => boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"featured-clients.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/ClientLibraries/featured-clients.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"featured-clients.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/ClientLibraries/featured-clients.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,oDAAoD,CAAA;AACzG,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAA;AAWxD,sDAAsD;AACtD,eAAO,MAAM,gBAAgB,GAC3B,UAAU,gBAAgB,CAAC,MAAM,CAAC,GAAG,SAAS,EAC9C,kBAAiB,gBAAgB,CAAC,MAAM,CAAC,EAAqB,YACgC,CAAA;AAEhG;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,GAC7B,eAAe,iBAAiB,EAAE,EAClC,kBAAiB,gBAAgB,CAAC,MAAM,CAAC,EAAqB,KAC7D,YAAY,EAgBd,CAAA"}
|
|
@@ -1,16 +1,34 @@
|
|
|
1
1
|
import type { ApiReferenceConfiguration } from '@scalar/types';
|
|
2
2
|
import type { WorkspaceStore } from '@scalar/workspace-store/client';
|
|
3
3
|
type __VLS_Props = {
|
|
4
|
-
|
|
4
|
+
contentId: string;
|
|
5
5
|
store: WorkspaceStore;
|
|
6
|
+
options: {
|
|
7
|
+
isLoading: boolean | undefined;
|
|
8
|
+
slug: string | undefined;
|
|
9
|
+
hiddenClients: ApiReferenceConfiguration['hiddenClients'];
|
|
10
|
+
layout: 'modern' | 'classic';
|
|
11
|
+
onLoaded: (() => void) | undefined;
|
|
12
|
+
persistAuth: boolean;
|
|
13
|
+
showOperationId?: boolean | undefined;
|
|
14
|
+
hideTestRequestButton: boolean | undefined;
|
|
15
|
+
expandAllResponses?: boolean;
|
|
16
|
+
hideModels: boolean | undefined;
|
|
17
|
+
expandAllModelSections: boolean | undefined;
|
|
18
|
+
orderRequiredPropertiesFirst: boolean | undefined;
|
|
19
|
+
orderSchemaPropertiesBy: 'alpha' | 'preserve' | undefined;
|
|
20
|
+
documentDownloadType: ApiReferenceConfiguration['documentDownloadType'];
|
|
21
|
+
url: string | undefined;
|
|
22
|
+
onShowMore: ((id: string) => void) | undefined;
|
|
23
|
+
};
|
|
6
24
|
};
|
|
7
|
-
declare var __VLS_5: {}, __VLS_50: {},
|
|
25
|
+
declare var __VLS_5: {}, __VLS_50: {}, __VLS_59: {};
|
|
8
26
|
type __VLS_Slots = {} & {
|
|
9
27
|
start?: (props: typeof __VLS_5) => any;
|
|
10
28
|
} & {
|
|
11
29
|
'empty-state'?: (props: typeof __VLS_50) => any;
|
|
12
30
|
} & {
|
|
13
|
-
end?: (props: typeof
|
|
31
|
+
end?: (props: typeof __VLS_59) => any;
|
|
14
32
|
};
|
|
15
33
|
declare const __VLS_component: 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>;
|
|
16
34
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|