@scalar/api-reference 1.32.7 → 1.32.8
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 +32 -0
- package/dist/browser/standalone.js +16286 -16092
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/Anchor/Anchor.vue2.js +2 -1
- package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
- package/dist/components/ApiReferenceLayout.vue.js +2 -2
- package/dist/components/ApiReferenceLayout.vue2.js +164 -176
- package/dist/components/Content/Content.vue.d.ts.map +1 -1
- package/dist/components/Content/Content.vue.js +2 -2
- package/dist/components/Content/Content.vue2.js +20 -20
- package/dist/components/Content/Models/Models.vue2.js +5 -4
- package/dist/components/Content/Models/ModelsAccordion.vue2.js +2 -1
- package/dist/components/Content/Schema/Schema.vue2.js +2 -1
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue2.js +14 -7
- package/dist/components/Content/Tag/OperationsList.vue.d.ts.map +1 -1
- package/dist/components/Content/Tag/OperationsList.vue.js +1 -1
- package/dist/components/Content/Tag/OperationsList.vue2.js +18 -22
- package/dist/components/Content/Tag/OperationsListItem.vue.d.ts.map +1 -1
- package/dist/components/Content/Tag/OperationsListItem.vue.js +2 -2
- package/dist/components/Content/Tag/OperationsListItem.vue2.js +33 -34
- package/dist/components/Content/Tag/Tag.vue.js +2 -1
- package/dist/components/Content/Tag/TagSection.vue.d.ts.map +1 -1
- package/dist/components/GettingStarted.vue2.js +8 -6
- package/dist/components/Section/SectionAccordion.vue.d.ts.map +1 -1
- package/dist/components/Section/SectionAccordion.vue.js +1 -1
- package/dist/components/Section/SectionAccordion.vue2.js +28 -29
- package/dist/components/Section/SectionContainerAccordion.vue.d.ts.map +1 -1
- package/dist/components/Section/SectionContainerAccordion.vue.js +2 -2
- package/dist/components/Section/SectionContainerAccordion.vue2.js +17 -18
- package/dist/features/Operation/Operation.vue.d.ts +6 -6
- package/dist/features/Operation/Operation.vue.d.ts.map +1 -1
- package/dist/features/Operation/Operation.vue.js +50 -49
- package/dist/features/Operation/components/ContentTypeSelect.vue.js +8 -7
- package/dist/features/Operation/components/callbacks/Callback.vue.d.ts +8 -6
- package/dist/features/Operation/components/callbacks/Callback.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/callbacks/Callback.vue.js +1 -1
- package/dist/features/Operation/components/callbacks/Callback.vue2.js +21 -28
- package/dist/features/Operation/components/callbacks/Callbacks.vue.d.ts +5 -3
- package/dist/features/Operation/components/callbacks/Callbacks.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/callbacks/Callbacks.vue.js +33 -18
- package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts +11 -12
- package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts.map +1 -1
- package/dist/features/Operation/layouts/ClassicLayout.vue.js +2 -2
- package/dist/features/Operation/layouts/ClassicLayout.vue2.js +168 -154
- package/dist/features/Operation/layouts/ModernLayout.vue.d.ts +12 -13
- package/dist/features/Operation/layouts/ModernLayout.vue.d.ts.map +1 -1
- package/dist/features/Operation/layouts/ModernLayout.vue.js +1 -1
- package/dist/features/Operation/layouts/ModernLayout.vue2.js +113 -117
- package/dist/features/Search/SearchButton.vue.js +2 -1
- package/dist/features/Search/SearchModal.vue.d.ts.map +1 -1
- package/dist/features/Search/SearchModal.vue.js +2 -2
- package/dist/features/Search/SearchModal.vue2.js +16 -16
- package/dist/features/api-client-modal/useApiClient.d.ts +5338 -5258
- package/dist/features/api-client-modal/useApiClient.d.ts.map +1 -1
- package/dist/features/download-link/DownloadLink.vue2.js +4 -2
- package/dist/{components/Card/CardTab.vue.d.ts → features/example-responses/ExampleResponseTab.vue.d.ts} +1 -1
- package/dist/features/example-responses/ExampleResponseTab.vue.d.ts.map +1 -0
- package/dist/features/example-responses/ExampleResponseTab.vue.js +7 -0
- package/dist/{components/Card/CardTab.vue2.js → features/example-responses/ExampleResponseTab.vue2.js} +6 -6
- package/dist/{components/Card/CardTabHeader.vue.d.ts → features/example-responses/ExampleResponseTabList.vue.d.ts} +3 -3
- package/dist/features/example-responses/ExampleResponseTabList.vue.d.ts.map +1 -0
- package/dist/features/example-responses/ExampleResponseTabList.vue.js +7 -0
- package/dist/{components/Card/CardTabHeader.vue2.js → features/example-responses/ExampleResponseTabList.vue2.js} +9 -9
- package/dist/features/example-responses/ExampleResponses.vue.d.ts.map +1 -1
- package/dist/features/example-responses/ExampleResponses.vue.js +1 -1
- package/dist/features/example-responses/ExampleResponses.vue2.js +89 -96
- package/dist/features/test-request-button/TestRequestButton.vue.d.ts +3 -2
- package/dist/features/test-request-button/TestRequestButton.vue.d.ts.map +1 -1
- package/dist/features/test-request-button/TestRequestButton.vue.js +2 -2
- package/dist/features/test-request-button/TestRequestButton.vue2.js +26 -24
- package/dist/helpers/convert-security-scheme.js +23 -0
- package/dist/index.d.ts +0 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +15 -29
- package/dist/style.css +1 -1
- package/dist/v2/ApiReferenceWorkspace.vue.d.ts +3 -1
- package/dist/v2/ApiReferenceWorkspace.vue.d.ts.map +1 -1
- package/dist/v2/ApiReferenceWorkspace.vue.js +113 -86
- package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue.js +4 -0
- package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue2.js +64 -0
- package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue.js +7 -0
- package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue2.js +212 -0
- package/dist/v2/blocks/scalar-request-example-block/helpers/find-client.js +20 -3
- package/dist/v2/blocks/scalar-request-example-block/helpers/generate-client-options.js +35 -0
- package/dist/v2/blocks/scalar-request-example-block/helpers/generate-code-snippet.js +29 -0
- package/dist/v2/blocks/scalar-request-example-block/helpers/get-secrets.js +10 -0
- package/dist/v2/blocks/scalar-request-example-block/index.d.ts +2 -2
- package/dist/v2/events/definitions.js +7 -0
- package/dist/v2/events/index.d.ts +1 -1
- package/dist/v2/events/listeners.d.ts +1 -1
- package/dist/v2/hooks/useStore.js +14 -0
- package/package.json +26 -26
- package/dist/blocks/constants.js +0 -6
- package/dist/blocks/helpers/getPointer.js +0 -12
- package/dist/blocks/hooks/useBlockProps.d.ts +0 -31
- package/dist/blocks/hooks/useBlockProps.d.ts.map +0 -1
- package/dist/blocks/hooks/useBlockProps.js +0 -24
- package/dist/components/Card/Card.vue.d.ts +0 -18
- package/dist/components/Card/Card.vue.d.ts.map +0 -1
- package/dist/components/Card/Card.vue.js +0 -13
- package/dist/components/Card/CardContent.vue.d.ts +0 -19
- package/dist/components/Card/CardContent.vue.d.ts.map +0 -1
- package/dist/components/Card/CardContent.vue.js +0 -7
- package/dist/components/Card/CardContent.vue2.js +0 -27
- package/dist/components/Card/CardFooter.vue.d.ts +0 -19
- package/dist/components/Card/CardFooter.vue.d.ts.map +0 -1
- package/dist/components/Card/CardFooter.vue.js +0 -7
- package/dist/components/Card/CardFooter.vue2.js +0 -24
- package/dist/components/Card/CardHeader.vue.d.ts +0 -20
- package/dist/components/Card/CardHeader.vue.d.ts.map +0 -1
- package/dist/components/Card/CardHeader.vue.js +0 -7
- package/dist/components/Card/CardHeader.vue2.js +0 -31
- package/dist/components/Card/CardTab.vue.d.ts.map +0 -1
- package/dist/components/Card/CardTab.vue.js +0 -7
- package/dist/components/Card/CardTabHeader.vue.d.ts.map +0 -1
- package/dist/components/Card/CardTabHeader.vue.js +0 -7
- package/dist/components/Card/index.d.ts +0 -7
- package/dist/components/Card/index.d.ts.map +0 -1
- package/dist/components/Card/types.d.ts +0 -8
- package/dist/components/Card/types.d.ts.map +0 -1
- package/dist/features/example-request/ExamplePicker.vue.d.ts +0 -13
- package/dist/features/example-request/ExamplePicker.vue.d.ts.map +0 -1
- package/dist/features/example-request/ExamplePicker.vue.js +0 -7
- package/dist/features/example-request/ExamplePicker.vue2.js +0 -56
- package/dist/features/example-request/ExampleRequest.vue.d.ts +0 -79
- package/dist/features/example-request/ExampleRequest.vue.d.ts.map +0 -1
- package/dist/features/example-request/ExampleRequest.vue.js +0 -7
- package/dist/features/example-request/ExampleRequest.vue2.js +0 -361
- package/dist/features/example-request/TextSelect.vue.d.ts +0 -34
- package/dist/features/example-request/TextSelect.vue.d.ts.map +0 -1
- package/dist/features/example-request/TextSelect.vue.js +0 -48
- package/dist/features/example-request/TextSelect.vue3.js +0 -5
- package/dist/features/example-request/index.d.ts +0 -3
- package/dist/features/example-request/index.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApiReferenceLayout.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApiReferenceLayout.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ApiReferenceLayout.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApiReferenceLayout.vue"],"names":[],"mappings":"AA+sBA,OAAO,EAGL,KAAK,OAAO,EACb,MAAM,gBAAgB,CAAA;AAiCvB,OAAO,KAAK,EACV,oBAAoB,EAEpB,kBAAkB,EACnB,MAAM,SAAS,CAAA;AAoRhB,iBAAS,cAAc;WAoYT,OAAO,IAA6B;;wBApmBV,kBAAkB,KAAK,GAAG;wBAA1B,kBAAkB,KAAK,GAAG;wBAA1B,kBAAkB,KAAK,GAAG;iCAA1B,kBAAkB,KAAK,GAAG;+BAA1B,kBAAkB,KAAK,GAAG;iCAA1B,kBAAkB,KAAK,GAAG;+BAA1B,kBAAkB,KAAK,GAAG;;6BACrC,GAAG;;wBADQ,kBAAkB,KAAK,GAAG;wBAA1B,kBAAkB,KAAK,GAAG;wBAA1B,kBAAkB,KAAK,GAAG;iCAA1B,kBAAkB,KAAK,GAAG;+BAA1B,kBAAkB,KAAK,GAAG;iCAA1B,kBAAkB,KAAK,GAAG;+BAA1B,kBAAkB,KAAK,GAAG;;6BACrC,GAAG;;;;;;EAwmB/B;AAiCD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;YAjrBqB,OAAO;eAAS,MAAM;;;;;;;;YAAtB,OAAO;eAAS,MAAM;;;;;;kFAwrB9D,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -4,7 +4,7 @@ import o from "./ApiReferenceLayout.vue2.js";
|
|
|
4
4
|
/* empty css */
|
|
5
5
|
/* empty css */
|
|
6
6
|
import t from "../_virtual/_plugin-vue_export-helper.js";
|
|
7
|
-
const
|
|
7
|
+
const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-b90254d8"]]);
|
|
8
8
|
export {
|
|
9
|
-
|
|
9
|
+
f as default
|
|
10
10
|
};
|
|
@@ -1,43 +1,42 @@
|
|
|
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 { apiReferenceConfigurationSchema as
|
|
10
|
-
import { useBreakpoints as
|
|
11
|
-
import { useToasts as
|
|
12
|
-
import { useMediaQuery as
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import { parse as
|
|
17
|
-
import { CONFIGURATION_SYMBOL as
|
|
18
|
-
import { useNavState as
|
|
19
|
-
import { downloadEventBus as
|
|
20
|
-
import { createEmptySpecification as
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import
|
|
27
|
-
import
|
|
28
|
-
import
|
|
29
|
-
import
|
|
30
|
-
|
|
31
|
-
const st = ["innerHTML"], dt = { class: "references-header" }, ut = ["aria-label"], ct = { class: "references-navigation-list" }, mt = { key: 0 }, ft = {
|
|
1
|
+
import { defineComponent as fe, computed as T, provide as S, ref as D, onBeforeMount as ve, onMounted as Y, watch as O, toValue as K, onUnmounted as pe, useId as ge, createElementBlock as f, openBlock as a, Fragment as z, createElementVNode as p, createVNode as v, normalizeStyle as he, normalizeClass as Se, unref as r, createCommentVNode as l, withDirectives as be, createBlock as b, renderSlot as d, normalizeProps as g, guardReactiveProps as h, withCtx as n, vShow as ye, createSlots as we } from "vue";
|
|
2
|
+
import { provideUseId as ke } from "@headlessui/vue";
|
|
3
|
+
import { OpenApiClientButton as $e } from "@scalar/api-client/components";
|
|
4
|
+
import { LAYOUT_SYMBOL as Me } from "@scalar/api-client/hooks";
|
|
5
|
+
import { WORKSPACE_SYMBOL as Te, ACTIVE_ENTITIES_SYMBOL as De } from "@scalar/api-client/store";
|
|
6
|
+
import { addScalarClassesToHeadless as Ce, ScalarErrorBoundary as Ee, ScalarSidebarFooter as Oe, ScalarColorModeToggleButton as Ie, ScalarColorModeToggleIcon as Be } from "@scalar/components";
|
|
7
|
+
import { sleep as Re } from "@scalar/helpers/testing/sleep";
|
|
8
|
+
import { hasObtrusiveScrollbars as Le, getThemeStyles as _e } from "@scalar/themes";
|
|
9
|
+
import { apiReferenceConfigurationSchema as Ae } from "@scalar/types/api-reference";
|
|
10
|
+
import { useBreakpoints as Pe } from "@scalar/use-hooks/useBreakpoints";
|
|
11
|
+
import { useToasts as He, ScalarToasts as Fe } from "@scalar/use-toasts";
|
|
12
|
+
import { useMediaQuery as Ne, useResizeObserver as Ve, useDebounceFn as Ue } from "@vueuse/core";
|
|
13
|
+
import Ye from "./ClassicHeader.vue.js";
|
|
14
|
+
import Ke from "./GettingStarted.vue.js";
|
|
15
|
+
import ze from "./MobileHeader.vue.js";
|
|
16
|
+
import { parse as Ge } from "../helpers/parse.js";
|
|
17
|
+
import { CONFIGURATION_SYMBOL as Qe } from "../hooks/useConfig.js";
|
|
18
|
+
import { useNavState as We } from "../hooks/useNavState.js";
|
|
19
|
+
import { downloadEventBus as G, downloadDocument as je } from "../libs/download.js";
|
|
20
|
+
import { createEmptySpecification as qe } from "../libs/openapi.js";
|
|
21
|
+
import { useDocumentSource as Je } from "../features/document-source/hooks/useDocumentSource.js";
|
|
22
|
+
import { OPENAPI_VERSION_SYMBOL as Xe } from "../features/download-link/openapi-version-symbol.js";
|
|
23
|
+
import { useSidebar as Ze } from "../features/sidebar/hooks/useSidebar.js";
|
|
24
|
+
import { PLUGIN_MANAGER_SYMBOL as xe } from "../plugins/hooks/usePluginManager.js";
|
|
25
|
+
import { createPluginManager as et } from "../plugins/plugin-manager.js";
|
|
26
|
+
import tt from "../features/sidebar/components/Sidebar.vue.js";
|
|
27
|
+
import Q from "../features/Search/SearchButton.vue.js";
|
|
28
|
+
import ot from "./Content/Content.vue.js";
|
|
29
|
+
import rt from "../features/api-client-modal/ApiClientModal.vue.js";
|
|
30
|
+
const at = ["innerHTML"], st = { class: "references-header" }, lt = ["aria-label"], nt = { class: "references-navigation-list" }, it = { key: 0 }, dt = {
|
|
32
31
|
key: 1,
|
|
33
32
|
class: "scalar-api-references-standalone-search"
|
|
34
|
-
},
|
|
33
|
+
}, ut = { key: 1 }, ct = { class: "references-editor" }, mt = { class: "references-editor-textarea" }, ft = ["aria-label"], vt = {
|
|
35
34
|
key: 0,
|
|
36
35
|
class: "w-64 *:!p-0 empty:hidden"
|
|
37
|
-
},
|
|
36
|
+
}, pt = {
|
|
38
37
|
key: 0,
|
|
39
38
|
class: "references-footer"
|
|
40
|
-
},
|
|
39
|
+
}, Gt = /* @__PURE__ */ fe({
|
|
41
40
|
inheritAttrs: !1,
|
|
42
41
|
__name: "ApiReferenceLayout",
|
|
43
42
|
props: {
|
|
@@ -49,39 +48,39 @@ const st = ["innerHTML"], dt = { class: "references-header" }, ut = ["aria-label
|
|
|
49
48
|
rawSpec: {}
|
|
50
49
|
},
|
|
51
50
|
emits: ["changeTheme", "updateContent", "loadSwaggerFile", "linkSwaggerFile", "toggleDarkMode"],
|
|
52
|
-
setup(
|
|
53
|
-
const t =
|
|
54
|
-
() =>
|
|
55
|
-
), { initializeToasts:
|
|
56
|
-
|
|
51
|
+
setup(C) {
|
|
52
|
+
const t = T(
|
|
53
|
+
() => Ae.parse(C.configuration)
|
|
54
|
+
), { initializeToasts: W, toast: j } = He();
|
|
55
|
+
W((e) => j(e));
|
|
57
56
|
const {
|
|
58
|
-
originalDocument:
|
|
59
|
-
originalOpenApiVersion:
|
|
57
|
+
originalDocument: q,
|
|
58
|
+
originalOpenApiVersion: J,
|
|
60
59
|
dereferencedDocument: u,
|
|
61
|
-
workspaceStore:
|
|
62
|
-
activeEntitiesStore:
|
|
63
|
-
} =
|
|
60
|
+
workspaceStore: X,
|
|
61
|
+
activeEntitiesStore: Z
|
|
62
|
+
} = Je({
|
|
64
63
|
configuration: t,
|
|
65
|
-
dereferencedDocument:
|
|
66
|
-
originalDocument:
|
|
64
|
+
dereferencedDocument: C.dereferencedDocument,
|
|
65
|
+
originalDocument: C.originalDocument
|
|
67
66
|
});
|
|
68
|
-
S(
|
|
69
|
-
const
|
|
70
|
-
|
|
71
|
-
|
|
67
|
+
S(Xe, J), S(Te, X), S(De, Z);
|
|
68
|
+
const x = Ne("(min-width: 1150px)"), ee = D("100dvh"), y = D(null);
|
|
69
|
+
Ve(y, (e) => {
|
|
70
|
+
ee.value = e[0].contentRect.height + "px";
|
|
72
71
|
});
|
|
73
|
-
const
|
|
72
|
+
const te = T(Le), R = We(t), { isSidebarOpen: I, setCollapsedSidebarItem: L, scrollToOperation: oe, items: _ } = Ze(u, {
|
|
74
73
|
...R,
|
|
75
74
|
config: t
|
|
76
75
|
}), {
|
|
77
|
-
getReferenceId:
|
|
78
|
-
getPathRoutingId:
|
|
79
|
-
getSectionId:
|
|
76
|
+
getReferenceId: re,
|
|
77
|
+
getPathRoutingId: ae,
|
|
78
|
+
getSectionId: se,
|
|
80
79
|
getTagId: le,
|
|
81
|
-
hash:
|
|
82
|
-
isIntersectionEnabled:
|
|
83
|
-
updateHash:
|
|
84
|
-
replaceUrlState:
|
|
80
|
+
hash: E,
|
|
81
|
+
isIntersectionEnabled: A,
|
|
82
|
+
updateHash: P,
|
|
83
|
+
replaceUrlState: ne
|
|
85
84
|
} = R;
|
|
86
85
|
if (t.value.redirect && typeof window < "u") {
|
|
87
86
|
const e = t.value.redirect(
|
|
@@ -89,107 +88,96 @@ const st = ["innerHTML"], dt = { class: "references-header" }, ut = ["aria-label
|
|
|
89
88
|
);
|
|
90
89
|
e && history.replaceState({}, "", e);
|
|
91
90
|
}
|
|
92
|
-
|
|
93
|
-
|
|
91
|
+
ve(() => {
|
|
92
|
+
P(), Ce();
|
|
94
93
|
});
|
|
95
|
-
const
|
|
94
|
+
const H = async (e) => {
|
|
96
95
|
var o;
|
|
97
|
-
|
|
98
|
-
}, F =
|
|
99
|
-
|
|
100
|
-
var
|
|
96
|
+
A.value = !1, P(), e ? oe(e) : (o = y.value) == null || o.scrollTo(0, 0), await Re(100), A.value = !0;
|
|
97
|
+
}, F = D(0);
|
|
98
|
+
Y(() => {
|
|
99
|
+
var s, k, $;
|
|
101
100
|
history.scrollRestoration = "manual";
|
|
102
|
-
const e = (k = (
|
|
101
|
+
const e = (k = (s = y.value) == null ? void 0 : s.parentElement) == null ? void 0 : k.getBoundingClientRect(), o = ($ = y.value) == null ? void 0 : $.getBoundingClientRect();
|
|
103
102
|
if (e && o) {
|
|
104
|
-
const
|
|
105
|
-
F.value =
|
|
103
|
+
const M = o.top - e.top;
|
|
104
|
+
F.value = M < 2 ? 0 : M;
|
|
106
105
|
}
|
|
107
106
|
window.onhashchange = () => {
|
|
108
|
-
|
|
109
|
-
}, window.onpopstate = () => t.value.pathRouting &&
|
|
107
|
+
H(re());
|
|
108
|
+
}, window.onpopstate = () => t.value.pathRouting && H(ae(window.location.pathname)), window.addEventListener("scroll", N, { passive: !0 });
|
|
110
109
|
});
|
|
111
|
-
const
|
|
112
|
-
() =>
|
|
113
|
-
), N =
|
|
114
|
-
window.scrollY < 50 &&
|
|
115
|
-
}),
|
|
116
|
-
|
|
110
|
+
const ie = T(
|
|
111
|
+
() => x.value || !t.value.isEditable
|
|
112
|
+
), N = Ue(() => {
|
|
113
|
+
window.scrollY < 50 && ne("");
|
|
114
|
+
}), de = D(!1);
|
|
115
|
+
O(u, (e) => {
|
|
117
116
|
var o;
|
|
118
|
-
if (
|
|
119
|
-
const
|
|
120
|
-
|
|
117
|
+
if (E.value) {
|
|
118
|
+
const s = se(E.value);
|
|
119
|
+
s && L(s, !0);
|
|
121
120
|
} else {
|
|
122
|
-
const
|
|
123
|
-
|
|
121
|
+
const s = (o = e.tags) == null ? void 0 : o[0];
|
|
122
|
+
s && L(le(s), !0);
|
|
124
123
|
}
|
|
125
|
-
|
|
124
|
+
de.value = !0;
|
|
126
125
|
});
|
|
127
|
-
const w =
|
|
128
|
-
|
|
126
|
+
const w = D(qe());
|
|
127
|
+
O(
|
|
129
128
|
u,
|
|
130
129
|
async (e) => {
|
|
131
130
|
if (!e)
|
|
132
131
|
return;
|
|
133
|
-
const o = await
|
|
132
|
+
const o = await Ge(e, _.value.entries);
|
|
134
133
|
w.value = o;
|
|
135
134
|
},
|
|
136
135
|
{ immediate: !0 }
|
|
137
136
|
);
|
|
138
|
-
const c =
|
|
137
|
+
const c = T(() => {
|
|
139
138
|
var e;
|
|
140
139
|
return {
|
|
141
140
|
spec: w.value,
|
|
142
|
-
breadcrumb: ((e =
|
|
141
|
+
breadcrumb: ((e = _.value) == null ? void 0 : e.titles.get(E.value)) ?? ""
|
|
143
142
|
};
|
|
144
143
|
});
|
|
145
|
-
|
|
146
|
-
() =>
|
|
147
|
-
|
|
148
|
-
|
|
144
|
+
Y(
|
|
145
|
+
() => G.on(({ filename: e, format: o }) => {
|
|
146
|
+
je(
|
|
147
|
+
K(q) || K(C.rawSpec) || "",
|
|
149
148
|
e,
|
|
150
149
|
o
|
|
151
150
|
);
|
|
152
151
|
})
|
|
153
|
-
),
|
|
154
|
-
window.removeEventListener("scroll", N),
|
|
155
|
-
}),
|
|
156
|
-
|
|
157
|
-
|
|
152
|
+
), pe(() => {
|
|
153
|
+
window.removeEventListener("scroll", N), G.reset();
|
|
154
|
+
}), ke(() => ge()), S(Me, "modal"), S(Qe, t), S(
|
|
155
|
+
xe,
|
|
156
|
+
et({
|
|
158
157
|
plugins: t.value.plugins
|
|
159
158
|
})
|
|
160
159
|
);
|
|
161
|
-
|
|
162
|
-
D(
|
|
163
|
-
() => t.value[e],
|
|
164
|
-
(a) => {
|
|
165
|
-
typeof a < "u" && o(a);
|
|
166
|
-
},
|
|
167
|
-
{ immediate: !0 }
|
|
168
|
-
);
|
|
169
|
-
}
|
|
170
|
-
const { setExcludedClients: ce, setDefaultHttpClient: me } = xe();
|
|
171
|
-
V("defaultHttpClient", me), V("hiddenClients", ce);
|
|
172
|
-
const fe = M(
|
|
160
|
+
const ue = T(
|
|
173
161
|
() => `<style>
|
|
174
|
-
${
|
|
162
|
+
${_e(t.value.theme, {
|
|
175
163
|
fonts: t.value.withDefaultFonts
|
|
176
164
|
})}</style>`
|
|
177
|
-
), { mediaQueries:
|
|
178
|
-
return
|
|
165
|
+
), { mediaQueries: ce } = Pe(), me = !1;
|
|
166
|
+
return O(ce.lg, (e, o) => {
|
|
179
167
|
o && !e && (I.value = !1);
|
|
180
|
-
}),
|
|
168
|
+
}), O(E, (e, o) => {
|
|
181
169
|
e && e !== o && (I.value = !1);
|
|
182
170
|
}), (e, o) => {
|
|
183
|
-
var
|
|
184
|
-
return
|
|
185
|
-
p("div", { innerHTML:
|
|
171
|
+
var s, k, $, M, V;
|
|
172
|
+
return a(), f(z, null, [
|
|
173
|
+
p("div", { innerHTML: ue.value }, null, 8, at),
|
|
186
174
|
p("div", {
|
|
187
175
|
ref_key: "documentEl",
|
|
188
176
|
ref: y,
|
|
189
|
-
class:
|
|
177
|
+
class: Se(["scalar-app scalar-api-reference references-layout", [
|
|
190
178
|
{
|
|
191
179
|
"scalar-api-references-standalone-mobile": t.value.showSidebar ?? !0,
|
|
192
|
-
"scalar-scrollbars-obtrusive":
|
|
180
|
+
"scalar-scrollbars-obtrusive": te.value,
|
|
193
181
|
"references-editable": t.value.isEditable,
|
|
194
182
|
"references-sidebar": t.value.showSidebar,
|
|
195
183
|
"references-sidebar-mobile-open": r(I),
|
|
@@ -197,62 +185,62 @@ const st = ["innerHTML"], dt = { class: "references-header" }, ut = ["aria-label
|
|
|
197
185
|
},
|
|
198
186
|
e.$attrs.class
|
|
199
187
|
]]),
|
|
200
|
-
style:
|
|
188
|
+
style: he({
|
|
201
189
|
"--scalar-y-offset": `var(--scalar-custom-header-height, ${F.value}px)`
|
|
202
190
|
})
|
|
203
191
|
}, [
|
|
204
|
-
p("div",
|
|
205
|
-
t.value.layout === "modern" && (t.value.showSidebar ?? !0) ? (
|
|
192
|
+
p("div", st, [
|
|
193
|
+
t.value.layout === "modern" && (t.value.showSidebar ?? !0) ? (a(), b(ze, {
|
|
206
194
|
key: 0,
|
|
207
195
|
breadcrumb: c.value.breadcrumb
|
|
208
|
-
}, null, 8, ["breadcrumb"])) :
|
|
196
|
+
}, null, 8, ["breadcrumb"])) : l("", !0),
|
|
209
197
|
d(e.$slots, "header", g(h(c.value)), void 0, !0)
|
|
210
198
|
]),
|
|
211
|
-
t.value.showSidebar ? (
|
|
199
|
+
t.value.showSidebar ? (a(), f("aside", {
|
|
212
200
|
key: 0,
|
|
213
|
-
"aria-label": `Sidebar for ${(k = (
|
|
201
|
+
"aria-label": `Sidebar for ${(k = (s = r(u)) == null ? void 0 : s.info) == null ? void 0 : k.title}`,
|
|
214
202
|
class: "references-navigation t-doc__sidebar"
|
|
215
203
|
}, [
|
|
216
|
-
p("div",
|
|
217
|
-
v(r(
|
|
218
|
-
default:
|
|
219
|
-
var
|
|
204
|
+
p("div", nt, [
|
|
205
|
+
v(r(Ee), null, {
|
|
206
|
+
default: n(() => {
|
|
207
|
+
var i, m;
|
|
220
208
|
return [
|
|
221
|
-
v(r(
|
|
222
|
-
title: ((m = (
|
|
209
|
+
v(r(tt), {
|
|
210
|
+
title: ((m = (i = r(u)) == null ? void 0 : i.info) == null ? void 0 : m.title) ?? "The OpenAPI Schema"
|
|
223
211
|
}, {
|
|
224
|
-
"sidebar-start":
|
|
225
|
-
var B,
|
|
212
|
+
"sidebar-start": n(() => {
|
|
213
|
+
var B, U;
|
|
226
214
|
return [
|
|
227
|
-
e.$slots["document-selector"] ? (
|
|
215
|
+
e.$slots["document-selector"] ? (a(), f("div", it, [
|
|
228
216
|
d(e.$slots, "document-selector", {}, void 0, !0)
|
|
229
|
-
])) :
|
|
230
|
-
t.value.hideSearch ?
|
|
231
|
-
v(r(
|
|
217
|
+
])) : l("", !0),
|
|
218
|
+
t.value.hideSearch ? l("", !0) : (a(), f("div", dt, [
|
|
219
|
+
v(r(Q), {
|
|
232
220
|
searchHotKey: (B = t.value) == null ? void 0 : B.searchHotKey,
|
|
233
|
-
hideModels: (
|
|
221
|
+
hideModels: (U = t.value) == null ? void 0 : U.hideModels,
|
|
234
222
|
spec: w.value
|
|
235
223
|
}, null, 8, ["searchHotKey", "hideModels", "spec"])
|
|
236
224
|
])),
|
|
237
225
|
d(e.$slots, "sidebar-start", g(h(c.value)), void 0, !0)
|
|
238
226
|
];
|
|
239
227
|
}),
|
|
240
|
-
"sidebar-end":
|
|
228
|
+
"sidebar-end": n(() => [
|
|
241
229
|
d(e.$slots, "sidebar-end", g(h(c.value)), () => [
|
|
242
|
-
v(r(
|
|
243
|
-
toggle:
|
|
244
|
-
t.value.hideDarkModeToggle ? (
|
|
230
|
+
v(r(Oe), { class: "darklight-reference" }, {
|
|
231
|
+
toggle: n(() => [
|
|
232
|
+
t.value.hideDarkModeToggle ? (a(), f("span", ut)) : (a(), b(r(Ie), {
|
|
245
233
|
key: 0,
|
|
246
234
|
modelValue: e.isDark,
|
|
247
235
|
"onUpdate:modelValue": o[0] || (o[0] = (B) => e.$emit("toggleDarkMode"))
|
|
248
236
|
}, null, 8, ["modelValue"]))
|
|
249
237
|
]),
|
|
250
|
-
default:
|
|
251
|
-
t.value.hideClientButton ?
|
|
238
|
+
default: n(() => [
|
|
239
|
+
t.value.hideClientButton ? l("", !0) : (a(), b(r($e), {
|
|
252
240
|
key: 0,
|
|
253
241
|
buttonSource: "sidebar",
|
|
254
242
|
integration: t.value._integration,
|
|
255
|
-
isDevelopment:
|
|
243
|
+
isDevelopment: me,
|
|
256
244
|
url: t.value.url
|
|
257
245
|
}, null, 8, ["integration", "url"]))
|
|
258
246
|
]),
|
|
@@ -267,68 +255,68 @@ const st = ["innerHTML"], dt = { class: "references-header" }, ut = ["aria-label
|
|
|
267
255
|
_: 3
|
|
268
256
|
})
|
|
269
257
|
])
|
|
270
|
-
], 8,
|
|
271
|
-
|
|
272
|
-
p("div",
|
|
258
|
+
], 8, lt)) : l("", !0),
|
|
259
|
+
be(p("div", ct, [
|
|
260
|
+
p("div", mt, [
|
|
273
261
|
d(e.$slots, "editor", g(h(c.value)), void 0, !0)
|
|
274
262
|
])
|
|
275
263
|
], 512), [
|
|
276
|
-
[
|
|
264
|
+
[ye, t.value.isEditable]
|
|
277
265
|
]),
|
|
278
|
-
|
|
266
|
+
ie.value ? (a(), f(z, { key: 1 }, [
|
|
279
267
|
p("main", {
|
|
280
|
-
"aria-label": `Open API Documentation for ${(
|
|
268
|
+
"aria-label": `Open API Documentation for ${(M = ($ = r(u)) == null ? void 0 : $.info) == null ? void 0 : M.title}`,
|
|
281
269
|
class: "references-rendered"
|
|
282
270
|
}, [
|
|
283
|
-
v(r(
|
|
271
|
+
v(r(ot), {
|
|
284
272
|
layout: t.value.layout,
|
|
285
273
|
document: r(u),
|
|
286
274
|
parsedSpec: w.value
|
|
287
|
-
},
|
|
288
|
-
start:
|
|
275
|
+
}, we({
|
|
276
|
+
start: n(() => [
|
|
289
277
|
d(e.$slots, "content-start", g(h(c.value)), () => [
|
|
290
|
-
t.value.layout === "classic" ? (
|
|
291
|
-
"dark-mode-toggle":
|
|
292
|
-
t.value.hideDarkModeToggle ?
|
|
278
|
+
t.value.layout === "classic" ? (a(), b(Ye, { key: 0 }, {
|
|
279
|
+
"dark-mode-toggle": n(() => [
|
|
280
|
+
t.value.hideDarkModeToggle ? l("", !0) : (a(), b(r(Be), {
|
|
293
281
|
key: 0,
|
|
294
282
|
class: "text-c-2 hover:text-c-1",
|
|
295
283
|
mode: e.isDark ? "dark" : "light",
|
|
296
284
|
style: { transform: "scale(1.4)" },
|
|
297
285
|
variant: "icon",
|
|
298
|
-
onClick: o[1] || (o[1] = (
|
|
286
|
+
onClick: o[1] || (o[1] = (i) => e.$emit("toggleDarkMode"))
|
|
299
287
|
}, null, 8, ["mode"]))
|
|
300
288
|
]),
|
|
301
|
-
default:
|
|
302
|
-
var
|
|
289
|
+
default: n(() => {
|
|
290
|
+
var i;
|
|
303
291
|
return [
|
|
304
|
-
e.$slots["document-selector"] ? (
|
|
292
|
+
e.$slots["document-selector"] ? (a(), f("div", vt, [
|
|
305
293
|
d(e.$slots, "document-selector", {}, void 0, !0)
|
|
306
|
-
])) :
|
|
307
|
-
t.value.hideSearch ?
|
|
294
|
+
])) : l("", !0),
|
|
295
|
+
t.value.hideSearch ? l("", !0) : (a(), b(r(Q), {
|
|
308
296
|
key: 1,
|
|
309
297
|
class: "t-doc__sidebar max-w-64",
|
|
310
298
|
searchHotKey: t.value.searchHotKey,
|
|
311
|
-
hideModels: (
|
|
299
|
+
hideModels: (i = t.value) == null ? void 0 : i.hideModels,
|
|
312
300
|
spec: w.value
|
|
313
301
|
}, null, 8, ["searchHotKey", "hideModels", "spec"]))
|
|
314
302
|
];
|
|
315
303
|
}),
|
|
316
304
|
_: 3
|
|
317
|
-
})) :
|
|
305
|
+
})) : l("", !0)
|
|
318
306
|
], !0)
|
|
319
307
|
]),
|
|
320
|
-
end:
|
|
308
|
+
end: n(() => [
|
|
321
309
|
d(e.$slots, "content-end", g(h(c.value)), void 0, !0)
|
|
322
310
|
]),
|
|
323
311
|
_: 2
|
|
324
312
|
}, [
|
|
325
|
-
(
|
|
313
|
+
(V = t.value) != null && V.isEditable ? {
|
|
326
314
|
name: "empty-state",
|
|
327
|
-
fn:
|
|
328
|
-
var
|
|
315
|
+
fn: n(() => {
|
|
316
|
+
var i;
|
|
329
317
|
return [
|
|
330
|
-
v(
|
|
331
|
-
theme: ((
|
|
318
|
+
v(Ke, {
|
|
319
|
+
theme: ((i = t.value) == null ? void 0 : i.theme) || "default",
|
|
332
320
|
onChangeTheme: o[2] || (o[2] = (m) => e.$emit("changeTheme", m)),
|
|
333
321
|
onLinkSwaggerFile: o[3] || (o[3] = (m) => e.$emit("linkSwaggerFile")),
|
|
334
322
|
onLoadSwaggerFile: o[4] || (o[4] = (m) => e.$emit("loadSwaggerFile")),
|
|
@@ -339,21 +327,21 @@ const st = ["innerHTML"], dt = { class: "references-header" }, ut = ["aria-label
|
|
|
339
327
|
key: "0"
|
|
340
328
|
} : void 0
|
|
341
329
|
]), 1032, ["layout", "document", "parsedSpec"])
|
|
342
|
-
], 8,
|
|
343
|
-
e.$slots.footer ? (
|
|
330
|
+
], 8, ft),
|
|
331
|
+
e.$slots.footer ? (a(), f("div", pt, [
|
|
344
332
|
d(e.$slots, "footer", g(h(c.value)), void 0, !0)
|
|
345
|
-
])) :
|
|
346
|
-
], 64)) :
|
|
347
|
-
v(r(
|
|
333
|
+
])) : l("", !0)
|
|
334
|
+
], 64)) : l("", !0),
|
|
335
|
+
v(r(rt), {
|
|
348
336
|
configuration: t.value,
|
|
349
337
|
dereferencedDocument: r(u)
|
|
350
338
|
}, null, 8, ["configuration", "dereferencedDocument"])
|
|
351
339
|
], 6),
|
|
352
|
-
v(r(
|
|
340
|
+
v(r(Fe))
|
|
353
341
|
], 64);
|
|
354
342
|
};
|
|
355
343
|
}
|
|
356
344
|
});
|
|
357
345
|
export {
|
|
358
|
-
|
|
346
|
+
Gt as default
|
|
359
347
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Content.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Content/Content.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Content.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Content/Content.vue"],"names":[],"mappings":"AA0RA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACxD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAchD,KAAK,WAAW,GAAG;IACf,QAAQ,EAAE,WAAW,CAAC,QAAQ,CAAA;IAC9B,UAAU,EAAE,IAAI,CAAA;IAChB,MAAM,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAA;CAC9B,CAAC;AAwDJ,iBAAS,cAAc;WAqOT,OAAO,IAA6B;;uBAVvB,GAAG;+BACM,GAAG;qBACb,GAAG;;;;EAa5B;AA0BD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;YA9TR,QAAQ,GAAG,SAAS;6EAqU/B,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAgBpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -2,7 +2,7 @@ import o from "./Content.vue2.js";
|
|
|
2
2
|
/* empty css */
|
|
3
3
|
/* empty css */
|
|
4
4
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
-
const
|
|
5
|
+
const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-75c50136"]]);
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
a as default
|
|
8
8
|
};
|