@scalar/api-reference 1.36.2 → 1.37.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 +49 -0
- package/dist/browser/standalone.js +26143 -25935
- 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/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/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 +3032 -2888
- package/dist/features/api-client-modal/useApiClient.d.ts.map +1 -1
- 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 +1 -1
- package/dist/features/document-source/hooks/useDocumentSource.d.ts.map +1 -1
- 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/useMultipleDocuments.d.ts +8 -5
- package/dist/features/multiple-documents/useMultipleDocuments.d.ts.map +1 -1
- package/dist/features/multiple-documents/useMultipleDocuments.js +46 -43
- 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/style.css +1 -1
- 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-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 +22 -22
- package/dist/v2/helpers/map-configuration.d.ts.map +1 -1
- package/package.json +19 -16
- 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,38 +1,35 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import u from "./
|
|
3
|
-
import
|
|
4
|
-
|
|
1
|
+
import { defineComponent as s, computed as r, createBlock as a, openBlock as d, withCtx as n, createVNode as e, renderSlot as l } from "vue";
|
|
2
|
+
import u from "./DownloadLink.vue.js";
|
|
3
|
+
import m from "./IntroductionCard.vue.js";
|
|
4
|
+
import p from "./IntroductionLayout.vue.js";
|
|
5
|
+
const E = /* @__PURE__ */ s({
|
|
5
6
|
__name: "InfoBlock",
|
|
6
7
|
props: {
|
|
7
8
|
id: {},
|
|
8
|
-
layout: {},
|
|
9
9
|
oasVersion: {},
|
|
10
|
-
getOriginalDocument: { type: Function },
|
|
11
10
|
info: {},
|
|
12
11
|
externalDocs: {},
|
|
13
12
|
documentExtensions: {},
|
|
14
13
|
infoExtensions: {},
|
|
15
|
-
|
|
16
|
-
onLoaded: { type: Function }
|
|
14
|
+
options: {}
|
|
17
15
|
},
|
|
18
|
-
setup(
|
|
19
|
-
const
|
|
20
|
-
() =>
|
|
16
|
+
setup(i) {
|
|
17
|
+
const t = r(
|
|
18
|
+
() => i.options.layout === "classic" ? "after" : "aside"
|
|
21
19
|
);
|
|
22
|
-
return (o,
|
|
20
|
+
return (o, c) => (d(), a(p, {
|
|
23
21
|
id: o.id,
|
|
24
22
|
documentExtensions: o.documentExtensions,
|
|
25
23
|
externalDocs: o.externalDocs,
|
|
26
|
-
getOriginalDocument: o.getOriginalDocument,
|
|
27
24
|
info: o.info,
|
|
28
25
|
infoExtensions: o.infoExtensions,
|
|
29
|
-
isLoading: o.isLoading,
|
|
26
|
+
isLoading: o.options.isLoading,
|
|
30
27
|
oasVersion: o.oasVersion,
|
|
31
|
-
onLoaded: o.onLoaded
|
|
28
|
+
onLoaded: o.options.onLoaded
|
|
32
29
|
}, {
|
|
33
|
-
[
|
|
34
|
-
|
|
35
|
-
row: o.layout === "classic"
|
|
30
|
+
[t.value]: n(() => [
|
|
31
|
+
e(m, {
|
|
32
|
+
row: o.options.layout === "classic"
|
|
36
33
|
}, {
|
|
37
34
|
default: n(() => [
|
|
38
35
|
l(o.$slots, "selectors")
|
|
@@ -40,10 +37,18 @@ const L = /* @__PURE__ */ t({
|
|
|
40
37
|
_: 3
|
|
41
38
|
}, 8, ["row"])
|
|
42
39
|
]),
|
|
40
|
+
"download-link": n(() => [
|
|
41
|
+
e(u, {
|
|
42
|
+
documentDownloadType: o.options.documentDownloadType ?? "both",
|
|
43
|
+
getOriginalDocument: o.options.getOriginalDocument,
|
|
44
|
+
title: o.info?.title,
|
|
45
|
+
url: o.options.url
|
|
46
|
+
}, null, 8, ["documentDownloadType", "getOriginalDocument", "title", "url"])
|
|
47
|
+
]),
|
|
43
48
|
_: 2
|
|
44
|
-
}, 1032, ["id", "documentExtensions", "externalDocs", "
|
|
49
|
+
}, 1032, ["id", "documentExtensions", "externalDocs", "info", "infoExtensions", "isLoading", "oasVersion", "onLoaded"]));
|
|
45
50
|
}
|
|
46
51
|
});
|
|
47
52
|
export {
|
|
48
|
-
|
|
53
|
+
E as default
|
|
49
54
|
};
|
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
import type { ExternalDocumentationObject, InfoObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
|
|
2
2
|
type __VLS_Props = {
|
|
3
|
-
|
|
3
|
+
id: string | undefined;
|
|
4
|
+
oasVersion: string | undefined;
|
|
4
5
|
info: InfoObject;
|
|
5
6
|
externalDocs?: ExternalDocumentationObject;
|
|
6
7
|
documentExtensions?: Record<string, unknown>;
|
|
7
8
|
infoExtensions?: Record<string, unknown>;
|
|
8
9
|
isLoading?: boolean;
|
|
9
|
-
|
|
10
|
-
onLoaded?: () => void;
|
|
11
|
-
id?: string;
|
|
10
|
+
onLoaded?: (() => void) | unknown;
|
|
12
11
|
};
|
|
13
|
-
declare var
|
|
12
|
+
declare var __VLS_39: {}, __VLS_48: {}, __VLS_58: {};
|
|
14
13
|
type __VLS_Slots = {} & {
|
|
15
|
-
|
|
14
|
+
'download-link'?: (props: typeof __VLS_39) => any;
|
|
16
15
|
} & {
|
|
17
|
-
|
|
16
|
+
aside?: (props: typeof __VLS_48) => any;
|
|
17
|
+
} & {
|
|
18
|
+
after?: (props: typeof __VLS_58) => any;
|
|
18
19
|
};
|
|
19
20
|
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>;
|
|
20
21
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IntroductionLayout.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-info-block/components/IntroductionLayout.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"IntroductionLayout.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-info-block/components/IntroductionLayout.vue"],"names":[],"mappings":"AA2FA,OAAO,KAAK,EACV,2BAA2B,EAC3B,UAAU,EACX,MAAM,8DAA8D,CAAA;AAmBrE,KAAK,WAAW,GAAG;IACjB,EAAE,EAAE,MAAM,GAAG,SAAS,CAAA;IACtB,UAAU,EAAE,MAAM,GAAG,SAAS,CAAA;IAC9B,IAAI,EAAE,UAAU,CAAA;IAChB,YAAY,CAAC,EAAE,2BAA2B,CAAA;IAC1C,kBAAkB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAC5C,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IACxC,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,QAAQ,CAAC,EAAE,CAAC,MAAM,IAAI,CAAC,GAAG,OAAO,CAAA;CAClC,CAAC;AAoLF,QAAA,IAAI,QAAQ,IAAW,EAAE,QAAQ,IAAW,EAAE,QAAQ,IAAY,CAAE;AACpE,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,eAAe,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GACrD;IAAE,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GAC3C;IAAE,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AA+B9C,QAAA,MAAM,eAAe,kSAMnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAQ1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./IntroductionLayout.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-eb332881"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
p as default
|
|
7
7
|
};
|
|
@@ -1,39 +1,37 @@
|
|
|
1
|
-
import { defineComponent as m, onMounted as u, createBlock as
|
|
2
|
-
import
|
|
3
|
-
import D from "./InfoDescription.vue.js";
|
|
1
|
+
import { defineComponent as m, onMounted as u, createBlock as l, openBlock as s, unref as n, withCtx as i, createVNode as e, renderSlot as r, createElementVNode as a, createTextVNode as c, toDisplayString as p, createCommentVNode as v } from "vue";
|
|
2
|
+
import g from "./InfoDescription.vue.js";
|
|
4
3
|
import S from "./InfoLinks.vue.js";
|
|
5
4
|
import V from "./InfoVersion.vue.js";
|
|
6
|
-
import
|
|
5
|
+
import $ from "./OpenApiVersion.vue.js";
|
|
7
6
|
import y from "../../../../components/Section/SectionContainer.vue.js";
|
|
8
7
|
import C from "../../../../components/Section/Section.vue.js";
|
|
9
|
-
import
|
|
8
|
+
import L from "../../../../components/Section/SectionContent.vue.js";
|
|
10
9
|
import k from "../../../../components/Section/SectionHeader.vue.js";
|
|
11
|
-
import
|
|
10
|
+
import D from "../../../../components/Section/SectionHeaderTag.vue.js";
|
|
12
11
|
import h from "../../../../components/Section/SectionColumns.vue.js";
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
const E = { class: "flex gap-1.5" },
|
|
12
|
+
import d from "../../../../components/Section/SectionColumn.vue.js";
|
|
13
|
+
import f from "../../../../features/specification-extension/SpecificationExtension.vue2.js";
|
|
14
|
+
const E = { class: "flex gap-1.5" }, _ = { class: "sticky-cards" }, J = /* @__PURE__ */ m({
|
|
16
15
|
__name: "IntroductionLayout",
|
|
17
16
|
props: {
|
|
17
|
+
id: {},
|
|
18
18
|
oasVersion: {},
|
|
19
19
|
info: {},
|
|
20
20
|
externalDocs: {},
|
|
21
21
|
documentExtensions: {},
|
|
22
22
|
infoExtensions: {},
|
|
23
23
|
isLoading: { type: Boolean },
|
|
24
|
-
|
|
25
|
-
onLoaded: { type: Function },
|
|
26
|
-
id: {}
|
|
24
|
+
onLoaded: { type: Function }
|
|
27
25
|
},
|
|
28
|
-
setup(
|
|
29
|
-
return u(() =>
|
|
26
|
+
setup(t) {
|
|
27
|
+
return u(() => typeof t.onLoaded == "function" ? t.onLoaded?.() : t.onLoaded), (o, N) => (s(), l(n(y), null, {
|
|
30
28
|
default: i(() => [
|
|
31
29
|
e(n(C), {
|
|
32
30
|
id: o.id,
|
|
33
31
|
class: "introduction-section z-1 gap-12"
|
|
34
32
|
}, {
|
|
35
33
|
default: i(() => [
|
|
36
|
-
e(n(
|
|
34
|
+
e(n(L), {
|
|
37
35
|
loading: o.isLoading ?? (!o.info?.description && !o.info?.title)
|
|
38
36
|
}, {
|
|
39
37
|
default: i(() => [
|
|
@@ -41,7 +39,7 @@ const E = { class: "flex gap-1.5" }, N = { class: "sticky-cards" }, K = /* @__PU
|
|
|
41
39
|
e(V, {
|
|
42
40
|
version: o.info?.version
|
|
43
41
|
}, null, 8, ["version"]),
|
|
44
|
-
e(
|
|
42
|
+
e($, { oasVersion: o.oasVersion }, null, 8, ["oasVersion"])
|
|
45
43
|
]),
|
|
46
44
|
e(n(k), {
|
|
47
45
|
loading: !o.info?.title,
|
|
@@ -54,7 +52,7 @@ const E = { class: "flex gap-1.5" }, N = { class: "sticky-cards" }, K = /* @__PU
|
|
|
54
52
|
}, null, 8, ["externalDocs", "info"])
|
|
55
53
|
]),
|
|
56
54
|
default: i(() => [
|
|
57
|
-
e(n(
|
|
55
|
+
e(n(D), { level: 1 }, {
|
|
58
56
|
default: i(() => [
|
|
59
57
|
c(p(o.info?.title), 1)
|
|
60
58
|
]),
|
|
@@ -65,35 +63,32 @@ const E = { class: "flex gap-1.5" }, N = { class: "sticky-cards" }, K = /* @__PU
|
|
|
65
63
|
}, 8, ["loading"]),
|
|
66
64
|
e(n(h), null, {
|
|
67
65
|
default: i(() => [
|
|
68
|
-
e(n(
|
|
66
|
+
e(n(d), null, {
|
|
69
67
|
default: i(() => [
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
title: o.info?.title
|
|
73
|
-
}, null, 8, ["getOriginalDocument", "title"]),
|
|
74
|
-
e(D, {
|
|
68
|
+
r(o.$slots, "download-link", {}, void 0, !0),
|
|
69
|
+
e(g, {
|
|
75
70
|
description: o.info?.description
|
|
76
71
|
}, null, 8, ["description"])
|
|
77
72
|
]),
|
|
78
|
-
_:
|
|
73
|
+
_: 3
|
|
79
74
|
}),
|
|
80
|
-
o.$slots.aside ? (
|
|
75
|
+
o.$slots.aside ? (s(), l(n(d), { key: 0 }, {
|
|
81
76
|
default: i(() => [
|
|
82
|
-
a("div",
|
|
83
|
-
|
|
77
|
+
a("div", _, [
|
|
78
|
+
r(o.$slots, "aside", {}, void 0, !0)
|
|
84
79
|
])
|
|
85
80
|
]),
|
|
86
81
|
_: 3
|
|
87
|
-
})) :
|
|
82
|
+
})) : v("", !0)
|
|
88
83
|
]),
|
|
89
84
|
_: 3
|
|
90
85
|
}),
|
|
91
|
-
e(n(
|
|
92
|
-
e(n(
|
|
86
|
+
e(n(f), { value: o.documentExtensions }, null, 8, ["value"]),
|
|
87
|
+
e(n(f), { value: o.infoExtensions }, null, 8, ["value"])
|
|
93
88
|
]),
|
|
94
89
|
_: 3
|
|
95
90
|
}, 8, ["loading"]),
|
|
96
|
-
|
|
91
|
+
r(o.$slots, "after", {}, void 0, !0)
|
|
97
92
|
]),
|
|
98
93
|
_: 3
|
|
99
94
|
}, 8, ["id"])
|
|
@@ -103,5 +98,5 @@ const E = { class: "flex gap-1.5" }, N = { class: "sticky-cards" }, K = /* @__PU
|
|
|
103
98
|
}
|
|
104
99
|
});
|
|
105
100
|
export {
|
|
106
|
-
|
|
101
|
+
J as default
|
|
107
102
|
};
|
|
@@ -8,28 +8,8 @@ type __VLS_Props = {
|
|
|
8
8
|
target: string;
|
|
9
9
|
};
|
|
10
10
|
declare const _default: import("vue").DefineComponent<__VLS_Props, {
|
|
11
|
-
server: import("vue").ComputedRef<
|
|
12
|
-
|
|
13
|
-
variables?: {
|
|
14
|
-
[x: string]: {
|
|
15
|
-
default?: string | undefined;
|
|
16
|
-
description?: string | undefined;
|
|
17
|
-
enum?: string[] | undefined;
|
|
18
|
-
};
|
|
19
|
-
} | undefined;
|
|
20
|
-
url: string;
|
|
21
|
-
} | undefined>;
|
|
22
|
-
servers: {
|
|
23
|
-
description?: string | undefined;
|
|
24
|
-
variables?: {
|
|
25
|
-
[x: string]: {
|
|
26
|
-
default?: string | undefined;
|
|
27
|
-
description?: string | undefined;
|
|
28
|
-
enum?: string[] | undefined;
|
|
29
|
-
};
|
|
30
|
-
} | undefined;
|
|
31
|
-
url: string;
|
|
32
|
-
}[];
|
|
11
|
+
server: import("vue").ComputedRef<ServerObject | undefined>;
|
|
12
|
+
servers: ServerObject[];
|
|
33
13
|
serverUrlWithoutTrailingSlash: import("vue").ComputedRef<string>;
|
|
34
14
|
serverOptions: import("vue").ComputedRef<{
|
|
35
15
|
id: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Selector.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-server-selector-block/components/Selector.vue"],"names":[],"mappings":"AAuFA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAGhG,KAAK,WAAW,GAAG;IACjB,8BAA8B;IAC9B,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,wBAAwB;IACxB,OAAO,EAAE,YAAY,EAAE,CAAA;IACvB,qEAAqE;IACrE,MAAM,EAAE,MAAM,CAAA;CACf,CAAC
|
|
1
|
+
{"version":3,"file":"Selector.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-server-selector-block/components/Selector.vue"],"names":[],"mappings":"AAuFA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAGhG,KAAK,WAAW,GAAG;IACjB,8BAA8B;IAC9B,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,wBAAwB;IACxB,OAAO,EAAE,YAAY,EAAE,CAAA;IACvB,qEAAqE;IACrE,MAAM,EAAE,MAAM,CAAA;CACf,CAAC;;;;;;;;;;;;;;;;;;;;;AAgMF,wBAQG"}
|
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
type __VLS_Props = {
|
|
2
2
|
title: string;
|
|
3
|
+
options: {
|
|
4
|
+
pathRouting?: {
|
|
5
|
+
basePath?: string;
|
|
6
|
+
};
|
|
7
|
+
onSidebarClick: ((id: string) => void) | undefined;
|
|
8
|
+
operationTitleSource: 'path' | 'summary' | undefined;
|
|
9
|
+
defaultOpenAllTags: boolean | undefined;
|
|
10
|
+
};
|
|
3
11
|
};
|
|
4
12
|
declare var __VLS_1: {}, __VLS_32: {};
|
|
5
13
|
type __VLS_Slots = {} & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SidebarBlock.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-sidebar-block/components/SidebarBlock.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SidebarBlock.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-sidebar-block/components/SidebarBlock.vue"],"names":[],"mappings":"AA6RA,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE;QACP,WAAW,CAAC,EAAE;YACZ,QAAQ,CAAC,EAAE,MAAM,CAAA;SAClB,CAAA;QACD,cAAc,EAAE,CAAC,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC,GAAG,SAAS,CAAA;QAClD,oBAAoB,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS,CAAA;QACpD,kBAAkB,EAAE,OAAO,GAAG,SAAS,CAAA;KACxC,CAAA;CACF,CAAC;AA4SF,QAAA,IAAI,OAAO,IAAU,EAAE,QAAQ,IAAY,CAAE;AAC7C,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,eAAe,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GACpD;IAAE,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AA8BtD,QAAA,MAAM,eAAe,kSAMnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAQ1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./SidebarBlock.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const m = /* @__PURE__ */
|
|
3
|
+
import r from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-29c5b3a5"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|
|
@@ -1,126 +1,131 @@
|
|
|
1
|
-
import { defineComponent as O, ref as y, watch as N, onMounted as L, onUnmounted as F, createElementBlock as
|
|
1
|
+
import { defineComponent as O, ref as y, watch as N, onMounted as L, onUnmounted as F, createElementBlock as r, openBlock as i, renderSlot as T, createElementVNode as C, createVNode as G, withCtx as f, Fragment as d, renderList as m, unref as l, createBlock as u, toDisplayString as V, createCommentVNode as A } from "vue";
|
|
2
2
|
import { sleep as $ } from "@scalar/helpers/testing/sleep";
|
|
3
3
|
import { useNavState as M } from "../../../../hooks/useNavState.js";
|
|
4
|
-
import { useSidebar as
|
|
4
|
+
import { useSidebar as D } from "../hooks/useSidebar.js";
|
|
5
5
|
import h from "./SidebarElement.vue.js";
|
|
6
|
-
import
|
|
7
|
-
const
|
|
6
|
+
import g from "./SidebarGroup.vue.js";
|
|
7
|
+
const H = { class: "sidebar" }, R = ["aria-label"], U = { class: "sidebar-group-title" }, j = -160, X = /* @__PURE__ */ O({
|
|
8
8
|
__name: "SidebarBlock",
|
|
9
9
|
props: {
|
|
10
|
-
title: {}
|
|
10
|
+
title: {},
|
|
11
|
+
options: {}
|
|
11
12
|
},
|
|
12
|
-
setup(
|
|
13
|
-
const { hash:
|
|
14
|
-
N(
|
|
15
|
-
!w.value ||
|
|
13
|
+
setup(q) {
|
|
14
|
+
const { hash: a, isIntersectionEnabled: w } = M(), { items: B, toggleCollapsedSidebarItem: _, collapsedSidebarItems: E } = D(), c = y(null), n = y(!0);
|
|
15
|
+
N(a, (e) => {
|
|
16
|
+
!w.value || n.value || typeof window > "u" || S(e);
|
|
16
17
|
});
|
|
17
|
-
const S = (
|
|
18
|
-
const s = document.getElementById(`sidebar-${
|
|
18
|
+
const S = (e) => {
|
|
19
|
+
const s = document.getElementById(`sidebar-${e}`);
|
|
19
20
|
if (!s || !c.value)
|
|
20
21
|
return;
|
|
21
|
-
let
|
|
22
|
-
s.getAttribute("data-sidebar-type") === "heading" ?
|
|
23
|
-
}, I = (
|
|
22
|
+
let t = j;
|
|
23
|
+
s.getAttribute("data-sidebar-type") === "heading" ? t += s.offsetTop + (s.getElementsByClassName("sidebar-heading")?.[0]).offsetHeight : t += s.offsetTop + (s.parentElement?.offsetTop ?? 0) + (s.parentElement?.parentElement?.offsetTop ?? 0), c.value.scrollTo({ top: t, behavior: "smooth" });
|
|
24
|
+
}, I = (e) => {
|
|
24
25
|
if (!c.value)
|
|
25
26
|
return;
|
|
26
|
-
const s = new MutationObserver((
|
|
27
|
-
document.getElementById(`sidebar-${
|
|
27
|
+
const s = new MutationObserver((t, o) => {
|
|
28
|
+
document.getElementById(`sidebar-${e}`) && (S(e), n.value = !1, o.disconnect());
|
|
28
29
|
});
|
|
29
30
|
return s.observe(c.value, {
|
|
30
31
|
childList: !0,
|
|
31
32
|
subtree: !0
|
|
32
33
|
}), s;
|
|
33
|
-
},
|
|
34
|
+
}, v = (e) => a.value === e ? !0 : a.value.includes("/description/") ? a.value.split("/description/")[0] === e : !1, k = y(void 0);
|
|
34
35
|
L(() => {
|
|
35
|
-
k.value = I(
|
|
36
|
+
k.value = I(a.value), a.value || setTimeout(() => n.value = !1, 300);
|
|
36
37
|
}), F(() => {
|
|
37
38
|
k.value?.disconnect();
|
|
38
39
|
});
|
|
39
|
-
const b = (
|
|
40
|
-
return (
|
|
41
|
-
T(
|
|
40
|
+
const b = (e) => (e.type === "tag" || e.type === "text") && (e.children?.length ?? 0) > 0;
|
|
41
|
+
return (e, s) => (i(), r("div", H, [
|
|
42
|
+
T(e.$slots, "sidebar-start", {}, void 0, !0),
|
|
42
43
|
C("nav", {
|
|
43
44
|
ref_key: "scrollerEl",
|
|
44
45
|
ref: c,
|
|
45
|
-
"aria-label": `Table of contents for ${
|
|
46
|
+
"aria-label": `Table of contents for ${e.title}`,
|
|
46
47
|
class: "sidebar-pages custom-scroll custom-scroll-self-contain-overflow"
|
|
47
48
|
}, [
|
|
48
|
-
G(
|
|
49
|
-
default:
|
|
50
|
-
(i(!0),
|
|
51
|
-
key:
|
|
49
|
+
G(g, { level: 0 }, {
|
|
50
|
+
default: f(() => [
|
|
51
|
+
(i(!0), r(d, null, m(l(B).entries, (t) => (i(), r(d, {
|
|
52
|
+
key: t.id
|
|
52
53
|
}, [
|
|
53
|
-
"isGroup" in
|
|
54
|
-
C("li",
|
|
55
|
-
(i(!0),
|
|
56
|
-
key:
|
|
57
|
-
id: `sidebar-${
|
|
54
|
+
"isGroup" in t && t.isGroup ? (i(), r(d, { key: 0 }, [
|
|
55
|
+
C("li", U, V(t.title), 1),
|
|
56
|
+
(i(!0), r(d, null, m(t.children, (o) => (i(), u(h, {
|
|
57
|
+
key: o.id,
|
|
58
|
+
id: `sidebar-${o.id}`,
|
|
58
59
|
"data-sidebar-type": "heading",
|
|
59
|
-
hasChildren: b(
|
|
60
|
-
isActive:
|
|
61
|
-
item:
|
|
62
|
-
open:
|
|
60
|
+
hasChildren: b(o),
|
|
61
|
+
isActive: v(o.id),
|
|
62
|
+
item: o,
|
|
63
|
+
open: l(E)[o.id] ?? !1,
|
|
64
|
+
options: e.options,
|
|
63
65
|
onToggleOpen: async () => {
|
|
64
|
-
|
|
66
|
+
n.value = !0, l(_)(o.id), await l($)(100), n.value = !1;
|
|
65
67
|
}
|
|
66
68
|
}, {
|
|
67
|
-
default:
|
|
68
|
-
b(
|
|
69
|
+
default: f(() => [
|
|
70
|
+
b(o) ? (i(), u(g, {
|
|
69
71
|
key: 0,
|
|
70
72
|
level: 1
|
|
71
73
|
}, {
|
|
72
|
-
default:
|
|
73
|
-
(i(!0),
|
|
74
|
-
key:
|
|
75
|
-
id: `sidebar-${
|
|
76
|
-
isActive: p
|
|
77
|
-
item:
|
|
78
|
-
|
|
74
|
+
default: f(() => [
|
|
75
|
+
(i(!0), r(d, null, m(o.children, (p) => (i(), u(h, {
|
|
76
|
+
key: p.id,
|
|
77
|
+
id: `sidebar-${p.id}`,
|
|
78
|
+
isActive: v(p.id),
|
|
79
|
+
item: p,
|
|
80
|
+
options: e.options
|
|
81
|
+
}, null, 8, ["id", "isActive", "item", "options"]))), 128))
|
|
79
82
|
]),
|
|
80
83
|
_: 2
|
|
81
84
|
}, 1024)) : A("", !0)
|
|
82
85
|
]),
|
|
83
86
|
_: 2
|
|
84
|
-
}, 1032, ["id", "hasChildren", "isActive", "item", "open", "onToggleOpen"]))), 128))
|
|
87
|
+
}, 1032, ["id", "hasChildren", "isActive", "item", "open", "options", "onToggleOpen"]))), 128))
|
|
85
88
|
], 64)) : (i(), u(h, {
|
|
86
89
|
key: 1,
|
|
87
|
-
id: `sidebar-${
|
|
90
|
+
id: `sidebar-${t.id}`,
|
|
88
91
|
"data-sidebar-type": "heading",
|
|
89
|
-
hasChildren: b(
|
|
90
|
-
isActive:
|
|
91
|
-
item:
|
|
92
|
-
open:
|
|
92
|
+
hasChildren: b(t),
|
|
93
|
+
isActive: v(t.id),
|
|
94
|
+
item: t,
|
|
95
|
+
open: l(E)[t.id] ?? !1,
|
|
96
|
+
options: e.options,
|
|
93
97
|
onToggleOpen: async () => {
|
|
94
|
-
|
|
98
|
+
n.value = !0, l(_)(t.id), await l($)(100), n.value = !1;
|
|
95
99
|
}
|
|
96
100
|
}, {
|
|
97
|
-
default:
|
|
98
|
-
b(
|
|
101
|
+
default: f(() => [
|
|
102
|
+
b(t) ? (i(), u(g, {
|
|
99
103
|
key: 0,
|
|
100
104
|
level: 1
|
|
101
105
|
}, {
|
|
102
|
-
default:
|
|
103
|
-
(i(!0),
|
|
104
|
-
key:
|
|
105
|
-
id: `sidebar-${
|
|
106
|
-
isActive:
|
|
107
|
-
item:
|
|
108
|
-
|
|
106
|
+
default: f(() => [
|
|
107
|
+
(i(!0), r(d, null, m(t.children, (o) => (i(), u(h, {
|
|
108
|
+
key: o.id,
|
|
109
|
+
id: `sidebar-${o.id}`,
|
|
110
|
+
isActive: v(o.id),
|
|
111
|
+
item: o,
|
|
112
|
+
options: e.options
|
|
113
|
+
}, null, 8, ["id", "isActive", "item", "options"]))), 128))
|
|
109
114
|
]),
|
|
110
115
|
_: 2
|
|
111
116
|
}, 1024)) : A("", !0)
|
|
112
117
|
]),
|
|
113
118
|
_: 2
|
|
114
|
-
}, 1032, ["id", "hasChildren", "isActive", "item", "open", "onToggleOpen"]))
|
|
119
|
+
}, 1032, ["id", "hasChildren", "isActive", "item", "open", "options", "onToggleOpen"]))
|
|
115
120
|
], 64))), 128))
|
|
116
121
|
]),
|
|
117
122
|
_: 1
|
|
118
123
|
})
|
|
119
|
-
], 8,
|
|
120
|
-
T(
|
|
124
|
+
], 8, R),
|
|
125
|
+
T(e.$slots, "sidebar-end", {}, void 0, !0)
|
|
121
126
|
]));
|
|
122
127
|
}
|
|
123
128
|
});
|
|
124
129
|
export {
|
|
125
|
-
|
|
130
|
+
X as default
|
|
126
131
|
};
|
|
@@ -1,10 +1,18 @@
|
|
|
1
|
-
import type { TraversedEntry } from '@scalar/workspace-store/schemas/
|
|
1
|
+
import type { TraversedEntry } from '@scalar/workspace-store/schemas/navigation';
|
|
2
2
|
type __VLS_Props = {
|
|
3
3
|
id: string;
|
|
4
4
|
item: TraversedEntry;
|
|
5
5
|
isActive?: boolean;
|
|
6
6
|
hasChildren?: boolean;
|
|
7
7
|
open?: boolean;
|
|
8
|
+
options: {
|
|
9
|
+
pathRouting?: {
|
|
10
|
+
basePath?: string;
|
|
11
|
+
};
|
|
12
|
+
onSidebarClick: ((id: string) => void) | undefined;
|
|
13
|
+
operationTitleSource: 'path' | 'summary' | undefined;
|
|
14
|
+
defaultOpenAllTags: boolean | undefined;
|
|
15
|
+
};
|
|
8
16
|
};
|
|
9
17
|
declare var __VLS_12: {}, __VLS_14: {};
|
|
10
18
|
type __VLS_Slots = {} & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SidebarElement.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-sidebar-block/components/SidebarElement.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SidebarElement.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-sidebar-block/components/SidebarElement.vue"],"names":[],"mappings":"AAgYA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4CAA4C,CAAA;AAMhF,KAAK,WAAW,GAAG;IACjB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,cAAc,CAAA;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,OAAO,EAAE;QACP,WAAW,CAAC,EAAE;YACZ,QAAQ,CAAC,EAAE,MAAM,CAAA;SAClB,CAAA;QACD,cAAc,EAAE,CAAC,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC,GAAG,SAAS,CAAA;QAClD,oBAAoB,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS,CAAA;QACpD,kBAAkB,EAAE,OAAO,GAAG,SAAS,CAAA;KACxC,CAAA;CACF,CAAC;AA4RF,QAAA,IAAI,QAAQ,IAAW,EAAE,QAAQ,IAAY,CAAE;AAC/C,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GAC7C;IAAE,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AA4BtD,QAAA,MAAM,eAAe;;;;kFAOnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAQ1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./SidebarElement.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-43553cbe"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
a as default
|
|
7
7
|
};
|