@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,38 @@
|
|
|
1
|
-
import { defineComponent as b, useId as y, computed as
|
|
2
|
-
import { ScalarErrorBoundary as
|
|
1
|
+
import { defineComponent as b, useId as y, computed as c, createBlock as s, createCommentVNode as p, openBlock as a, unref as e, withCtx as o, createVNode as l, createElementVNode as w, createTextVNode as B, normalizeClass as N, createElementBlock as g, Fragment as k, renderList as C } from "vue";
|
|
2
|
+
import { ScalarErrorBoundary as I } from "@scalar/components";
|
|
3
3
|
import A from "../../ShowMoreButton.vue.js";
|
|
4
4
|
import { useSidebar as H } from "../../../v2/blocks/scalar-sidebar-block/hooks/useSidebar.js";
|
|
5
5
|
import L from "../../Section/SectionContainer.vue.js";
|
|
6
|
-
import
|
|
6
|
+
import _ from "../../Section/Section.vue.js";
|
|
7
7
|
import E from "../../Section/SectionHeader.vue.js";
|
|
8
|
-
import
|
|
8
|
+
import f from "../../Section/SectionHeaderTag.vue.js";
|
|
9
9
|
import O from "../../Section/CompactSection.vue.js";
|
|
10
10
|
import P from "../Schema/Schema.vue.js";
|
|
11
11
|
import V from "../Schema/SchemaHeading.vue.js";
|
|
12
12
|
const S = 10, G = /* @__PURE__ */ b({
|
|
13
13
|
__name: "ModernLayout",
|
|
14
14
|
props: {
|
|
15
|
-
|
|
15
|
+
options: {},
|
|
16
16
|
schemas: { default: () => [] }
|
|
17
17
|
},
|
|
18
18
|
setup(r) {
|
|
19
|
-
const m = y(), { collapsedSidebarItems: h } = H(),
|
|
20
|
-
() => r.
|
|
21
|
-
),
|
|
22
|
-
return (t,
|
|
19
|
+
const m = y(), { collapsedSidebarItems: h } = H(), n = c(
|
|
20
|
+
() => r.options.expandAllModelSections || r.schemas.length <= S || h.models
|
|
21
|
+
), M = c(() => n.value ? r.schemas : r.schemas.slice(0, S));
|
|
22
|
+
return (t, u) => t.schemas ? (a(), s(e(L), {
|
|
23
23
|
key: 0,
|
|
24
24
|
id: "models"
|
|
25
25
|
}, {
|
|
26
26
|
default: o(() => [
|
|
27
|
-
l(e(
|
|
27
|
+
l(e(_), { "aria-labelledby": e(m) }, {
|
|
28
28
|
default: o(() => [
|
|
29
29
|
l(e(E), null, {
|
|
30
30
|
default: o(() => [
|
|
31
|
-
l(e(
|
|
31
|
+
l(e(f), {
|
|
32
32
|
id: e(m),
|
|
33
33
|
level: 2
|
|
34
34
|
}, {
|
|
35
|
-
default: o(() =>
|
|
35
|
+
default: o(() => u[0] || (u[0] = [
|
|
36
36
|
B(" Models ")
|
|
37
37
|
])),
|
|
38
38
|
_: 1,
|
|
@@ -41,29 +41,29 @@ const S = 10, G = /* @__PURE__ */ b({
|
|
|
41
41
|
]),
|
|
42
42
|
_: 1
|
|
43
43
|
}),
|
|
44
|
-
|
|
45
|
-
class: N(["models-list", { "models-list-truncated": !
|
|
44
|
+
w("div", {
|
|
45
|
+
class: N(["models-list", { "models-list-truncated": !n.value }])
|
|
46
46
|
}, [
|
|
47
|
-
(a(!0), k
|
|
47
|
+
(a(!0), g(k, null, C(M.value, ({ id: v, name: d, schema: i }) => (a(), s(e(O), {
|
|
48
48
|
id: v,
|
|
49
|
-
key:
|
|
49
|
+
key: d,
|
|
50
50
|
class: "models-list-item",
|
|
51
|
-
defaultOpen: t.
|
|
52
|
-
label:
|
|
51
|
+
defaultOpen: t.options.expandAllModelSections,
|
|
52
|
+
label: d
|
|
53
53
|
}, {
|
|
54
54
|
heading: o(() => [
|
|
55
|
-
l(e(
|
|
55
|
+
l(e(f), { level: 3 }, {
|
|
56
56
|
default: o(() => [
|
|
57
57
|
l(e(V), {
|
|
58
|
-
name:
|
|
59
|
-
value:
|
|
58
|
+
name: i.title ?? d,
|
|
59
|
+
value: i
|
|
60
60
|
}, null, 8, ["name", "value"])
|
|
61
61
|
]),
|
|
62
62
|
_: 2
|
|
63
63
|
}, 1024)
|
|
64
64
|
]),
|
|
65
65
|
default: o(() => [
|
|
66
|
-
l(e(
|
|
66
|
+
l(e(I), null, {
|
|
67
67
|
default: o(() => [
|
|
68
68
|
l(e(P), {
|
|
69
69
|
hideHeading: "",
|
|
@@ -71,10 +71,10 @@ const S = 10, G = /* @__PURE__ */ b({
|
|
|
71
71
|
level: 1,
|
|
72
72
|
noncollapsible: "",
|
|
73
73
|
options: {
|
|
74
|
-
orderRequiredPropertiesFirst: t.
|
|
75
|
-
orderSchemaPropertiesBy: t.
|
|
74
|
+
orderRequiredPropertiesFirst: t.options.orderRequiredPropertiesFirst,
|
|
75
|
+
orderSchemaPropertiesBy: t.options.orderSchemaPropertiesBy
|
|
76
76
|
},
|
|
77
|
-
schema:
|
|
77
|
+
schema: i
|
|
78
78
|
}, null, 8, ["options", "schema"])
|
|
79
79
|
]),
|
|
80
80
|
_: 2
|
|
@@ -83,17 +83,18 @@ const S = 10, G = /* @__PURE__ */ b({
|
|
|
83
83
|
_: 2
|
|
84
84
|
}, 1032, ["id", "defaultOpen", "label"]))), 128))
|
|
85
85
|
], 2),
|
|
86
|
-
|
|
86
|
+
n.value ? p("", !0) : (a(), s(A, {
|
|
87
87
|
key: 0,
|
|
88
88
|
id: "models",
|
|
89
|
-
class: "show-more-models"
|
|
90
|
-
|
|
89
|
+
class: "show-more-models",
|
|
90
|
+
onShowMore: t.options.onShowMore
|
|
91
|
+
}, null, 8, ["onShowMore"]))
|
|
91
92
|
]),
|
|
92
93
|
_: 1
|
|
93
94
|
}, 8, ["aria-labelledby"])
|
|
94
95
|
]),
|
|
95
96
|
_: 1
|
|
96
|
-
})) :
|
|
97
|
+
})) : p("", !0);
|
|
97
98
|
}
|
|
98
99
|
});
|
|
99
100
|
export {
|
|
@@ -1,18 +1,32 @@
|
|
|
1
|
+
import type { ClientOptionGroup } from '@scalar/api-client/v2/blocks/operation-code-sample';
|
|
1
2
|
import type { Collection, Server } from '@scalar/oas-utils/entities/spec';
|
|
2
|
-
import type { ApiReferenceConfiguration } from '@scalar/types';
|
|
3
3
|
import type { WorkspaceStore } from '@scalar/workspace-store/client';
|
|
4
|
-
import type {
|
|
5
|
-
import type {
|
|
4
|
+
import type { TraversedEntry } from '@scalar/workspace-store/schemas/navigation';
|
|
5
|
+
import type { PathsObject, SecurityRequirementObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
|
|
6
6
|
type __VLS_Props = {
|
|
7
7
|
level?: number;
|
|
8
|
+
hash: string;
|
|
8
9
|
rootIndex: number;
|
|
9
10
|
entries: TraversedEntry[];
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
/** The path entries from the document `document.paths` */
|
|
12
|
+
paths: PathsObject;
|
|
13
|
+
/** The webhook path entries from the document `document.webhooks` */
|
|
14
|
+
webhooks: PathsObject;
|
|
15
|
+
/** The security requirements from the document `document.security` */
|
|
16
|
+
security: SecurityRequirementObject[] | undefined;
|
|
13
17
|
activeCollection: Collection;
|
|
14
18
|
activeServer: Server | undefined;
|
|
15
19
|
store: WorkspaceStore;
|
|
20
|
+
options: {
|
|
21
|
+
layout: 'classic' | 'modern';
|
|
22
|
+
showOperationId: boolean | undefined;
|
|
23
|
+
hideTestRequestButton: boolean | undefined;
|
|
24
|
+
expandAllResponses: boolean | undefined;
|
|
25
|
+
clientOptions: ClientOptionGroup[];
|
|
26
|
+
orderRequiredPropertiesFirst: boolean | undefined;
|
|
27
|
+
orderSchemaPropertiesBy: 'alpha' | 'preserve' | undefined;
|
|
28
|
+
onShowMore: ((id: string) => void) | undefined;
|
|
29
|
+
};
|
|
16
30
|
};
|
|
17
31
|
declare const _default: import("vue").DefineComponent<__VLS_Props, {
|
|
18
32
|
currentIndex: import("vue").ComputedRef<number>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TraversedEntry.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Operations/TraversedEntry.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TraversedEntry.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Operations/TraversedEntry.vue"],"names":[],"mappings":"AA6LA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oDAAoD,CAAA;AAC3F,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAA;AACzE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AACpE,OAAO,KAAK,EACV,cAAc,EAIf,MAAM,4CAA4C,CAAA;AACnD,OAAO,KAAK,EACV,WAAW,EACX,yBAAyB,EAC1B,MAAM,8DAA8D,CAAA;AASrE,KAAK,WAAW,GAAG;IACjB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,EAAE,MAAM,CAAA;IACZ,SAAS,EAAE,MAAM,CAAA;IACjB,OAAO,EAAE,cAAc,EAAE,CAAA;IACzB,0DAA0D;IAC1D,KAAK,EAAE,WAAW,CAAA;IAClB,qEAAqE;IACrE,QAAQ,EAAE,WAAW,CAAA;IACrB,sEAAsE;IACtE,QAAQ,EAAE,yBAAyB,EAAE,GAAG,SAAS,CAAA;IACjD,gBAAgB,EAAE,UAAU,CAAA;IAC5B,YAAY,EAAE,MAAM,GAAG,SAAS,CAAA;IAChC,KAAK,EAAE,cAAc,CAAA;IACrB,OAAO,EAAE;QACP,MAAM,EAAE,SAAS,GAAG,QAAQ,CAAA;QAC5B,eAAe,EAAE,OAAO,GAAG,SAAS,CAAA;QACpC,qBAAqB,EAAE,OAAO,GAAG,SAAS,CAAA;QAC1C,kBAAkB,EAAE,OAAO,GAAG,SAAS,CAAA;QACvC,aAAa,EAAE,iBAAiB,EAAE,CAAA;QAClC,4BAA4B,EAAE,OAAO,GAAG,SAAS,CAAA;QACjD,uBAAuB,EAAE,OAAO,GAAG,UAAU,GAAG,SAAS,CAAA;QACzD,UAAU,EAAE,CAAC,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC,GAAG,SAAS,CAAA;KAC/C,CAAA;CACF,CAAC;;;oBA6CqB,cAAc,SAAS,MAAM;;AAoNpD,wBAOG"}
|
|
@@ -1,89 +1,101 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { getCurrentIndex as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
|
|
8
|
-
const D = /* @__PURE__ */ I({
|
|
1
|
+
import { defineComponent as S, computed as f, resolveComponent as b, createElementBlock as I, openBlock as r, Fragment as T, renderList as L, createBlock as i, unref as a, withCtx as v, createCommentVNode as k, createVNode as y } from "vue";
|
|
2
|
+
import { getCurrentIndex as V } from "./get-current-index.js";
|
|
3
|
+
import B from "../../Lazy/Lazy.vue2.js";
|
|
4
|
+
import E from "../../Section/SectionContainer.vue.js";
|
|
5
|
+
import z from "../../../features/Operation/Operation.vue.js";
|
|
6
|
+
import M from "../Tags/Tag.vue.js";
|
|
7
|
+
const P = /* @__PURE__ */ S({
|
|
9
8
|
__name: "TraversedEntry",
|
|
10
9
|
props: {
|
|
11
10
|
level: { default: 0 },
|
|
11
|
+
hash: {},
|
|
12
12
|
rootIndex: {},
|
|
13
13
|
entries: {},
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
paths: {},
|
|
15
|
+
webhooks: {},
|
|
16
|
+
security: {},
|
|
17
17
|
activeCollection: {},
|
|
18
18
|
activeServer: {},
|
|
19
|
-
store: {}
|
|
19
|
+
store: {},
|
|
20
|
+
options: {}
|
|
20
21
|
},
|
|
21
|
-
setup(
|
|
22
|
-
const
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
22
|
+
setup(t, { expose: g }) {
|
|
23
|
+
const n = (e) => e.type === "tag" && e.isGroup === !0, p = (e) => e.type === "tag" && !n(e), C = (e) => e.type === "operation", s = (e) => e.type === "webhook", c = f(() => t.level === 0), l = f(() => c.value ? t.rootIndex : V(t.hash, t.entries)), h = (e, u) => n(e) ? null : u < l.value ? "prev" : u > l.value + 2 ? "after" : null;
|
|
24
|
+
function w(e) {
|
|
25
|
+
return s(e) ? t.webhooks[e.name] : t.paths[e.path];
|
|
26
|
+
}
|
|
27
|
+
return g({
|
|
28
|
+
currentIndex: l,
|
|
29
|
+
isLazy: h
|
|
26
30
|
}), (e, u) => {
|
|
27
|
-
const
|
|
28
|
-
return
|
|
31
|
+
const d = b("TraversedEntry", !0);
|
|
32
|
+
return r(!0), I(T, null, L(e.entries, (o, m) => (r(), i(a(B), {
|
|
29
33
|
id: o.id,
|
|
30
34
|
key: o.id,
|
|
31
|
-
isLazy: !!
|
|
32
|
-
prev:
|
|
35
|
+
isLazy: !!h(o, m),
|
|
36
|
+
prev: h(o, m) === "prev"
|
|
33
37
|
}, {
|
|
34
38
|
default: v(() => [
|
|
35
|
-
|
|
39
|
+
C(o) || s(o) ? (r(), i(a(E), {
|
|
36
40
|
key: 0,
|
|
37
|
-
omit: !
|
|
41
|
+
omit: !c.value
|
|
38
42
|
}, {
|
|
39
43
|
default: v(() => [
|
|
40
|
-
|
|
44
|
+
y(a(z), {
|
|
41
45
|
id: o.id,
|
|
42
|
-
clientOptions: e.clientOptions,
|
|
43
46
|
collection: e.activeCollection,
|
|
44
|
-
config: e.config,
|
|
45
|
-
document: e.document,
|
|
46
|
-
isWebhook: a(o),
|
|
47
47
|
method: o.method,
|
|
48
|
-
|
|
48
|
+
options: {
|
|
49
|
+
...e.options,
|
|
50
|
+
isWebhook: s(o)
|
|
51
|
+
},
|
|
52
|
+
path: s(o) ? o.name : o.path,
|
|
53
|
+
pathValue: w(o),
|
|
54
|
+
security: e.security,
|
|
49
55
|
server: e.activeServer,
|
|
50
56
|
store: e.store
|
|
51
|
-
}, null, 8, ["id", "
|
|
57
|
+
}, null, 8, ["id", "collection", "method", "options", "path", "pathValue", "security", "server", "store"])
|
|
52
58
|
]),
|
|
53
59
|
_: 2
|
|
54
|
-
}, 1032, ["omit"])) :
|
|
60
|
+
}, 1032, ["omit"])) : p(o) ? (r(), i(a(M), {
|
|
55
61
|
key: 1,
|
|
56
|
-
|
|
57
|
-
|
|
62
|
+
isLoading: !1,
|
|
63
|
+
layout: e.options.layout,
|
|
64
|
+
moreThanOneTag: e.entries.filter(p).length > 1,
|
|
65
|
+
onShowMore: e.options.onShowMore,
|
|
58
66
|
tag: o
|
|
59
67
|
}, {
|
|
60
68
|
default: v(() => [
|
|
61
|
-
"children" in o && o.children?.length ? (
|
|
69
|
+
"children" in o && o.children?.length ? (r(), i(d, {
|
|
62
70
|
key: 0,
|
|
63
71
|
activeCollection: e.activeCollection,
|
|
64
72
|
activeServer: e.activeServer,
|
|
65
|
-
clientOptions: e.clientOptions,
|
|
66
|
-
config: e.config,
|
|
67
|
-
document: e.document,
|
|
68
73
|
entries: o.children,
|
|
74
|
+
hash: e.hash,
|
|
69
75
|
level: e.level + 1,
|
|
76
|
+
options: e.options,
|
|
77
|
+
paths: e.paths,
|
|
70
78
|
rootIndex: e.rootIndex,
|
|
71
|
-
|
|
72
|
-
|
|
79
|
+
security: e.security,
|
|
80
|
+
store: e.store,
|
|
81
|
+
webhooks: e.webhooks
|
|
82
|
+
}, null, 8, ["activeCollection", "activeServer", "entries", "hash", "level", "options", "paths", "rootIndex", "security", "store", "webhooks"])) : k("", !0)
|
|
73
83
|
]),
|
|
74
84
|
_: 2
|
|
75
|
-
}, 1032, ["layout", "moreThanOneTag", "tag"])) :
|
|
85
|
+
}, 1032, ["layout", "moreThanOneTag", "onShowMore", "tag"])) : n(o) ? (r(), i(d, {
|
|
76
86
|
key: 2,
|
|
77
87
|
activeCollection: e.activeCollection,
|
|
78
88
|
activeServer: e.activeServer,
|
|
79
|
-
clientOptions: e.clientOptions,
|
|
80
|
-
config: e.config,
|
|
81
|
-
document: e.document,
|
|
82
89
|
entries: o.children || [],
|
|
90
|
+
hash: e.hash,
|
|
83
91
|
level: e.level + 1,
|
|
92
|
+
options: e.options,
|
|
93
|
+
paths: e.paths,
|
|
84
94
|
rootIndex: e.rootIndex,
|
|
85
|
-
|
|
86
|
-
|
|
95
|
+
security: e.security,
|
|
96
|
+
store: e.store,
|
|
97
|
+
webhooks: e.webhooks
|
|
98
|
+
}, null, 8, ["activeCollection", "activeServer", "entries", "hash", "level", "options", "paths", "rootIndex", "security", "store", "webhooks"])) : k("", !0)
|
|
87
99
|
]),
|
|
88
100
|
_: 2
|
|
89
101
|
}, 1032, ["id", "isLazy", "prev"]))), 128);
|
|
@@ -91,5 +103,5 @@ const D = /* @__PURE__ */ I({
|
|
|
91
103
|
}
|
|
92
104
|
});
|
|
93
105
|
export {
|
|
94
|
-
|
|
106
|
+
P as default
|
|
95
107
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { TraversedEntry } from '@scalar/workspace-store/schemas/
|
|
1
|
+
import type { TraversedEntry } from '@scalar/workspace-store/schemas/navigation';
|
|
2
2
|
/** Loops through the entries and returns the index of the current entry based on the hash */
|
|
3
3
|
export declare const getCurrentIndex: (hash: string, entries: TraversedEntry[]) => number;
|
|
4
4
|
//# sourceMappingURL=get-current-index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-current-index.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Operations/get-current-index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"get-current-index.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Operations/get-current-index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4CAA4C,CAAA;AAuBhF,6FAA6F;AAC7F,eAAO,MAAM,eAAe,GAAI,MAAM,MAAM,EAAE,SAAS,cAAc,EAAE,WAYtE,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-ref-name.d.ts","sourceRoot":"","sources":["../../../../../src/components/Content/Schema/helpers/get-ref-name.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAChG,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uDAAuD,CAAA;AAE1F;;;;;;GAMG;AACH,eAAO,MAAM,UAAU,GAAI,QAAQ,aAAa,CAAC,YAAY,CAAC,
|
|
1
|
+
{"version":3,"file":"get-ref-name.d.ts","sourceRoot":"","sources":["../../../../../src/components/Content/Schema/helpers/get-ref-name.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAChG,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uDAAuD,CAAA;AAE1F;;;;;;GAMG;AACH,eAAO,MAAM,UAAU,GAAI,QAAQ,aAAa,CAAC,YAAY,CAAC,kBAiB7D,CAAA"}
|
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
import { REGEX as
|
|
2
|
-
const
|
|
3
|
-
|
|
4
|
-
if (!r)
|
|
1
|
+
import { REGEX as e } from "@scalar/helpers/regex/regex-helpers";
|
|
2
|
+
const u = (r) => {
|
|
3
|
+
if (!("$ref" in r))
|
|
5
4
|
return null;
|
|
6
|
-
const t = r
|
|
7
|
-
|
|
5
|
+
const t = r.$ref;
|
|
6
|
+
if (!t)
|
|
7
|
+
return null;
|
|
8
|
+
const n = t.match(e.REF_NAME);
|
|
9
|
+
return n ? n[1] : null;
|
|
8
10
|
};
|
|
9
11
|
export {
|
|
10
|
-
|
|
12
|
+
u as getRefName
|
|
11
13
|
};
|
|
@@ -72,7 +72,7 @@ const l = (e, f) => {
|
|
|
72
72
|
continue;
|
|
73
73
|
}
|
|
74
74
|
if (!e[r]) {
|
|
75
|
-
i.allOf ? e[r] = l(i) :
|
|
75
|
+
i.allOf ? e[r] = l(i) : O(i) && p(i.items)?.allOf ? e[r] = {
|
|
76
76
|
...i,
|
|
77
77
|
items: l(p(i.items))
|
|
78
78
|
} : e[r] = f[r];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema-name.d.ts","sourceRoot":"","sources":["../../../../../src/components/Content/Schema/helpers/schema-name.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAChG,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uDAAuD,CAAA;
|
|
1
|
+
{"version":3,"file":"schema-name.d.ts","sourceRoot":"","sources":["../../../../../src/components/Content/Schema/helpers/schema-name.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAChG,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uDAAuD,CAAA;AAK1F;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,GAAI,aAAa,YAAY,GAAG,aAAa,CAAC,YAAY,CAAC,KAAG,MAAM,GAAG,IAyBzG,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,mBAAmB,GAAI,MAAM,OAAO,CAAC,YAAY,EAAE;IAAE,IAAI,EAAE,GAAG,CAAA;CAAE,CAAC,CAAC,MAAM,CAAC,EAAE,WAAW,MAAM,KAAG,MACrD,CAAA;AAEvD;;;GAGG;AACH,eAAO,MAAM,YAAY,GAAI,OAAO,YAAY,EAAE,wBAAsB,KAAG,MAAM,GAAG,IA+CnF,CAAA"}
|
|
@@ -1,32 +1,33 @@
|
|
|
1
|
-
import { getResolvedRef as
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import { getResolvedRef as y } from "@scalar/workspace-store/helpers/get-resolved-ref";
|
|
2
|
+
import { isArraySchema as a } from "@scalar/workspace-store/schemas/v3.1/strict/type-guards";
|
|
3
|
+
import { getRefName as p } from "./get-ref-name.js";
|
|
4
|
+
const s = (t) => {
|
|
4
5
|
if (!t)
|
|
5
6
|
return null;
|
|
6
7
|
if ("$ref" in t) {
|
|
7
|
-
const e =
|
|
8
|
+
const e = p(t);
|
|
8
9
|
if (e)
|
|
9
10
|
return e;
|
|
10
11
|
}
|
|
11
|
-
const r =
|
|
12
|
+
const r = y(t);
|
|
12
13
|
return r.title ? r.title : r.name ? r.name : null;
|
|
13
|
-
}, o = (t, r) => `${t} ${r}${t === "array" ? "[]" : ""}`,
|
|
14
|
+
}, o = (t, r) => `${t} ${r}${t === "array" ? "[]" : ""}`, N = (t, r = !1) => {
|
|
14
15
|
if (!("type" in t) || r)
|
|
15
16
|
return null;
|
|
16
|
-
const e = t.type, i =
|
|
17
|
+
const e = t.type, i = s(t);
|
|
17
18
|
if (i && t.title)
|
|
18
19
|
return e === "array" ? `array ${i}[]` : i;
|
|
19
|
-
if (
|
|
20
|
-
const n =
|
|
21
|
-
if (
|
|
22
|
-
return o(e,
|
|
23
|
-
const m =
|
|
20
|
+
if (a(t) && t.items) {
|
|
21
|
+
const n = y(t.items), f = n.title;
|
|
22
|
+
if (f)
|
|
23
|
+
return o(e, f);
|
|
24
|
+
const m = s(t.items);
|
|
24
25
|
return m && "type" in n && m !== n.type ? o(e, m) : "type" in n ? o(e, Array.isArray(n.type) ? n.type.join(" | ") : n.type) : o(e, "object");
|
|
25
26
|
}
|
|
26
27
|
return i && i !== e ? i.startsWith("Array of ") ? `array ${i.slice(9)}[]` : i : null;
|
|
27
28
|
};
|
|
28
29
|
export {
|
|
29
30
|
o as formatTypeWithModel,
|
|
30
|
-
|
|
31
|
-
|
|
31
|
+
N as getModelName,
|
|
32
|
+
s as getModelNameFromSchema
|
|
32
33
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ClassicLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tags/ClassicLayout.vue"],"names":[],"mappings":"AAkDA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"ClassicLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tags/ClassicLayout.vue"],"names":[],"mappings":"AAkDA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4CAA4C,CAAA;AAS9E,KAAK,WAAW,GAAG;IACjB,GAAG,EAAE,YAAY,CAAA;CAClB,CAAC;AAqFF,QAAA,IAAI,QAAQ,IAAY,CAAE;AAC1B,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAwBhD,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 "./ClassicLayout.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-f4dae8d7"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
f as default
|
|
7
7
|
};
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import type { TraversedTag } from '@scalar/workspace-store/schemas/
|
|
1
|
+
import type { TraversedTag } from '@scalar/workspace-store/schemas/navigation';
|
|
2
2
|
type __VLS_Props = {
|
|
3
3
|
tag: TraversedTag;
|
|
4
4
|
moreThanOneTag: boolean;
|
|
5
|
+
isLoading: boolean;
|
|
6
|
+
onShowMore: ((id: string) => void) | undefined;
|
|
5
7
|
};
|
|
6
8
|
declare var __VLS_21: {};
|
|
7
9
|
type __VLS_Slots = {} & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ModernLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tags/ModernLayout.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ModernLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tags/ModernLayout.vue"],"names":[],"mappings":"AAqFA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4CAA4C,CAAA;AAW9E,KAAK,WAAW,GAAG;IACjB,GAAG,EAAE,YAAY,CAAA;IACjB,cAAc,EAAE,OAAO,CAAA;IACvB,SAAS,EAAE,OAAO,CAAA;IAClB,UAAU,EAAE,CAAC,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC,GAAG,SAAS,CAAA;CAC/C,CAAC;AAwHF,QAAA,IAAuB,QAAQ,IAAY,CAAE;AAC7C,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAgChD,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 "./ModernLayout.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-b59e6a08"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|
|
@@ -1,59 +1,63 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import { useNavState as
|
|
4
|
-
import
|
|
5
|
-
import { useSidebar as
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
const E = /* @__PURE__ */
|
|
1
|
+
import { defineComponent as p, ref as u, useId as y, computed as S, createBlock as i, openBlock as a, unref as o, withCtx as f, createVNode as C, createElementBlock as T, createCommentVNode as s, renderSlot as k, nextTick as b } from "vue";
|
|
2
|
+
import w from "../../ShowMoreButton.vue.js";
|
|
3
|
+
import { useNavState as B } from "../../../hooks/useNavState.js";
|
|
4
|
+
import L from "./TagSection.vue.js";
|
|
5
|
+
import { useSidebar as M } from "../../../v2/blocks/scalar-sidebar-block/hooks/useSidebar.js";
|
|
6
|
+
import v from "../../Section/SectionContainer.vue.js";
|
|
7
|
+
import I from "../../Lazy/Lazy.vue2.js";
|
|
8
|
+
const E = /* @__PURE__ */ p({
|
|
9
9
|
__name: "ModernLayout",
|
|
10
10
|
props: {
|
|
11
11
|
tag: {},
|
|
12
|
-
moreThanOneTag: { type: Boolean }
|
|
12
|
+
moreThanOneTag: { type: Boolean },
|
|
13
|
+
isLoading: { type: Boolean },
|
|
14
|
+
onShowMore: { type: Function }
|
|
13
15
|
},
|
|
14
|
-
setup(
|
|
15
|
-
const
|
|
16
|
-
() =>
|
|
16
|
+
setup(t) {
|
|
17
|
+
const m = u(), l = u(), d = y(), { collapsedSidebarItems: c } = M(), { hash: n } = B(), g = S(
|
|
18
|
+
() => t.moreThanOneTag || t.tag?.title !== "default" || t.tag?.description !== ""
|
|
17
19
|
);
|
|
18
|
-
async function
|
|
19
|
-
await
|
|
20
|
+
async function h() {
|
|
21
|
+
await b(), l.value?.querySelector("button")?.focus();
|
|
20
22
|
}
|
|
21
23
|
const r = (e) => !c[e];
|
|
22
|
-
return (e,
|
|
24
|
+
return (e, O) => (a(), i(o(v), {
|
|
23
25
|
ref_key: "sectionContainerRef",
|
|
24
|
-
ref:
|
|
25
|
-
"aria-labelledby":
|
|
26
|
+
ref: m,
|
|
27
|
+
"aria-labelledby": o(d),
|
|
26
28
|
class: "tag-section-container",
|
|
27
29
|
role: "region"
|
|
28
30
|
}, {
|
|
29
|
-
default:
|
|
30
|
-
|
|
31
|
+
default: f(() => [
|
|
32
|
+
C(o(I), {
|
|
31
33
|
id: `modern-tag-${e.tag.id}`,
|
|
32
|
-
isLazy: !!
|
|
34
|
+
isLazy: !!o(n) && o(n) !== e.tag.id && o(n).startsWith(e.tag.id)
|
|
33
35
|
}, {
|
|
34
|
-
default:
|
|
35
|
-
g.value ? (a(), i(
|
|
36
|
+
default: f(() => [
|
|
37
|
+
g.value ? (a(), i(L, {
|
|
36
38
|
key: 0,
|
|
37
|
-
headerId:
|
|
39
|
+
headerId: o(d),
|
|
38
40
|
isCollapsed: r(e.tag.id),
|
|
41
|
+
isLoading: e.isLoading,
|
|
39
42
|
tag: e.tag
|
|
40
|
-
}, null, 8, ["headerId", "isCollapsed", "tag"])) :
|
|
41
|
-
r(e.tag.id) && e.moreThanOneTag ? (a(), i(
|
|
43
|
+
}, null, 8, ["headerId", "isCollapsed", "isLoading", "tag"])) : s("", !0),
|
|
44
|
+
r(e.tag.id) && e.moreThanOneTag ? (a(), i(w, {
|
|
42
45
|
key: 1,
|
|
43
46
|
id: e.tag.id,
|
|
44
47
|
"aria-label": `Show all ${e.tag.title} endpoints`,
|
|
45
|
-
|
|
46
|
-
|
|
48
|
+
onShowMore: e.onShowMore,
|
|
49
|
+
onClick: h
|
|
50
|
+
}, null, 8, ["id", "aria-label", "onShowMore"])) : s("", !0)
|
|
47
51
|
]),
|
|
48
52
|
_: 1
|
|
49
53
|
}, 8, ["id", "isLazy"]),
|
|
50
|
-
r(e.tag.id) && e.moreThanOneTag ?
|
|
54
|
+
r(e.tag.id) && e.moreThanOneTag ? s("", !0) : (a(), T("div", {
|
|
51
55
|
key: 0,
|
|
52
56
|
ref_key: "contentsRef",
|
|
53
|
-
ref:
|
|
57
|
+
ref: l,
|
|
54
58
|
class: "contents"
|
|
55
59
|
}, [
|
|
56
|
-
|
|
60
|
+
k(e.$slots, "default", {}, void 0, !0)
|
|
57
61
|
], 512))
|
|
58
62
|
]),
|
|
59
63
|
_: 3
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import type { TraversedTag } from '@scalar/workspace-store/schemas/
|
|
1
|
+
import type { TraversedTag } from '@scalar/workspace-store/schemas/navigation';
|
|
2
2
|
type __VLS_Props = {
|
|
3
3
|
tag: TraversedTag;
|
|
4
4
|
layout: 'classic' | 'modern';
|
|
5
5
|
moreThanOneTag: boolean;
|
|
6
|
+
isLoading: boolean;
|
|
7
|
+
onShowMore: ((id: string) => void) | undefined;
|
|
6
8
|
};
|
|
7
9
|
declare var __VLS_5: {}, __VLS_11: {};
|
|
8
10
|
type __VLS_Slots = {} & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tag.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tags/Tag.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Tag.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tags/Tag.vue"],"names":[],"mappings":"AA6BA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4CAA4C,CAAA;AAK9E,KAAK,WAAW,GAAG;IACjB,GAAG,EAAE,YAAY,CAAA;IACjB,MAAM,EAAE,SAAS,GAAG,QAAQ,CAAA;IAC5B,cAAc,EAAE,OAAO,CAAA;IACvB,SAAS,EAAE,OAAO,CAAA;IAClB,UAAU,EAAE,CAAC,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC,GAAG,SAAS,CAAA;CAC/C,CAAC;AA0CF,QAAA,IAAI,OAAO,IAAU,EAAE,QAAQ,IAAY,CAAE;AAC7C,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAC5C;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAsBhD,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"}
|