@scalar/api-reference 1.31.4 → 1.31.7
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 +27 -0
- package/dist/browser/standalone.js +15407 -15317
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/ApiReference.vue.js +6 -6
- package/dist/components/ApiReferenceLayout.vue.d.ts +6 -3
- package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
- package/dist/components/ApiReferenceLayout.vue.js +4 -2
- package/dist/components/ApiReferenceLayout.vue2.js +230 -151
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue.js +1 -1
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue2.js +138 -129
- package/dist/components/GettingStarted.vue.d.ts.map +1 -1
- package/dist/components/GettingStarted.vue.js +3 -3
- package/dist/components/GettingStarted.vue2.js +23 -23
- package/dist/index.d.ts +0 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +37 -44
- package/dist/libs/openapi.js +32 -32
- package/dist/style.css +1 -1
- package/dist/v2/ApiReferenceWorkspace.vue.d.ts +40 -0
- package/dist/v2/ApiReferenceWorkspace.vue.d.ts.map +1 -0
- package/dist/v2/ApiReferenceWorkspace.vue.js +65 -0
- package/dist/v2/ApiReferenceWorkspace.vue3.js +5 -0
- package/dist/v2/events/definitions.d.ts +35 -0
- package/dist/v2/events/definitions.d.ts.map +1 -0
- package/dist/v2/events/index.d.ts +3 -0
- package/dist/v2/events/index.d.ts.map +1 -0
- package/dist/v2/events/listeners.d.ts +8 -0
- package/dist/v2/events/listeners.d.ts.map +1 -0
- package/dist/v2/events/listeners.js +15 -0
- package/dist/v2/styles.d.ts +2 -0
- package/dist/v2/styles.d.ts.map +1 -0
- package/package.json +12 -11
- package/dist/components/Layouts/ClassicLayout.vue.d.ts +0 -23
- package/dist/components/Layouts/ClassicLayout.vue.d.ts.map +0 -1
- package/dist/components/Layouts/ClassicLayout.vue.js +0 -67
- package/dist/components/Layouts/ClassicLayout.vue2.js +0 -4
- package/dist/components/Layouts/Layouts.vue.d.ts +0 -26
- package/dist/components/Layouts/Layouts.vue.d.ts.map +0 -1
- package/dist/components/Layouts/Layouts.vue.js +0 -35
- package/dist/components/Layouts/Layouts.vue2.js +0 -4
- package/dist/components/Layouts/ModernLayout.vue.d.ts +0 -23
- package/dist/components/Layouts/ModernLayout.vue.d.ts.map +0 -1
- package/dist/components/Layouts/ModernLayout.vue.js +0 -8
- package/dist/components/Layouts/ModernLayout.vue2.js +0 -102
- package/dist/components/Layouts/index.d.ts +0 -2
- package/dist/components/Layouts/index.d.ts.map +0 -1
- package/dist/components/SingleApiReference.vue.d.ts +0 -29
- package/dist/components/SingleApiReference.vue.d.ts.map +0 -1
- package/dist/components/SingleApiReference.vue.js +0 -57
- package/dist/components/SingleApiReference.vue3.js +0 -5
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as u, ref as n, toRef as p, provide as d, createBlock as _, openBlock as h, unref as e, withCtx as g, createVNode as x, isRef as V } from "vue";
|
|
2
|
-
import b from "
|
|
3
|
-
|
|
4
|
-
import
|
|
5
|
-
|
|
2
|
+
import { useMultipleDocuments as b } from "../hooks/useMultipleDocuments.js";
|
|
3
|
+
import { NAV_STATE_SYMBOL as v } from "../hooks/useNavState.js";
|
|
4
|
+
import A from "../v2/ApiReferenceWorkspace.vue.js";
|
|
5
|
+
/* empty css */
|
|
6
6
|
import B from "./DocumentSelector/DocumentSelector.vue.js";
|
|
7
7
|
const N = /* @__PURE__ */ u({
|
|
8
8
|
__name: "ApiReference",
|
|
@@ -17,13 +17,13 @@ const N = /* @__PURE__ */ u({
|
|
|
17
17
|
isIntersectionEnabled: c,
|
|
18
18
|
hash: f,
|
|
19
19
|
hashPrefix: l
|
|
20
|
-
} =
|
|
20
|
+
} = b({
|
|
21
21
|
configuration: p(r, "configuration"),
|
|
22
22
|
isIntersectionEnabled: n(!1),
|
|
23
23
|
hash: n(""),
|
|
24
24
|
hashPrefix: n("")
|
|
25
25
|
});
|
|
26
|
-
return d(
|
|
26
|
+
return d(v, { isIntersectionEnabled: c, hash: f, hashPrefix: l }), (C, t) => (h(), _(A, { configuration: e(s) }, {
|
|
27
27
|
"document-selector": g(() => [
|
|
28
28
|
x(e(B), {
|
|
29
29
|
modelValue: e(o),
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { type ThemeId } from '@scalar/themes';
|
|
2
2
|
import type { ReferenceLayoutProps, ReferenceSlotProps } from '../types';
|
|
3
|
-
type __VLS_Props = Omit<ReferenceLayoutProps, 'isDark'>;
|
|
4
3
|
declare function __VLS_template(): {
|
|
5
4
|
attrs: Partial<{}>;
|
|
6
5
|
slots: Readonly<{
|
|
@@ -11,6 +10,8 @@ declare function __VLS_template(): {
|
|
|
11
10
|
"content-end": (props: ReferenceSlotProps) => any;
|
|
12
11
|
"sidebar-start": (props: ReferenceSlotProps) => any;
|
|
13
12
|
"sidebar-end": (props: ReferenceSlotProps) => any;
|
|
13
|
+
} & {
|
|
14
|
+
'document-selector': any;
|
|
14
15
|
}> & {
|
|
15
16
|
footer: (props: ReferenceSlotProps) => any;
|
|
16
17
|
header: (props: ReferenceSlotProps) => any;
|
|
@@ -19,6 +20,8 @@ declare function __VLS_template(): {
|
|
|
19
20
|
"content-end": (props: ReferenceSlotProps) => any;
|
|
20
21
|
"sidebar-start": (props: ReferenceSlotProps) => any;
|
|
21
22
|
"sidebar-end": (props: ReferenceSlotProps) => any;
|
|
23
|
+
} & {
|
|
24
|
+
'document-selector': any;
|
|
22
25
|
};
|
|
23
26
|
refs: {
|
|
24
27
|
documentEl: HTMLDivElement;
|
|
@@ -26,7 +29,7 @@ declare function __VLS_template(): {
|
|
|
26
29
|
rootEl: any;
|
|
27
30
|
};
|
|
28
31
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
29
|
-
declare const __VLS_component: import("vue").DefineComponent<
|
|
32
|
+
declare const __VLS_component: import("vue").DefineComponent<ReferenceLayoutProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
30
33
|
changeTheme: (args_0: {
|
|
31
34
|
id: ThemeId;
|
|
32
35
|
label: string;
|
|
@@ -35,7 +38,7 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}
|
|
|
35
38
|
linkSwaggerFile: () => any;
|
|
36
39
|
updateContent: (value: string) => any;
|
|
37
40
|
toggleDarkMode: () => any;
|
|
38
|
-
}, string, import("vue").PublicProps, Readonly<
|
|
41
|
+
}, string, import("vue").PublicProps, Readonly<ReferenceLayoutProps> & Readonly<{
|
|
39
42
|
onChangeTheme?: ((args_0: {
|
|
40
43
|
id: ThemeId;
|
|
41
44
|
label: string;
|
|
@@ -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":"AAmsBA,OAAO,EAGL,KAAK,OAAO,EACb,MAAM,gBAAgB,CAAA;AAmCvB,OAAO,KAAK,EACV,oBAAoB,EAEpB,kBAAkB,EACnB,MAAM,SAAS,CAAA;AAqQhB,iBAAS,cAAc;WAkYT,OAAO,IAA6B;;wBAllBV,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;;;;;;EAslB/B;AAkCD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;YAjqBqB,OAAO;eAAS,MAAM;;;;;;;;YAAtB,OAAO;eAAS,MAAM;;;;;;kFAwqB9D,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import o from "./ApiReferenceLayout.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
/* empty css */
|
|
4
|
+
/* empty css */
|
|
5
|
+
/* empty css */
|
|
4
6
|
import t from "../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
-
const
|
|
7
|
+
const c = /* @__PURE__ */ t(o, [["__scopeId", "data-v-10ec21b0"]]);
|
|
6
8
|
export {
|
|
7
|
-
|
|
9
|
+
c as default
|
|
8
10
|
};
|
|
@@ -1,188 +1,242 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { provideUseId as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import
|
|
12
|
-
import {
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
|
|
1
|
+
import { defineComponent as ce, computed as T, provide as h, ref as E, onBeforeMount as F, onMounted as N, toValue as U, onUnmounted as me, useId as pe, watch as O, createElementBlock as d, openBlock as r, Fragment as V, createElementVNode as p, createVNode as c, unref as a, normalizeStyle as fe, normalizeClass as ve, createCommentVNode as l, withDirectives as ge, createBlock as S, renderSlot as u, isRef as he, normalizeProps as f, guardReactiveProps as v, withCtx as i, vShow as Se, createSlots as ye } from "vue";
|
|
2
|
+
import { provideUseId as be } from "@headlessui/vue";
|
|
3
|
+
import { OpenApiClientButton as we } from "@scalar/api-client/components";
|
|
4
|
+
import { LAYOUT_SYMBOL as ke } from "@scalar/api-client/hooks";
|
|
5
|
+
import { WORKSPACE_SYMBOL as Ce, ACTIVE_ENTITIES_SYMBOL as De } from "@scalar/api-client/store";
|
|
6
|
+
import { addScalarClassesToHeadless as Te, ScalarErrorBoundary as $e, ScalarSidebarFooter as Me, ScalarColorModeToggleButton as Ee, ScalarColorModeToggleIcon as Oe } from "@scalar/components";
|
|
7
|
+
import { sleep as Be } from "@scalar/helpers/testing/sleep";
|
|
8
|
+
import { hasObtrusiveScrollbars as Re, getThemeStyles as Ie } from "@scalar/themes";
|
|
9
|
+
import { apiReferenceConfigurationSchema as He } from "@scalar/types/api-reference";
|
|
10
|
+
import { useBreakpoints as Pe } from "@scalar/use-hooks/useBreakpoints";
|
|
11
|
+
import { useToasts as Ae, ScalarToasts as Le } from "@scalar/use-toasts";
|
|
12
|
+
import { useMediaQuery as Fe, useResizeObserver as Ne, useDebounceFn as Ue } from "@vueuse/core";
|
|
13
|
+
import Ve from "./ClassicHeader.vue.js";
|
|
14
|
+
import _e from "./GettingStarted.vue.js";
|
|
15
|
+
import Ke from "./MobileHeader.vue.js";
|
|
16
|
+
import { CONFIGURATION_SYMBOL as Ye } from "../hooks/useConfig.js";
|
|
17
|
+
import { useNavState as ze } from "../hooks/useNavState.js";
|
|
18
|
+
import { useSidebar as Ge } from "../hooks/useSidebar.js";
|
|
19
|
+
import { downloadEventBus as _, downloadDocument as Qe } from "../libs/download.js";
|
|
20
|
+
import { useHttpClientStore as We } from "../stores/useHttpClientStore.js";
|
|
21
|
+
import { useDocumentSource as je } from "../features/DocumentSource/hooks/useDocumentSource.js";
|
|
22
|
+
import { OPENAPI_VERSION_SYMBOL as qe } from "../features/DownloadLink/openapi-version-symbol.js";
|
|
23
|
+
import { PLUGIN_MANAGER_SYMBOL as Je } from "../plugins/hooks/usePluginManager.js";
|
|
24
|
+
import { createPluginManager as Xe } from "../plugins/plugin-manager.js";
|
|
25
|
+
import Ze from "./Sidebar/Sidebar.vue.js";
|
|
26
|
+
import K from "../features/Search/SearchButton.vue.js";
|
|
27
|
+
import xe from "./Content/Content.vue.js";
|
|
28
|
+
import et from "../features/ApiClientModal/ApiClientModal.vue.js";
|
|
29
|
+
const tt = ["innerHTML"], ot = { class: "references-header" }, at = ["aria-label"], rt = { class: "references-navigation-list" }, nt = { key: 0 }, lt = {
|
|
30
|
+
key: 1,
|
|
31
|
+
class: "scalar-api-references-standalone-search"
|
|
32
|
+
}, st = { key: 1 }, it = { class: "references-editor" }, ut = { class: "references-editor-textarea" }, dt = ["aria-label"], ct = {
|
|
33
|
+
key: 0,
|
|
34
|
+
class: "w-64 empty:hidden"
|
|
35
|
+
}, mt = {
|
|
25
36
|
key: 0,
|
|
26
37
|
class: "references-footer"
|
|
27
|
-
},
|
|
38
|
+
}, Gt = /* @__PURE__ */ ce({
|
|
28
39
|
inheritAttrs: !1,
|
|
29
40
|
__name: "ApiReferenceLayout",
|
|
30
41
|
props: {
|
|
31
42
|
configuration: {},
|
|
32
43
|
dereferencedDocument: {},
|
|
33
44
|
originalDocument: {},
|
|
45
|
+
isDark: { type: Boolean },
|
|
34
46
|
parsedSpec: {},
|
|
35
47
|
rawSpec: {}
|
|
36
48
|
},
|
|
37
49
|
emits: ["changeTheme", "updateContent", "loadSwaggerFile", "linkSwaggerFile", "toggleDarkMode"],
|
|
38
|
-
setup(
|
|
39
|
-
const t =
|
|
40
|
-
() =>
|
|
41
|
-
), { initializeToasts:
|
|
42
|
-
|
|
50
|
+
setup($) {
|
|
51
|
+
const t = T(
|
|
52
|
+
() => He.parse($.configuration)
|
|
53
|
+
), { initializeToasts: Y, toast: z } = Ae();
|
|
54
|
+
Y((e) => z(e));
|
|
43
55
|
const {
|
|
44
|
-
originalDocument:
|
|
45
|
-
originalOpenApiVersion:
|
|
46
|
-
dereferencedDocument:
|
|
47
|
-
parsedDocument:
|
|
48
|
-
workspaceStore:
|
|
49
|
-
activeEntitiesStore:
|
|
50
|
-
} =
|
|
56
|
+
originalDocument: G,
|
|
57
|
+
originalOpenApiVersion: Q,
|
|
58
|
+
dereferencedDocument: M,
|
|
59
|
+
parsedDocument: y,
|
|
60
|
+
workspaceStore: W,
|
|
61
|
+
activeEntitiesStore: j
|
|
62
|
+
} = je({
|
|
51
63
|
configuration: t,
|
|
52
|
-
dereferencedDocument:
|
|
53
|
-
originalDocument:
|
|
64
|
+
dereferencedDocument: $.dereferencedDocument,
|
|
65
|
+
originalDocument: $.originalDocument
|
|
54
66
|
});
|
|
55
|
-
|
|
56
|
-
const
|
|
57
|
-
|
|
58
|
-
|
|
67
|
+
h(qe, Q), h(Ce, W), h(De, j);
|
|
68
|
+
const q = Fe("(min-width: 1150px)"), J = E("100dvh"), b = E(null);
|
|
69
|
+
Ne(b, (e) => {
|
|
70
|
+
J.value = e[0].contentRect.height + "px";
|
|
59
71
|
});
|
|
60
|
-
const
|
|
61
|
-
collapsedSidebarItems:
|
|
62
|
-
isSidebarOpen:
|
|
63
|
-
setCollapsedSidebarItem:
|
|
64
|
-
hideModels:
|
|
65
|
-
defaultOpenAllTags:
|
|
72
|
+
const X = T(Re), {
|
|
73
|
+
collapsedSidebarItems: pt,
|
|
74
|
+
isSidebarOpen: g,
|
|
75
|
+
setCollapsedSidebarItem: ft,
|
|
76
|
+
hideModels: Z,
|
|
77
|
+
defaultOpenAllTags: x,
|
|
66
78
|
// setParsedSpec,
|
|
67
|
-
scrollToOperation:
|
|
68
|
-
} =
|
|
69
|
-
getReferenceId:
|
|
70
|
-
getPathRoutingId:
|
|
71
|
-
getSectionId:
|
|
72
|
-
getTagId:
|
|
73
|
-
hash:
|
|
74
|
-
isIntersectionEnabled:
|
|
79
|
+
scrollToOperation: ee
|
|
80
|
+
} = Ge(), {
|
|
81
|
+
getReferenceId: te,
|
|
82
|
+
getPathRoutingId: oe,
|
|
83
|
+
getSectionId: vt,
|
|
84
|
+
getTagId: gt,
|
|
85
|
+
hash: ae,
|
|
86
|
+
isIntersectionEnabled: B,
|
|
75
87
|
updateHash: R,
|
|
76
|
-
replaceUrlState:
|
|
77
|
-
} =
|
|
88
|
+
replaceUrlState: re
|
|
89
|
+
} = ze(t);
|
|
78
90
|
if (t.value.redirect && typeof window < "u") {
|
|
79
91
|
const e = t.value.redirect(
|
|
80
92
|
(t.value.pathRouting ? window.location.pathname : "") + window.location.hash
|
|
81
93
|
);
|
|
82
94
|
e && history.replaceState({}, "", e);
|
|
83
95
|
}
|
|
84
|
-
|
|
96
|
+
F(() => R());
|
|
85
97
|
const I = async (e) => {
|
|
86
98
|
var o;
|
|
87
|
-
|
|
88
|
-
},
|
|
89
|
-
|
|
90
|
-
var
|
|
99
|
+
B.value = !1, R(), e ? ee(e) : (o = b.value) == null || o.scrollTo(0, 0), await Be(100), B.value = !0;
|
|
100
|
+
}, H = E(0);
|
|
101
|
+
F(() => Te()), N(() => {
|
|
102
|
+
var s, w, k;
|
|
91
103
|
history.scrollRestoration = "manual";
|
|
92
|
-
const e = (
|
|
104
|
+
const e = (w = (s = b.value) == null ? void 0 : s.parentElement) == null ? void 0 : w.getBoundingClientRect(), o = (k = b.value) == null ? void 0 : k.getBoundingClientRect();
|
|
93
105
|
if (e && o) {
|
|
94
|
-
const
|
|
95
|
-
|
|
106
|
+
const C = o.top - e.top;
|
|
107
|
+
H.value = C < 2 ? 0 : C;
|
|
96
108
|
}
|
|
97
109
|
window.onhashchange = () => {
|
|
98
|
-
I(
|
|
99
|
-
}, window.onpopstate = () => t.value.pathRouting && I(
|
|
110
|
+
I(te());
|
|
111
|
+
}, window.onpopstate = () => t.value.pathRouting && I(oe(window.location.pathname));
|
|
100
112
|
});
|
|
101
|
-
const
|
|
102
|
-
() =>
|
|
103
|
-
), P =
|
|
113
|
+
const ne = T(
|
|
114
|
+
() => q.value || !t.value.isEditable
|
|
115
|
+
), P = Ue((e) => {
|
|
104
116
|
if ((e.target.scrollTop ?? 0) < 50) {
|
|
105
|
-
const
|
|
106
|
-
|
|
117
|
+
const s = t.value.pathRouting ? t.value.pathRouting.basePath : window.location.pathname;
|
|
118
|
+
re("", s + window.location.search);
|
|
107
119
|
}
|
|
108
|
-
}),
|
|
109
|
-
spec:
|
|
120
|
+
}), m = T(() => ({
|
|
121
|
+
spec: y.value
|
|
110
122
|
}));
|
|
111
|
-
|
|
123
|
+
N(
|
|
112
124
|
() => _.on(({ filename: e, format: o }) => {
|
|
113
|
-
|
|
114
|
-
|
|
125
|
+
Qe(
|
|
126
|
+
U(G) || U($.rawSpec) || "",
|
|
115
127
|
e,
|
|
116
128
|
o
|
|
117
129
|
);
|
|
118
130
|
})
|
|
119
|
-
),
|
|
120
|
-
|
|
121
|
-
|
|
131
|
+
), me(() => _.reset()), be(() => pe()), h(ke, "modal"), h(Ye, t), h(
|
|
132
|
+
Je,
|
|
133
|
+
Xe({
|
|
122
134
|
plugins: t.value.plugins
|
|
123
135
|
})
|
|
124
136
|
);
|
|
125
|
-
function
|
|
126
|
-
|
|
137
|
+
function A(e, o) {
|
|
138
|
+
O(
|
|
127
139
|
() => t.value[e],
|
|
128
|
-
(
|
|
129
|
-
typeof
|
|
140
|
+
(s) => {
|
|
141
|
+
typeof s < "u" && o(s);
|
|
130
142
|
},
|
|
131
143
|
{ immediate: !0 }
|
|
132
144
|
);
|
|
133
145
|
}
|
|
134
|
-
const { setExcludedClients:
|
|
135
|
-
|
|
136
|
-
const
|
|
146
|
+
const { setExcludedClients: le, setDefaultHttpClient: se } = We();
|
|
147
|
+
A("defaultHttpClient", se), A("hiddenClients", le), Z.value = t.value.hideModels ?? !1, x.value = t.value.defaultOpenAllTags ?? !1;
|
|
148
|
+
const ie = T(
|
|
137
149
|
() => `<style>
|
|
138
|
-
${
|
|
150
|
+
${Ie(t.value.theme, {
|
|
139
151
|
fonts: t.value.withDefaultFonts
|
|
140
152
|
})}</style>`
|
|
141
|
-
);
|
|
142
|
-
return (e, o) => {
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
153
|
+
), { mediaQueries: ue } = Pe(), de = !1;
|
|
154
|
+
return O(ue.lg, (e, o) => {
|
|
155
|
+
o && !e && (g.value = !1);
|
|
156
|
+
}), O(ae, (e, o) => {
|
|
157
|
+
e && e !== o && (g.value = !1);
|
|
158
|
+
}), (e, o) => {
|
|
159
|
+
var s, w, k, C, L;
|
|
160
|
+
return r(), d(V, null, [
|
|
161
|
+
p("div", { innerHTML: ie.value }, null, 8, tt),
|
|
162
|
+
p("div", {
|
|
147
163
|
ref_key: "documentEl",
|
|
148
|
-
ref:
|
|
149
|
-
class:
|
|
164
|
+
ref: b,
|
|
165
|
+
class: ve(["scalar-app scalar-api-reference references-layout", [
|
|
150
166
|
{
|
|
151
|
-
"scalar-
|
|
167
|
+
"scalar-api-references-standalone-mobile": t.value.showSidebar ?? !0,
|
|
168
|
+
"scalar-scrollbars-obtrusive": X.value,
|
|
152
169
|
"references-editable": t.value.isEditable,
|
|
153
170
|
"references-sidebar": t.value.showSidebar,
|
|
154
|
-
"references-sidebar-mobile-open": a(
|
|
171
|
+
"references-sidebar-mobile-open": a(g),
|
|
155
172
|
"references-classic": t.value.layout === "classic"
|
|
156
173
|
},
|
|
157
174
|
e.$attrs.class
|
|
158
175
|
]]),
|
|
159
|
-
style:
|
|
160
|
-
"--scalar-y-offset": `var(--scalar-custom-header-height, ${
|
|
176
|
+
style: fe({
|
|
177
|
+
"--scalar-y-offset": `var(--scalar-custom-header-height, ${H.value}px)`
|
|
161
178
|
}),
|
|
162
|
-
onScrollPassive: o[
|
|
163
|
-
(...
|
|
179
|
+
onScrollPassive: o[7] || (o[7] = //@ts-ignore
|
|
180
|
+
(...n) => a(P) && a(P)(...n))
|
|
164
181
|
}, [
|
|
165
|
-
|
|
166
|
-
|
|
182
|
+
p("div", ot, [
|
|
183
|
+
t.value.layout === "modern" && (t.value.showSidebar ?? !0) ? (r(), S(Ke, {
|
|
184
|
+
key: 0,
|
|
185
|
+
open: a(g),
|
|
186
|
+
"onUpdate:open": o[0] || (o[0] = (n) => he(g) ? g.value = n : null)
|
|
187
|
+
}, null, 8, ["open"])) : l("", !0),
|
|
188
|
+
u(e.$slots, "header", f(v(m.value)), void 0, !0)
|
|
167
189
|
]),
|
|
168
|
-
t.value.showSidebar ? (
|
|
190
|
+
t.value.showSidebar ? (r(), d("aside", {
|
|
169
191
|
key: 0,
|
|
170
|
-
"aria-label": `Sidebar for ${(
|
|
192
|
+
"aria-label": `Sidebar for ${(w = (s = a(M)) == null ? void 0 : s.info) == null ? void 0 : w.title}`,
|
|
171
193
|
class: "references-navigation t-doc__sidebar"
|
|
172
194
|
}, [
|
|
173
|
-
|
|
174
|
-
c(a(
|
|
175
|
-
default:
|
|
176
|
-
c(a(
|
|
195
|
+
p("div", rt, [
|
|
196
|
+
c(a($e), null, {
|
|
197
|
+
default: i(() => [
|
|
198
|
+
c(a(Ze), {
|
|
177
199
|
operationsSorter: t.value.operationsSorter,
|
|
178
|
-
parsedSpec: a(
|
|
200
|
+
parsedSpec: a(y),
|
|
179
201
|
tagsSorter: t.value.tagsSorter
|
|
180
202
|
}, {
|
|
181
|
-
"sidebar-start":
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
203
|
+
"sidebar-start": i(() => {
|
|
204
|
+
var n;
|
|
205
|
+
return [
|
|
206
|
+
e.$slots["document-selector"] ? (r(), d("div", nt, [
|
|
207
|
+
u(e.$slots, "document-selector", {}, void 0, !0)
|
|
208
|
+
])) : l("", !0),
|
|
209
|
+
t.value.hideSearch ? l("", !0) : (r(), d("div", lt, [
|
|
210
|
+
c(a(K), {
|
|
211
|
+
searchHotKey: (n = t.value) == null ? void 0 : n.searchHotKey,
|
|
212
|
+
spec: a(y)
|
|
213
|
+
}, null, 8, ["searchHotKey", "spec"])
|
|
214
|
+
])),
|
|
215
|
+
u(e.$slots, "sidebar-start", f(v(m.value)), void 0, !0)
|
|
216
|
+
];
|
|
217
|
+
}),
|
|
218
|
+
"sidebar-end": i(() => [
|
|
219
|
+
u(e.$slots, "sidebar-end", f(v(m.value)), () => [
|
|
220
|
+
c(a(Me), { class: "darklight-reference" }, {
|
|
221
|
+
toggle: i(() => [
|
|
222
|
+
t.value.hideDarkModeToggle ? (r(), d("span", st)) : (r(), S(a(Ee), {
|
|
223
|
+
key: 0,
|
|
224
|
+
modelValue: e.isDark,
|
|
225
|
+
"onUpdate:modelValue": o[1] || (o[1] = (n) => e.$emit("toggleDarkMode"))
|
|
226
|
+
}, null, 8, ["modelValue"]))
|
|
227
|
+
]),
|
|
228
|
+
default: i(() => [
|
|
229
|
+
t.value.hideClientButton ? l("", !0) : (r(), S(a(we), {
|
|
230
|
+
key: 0,
|
|
231
|
+
buttonSource: "sidebar",
|
|
232
|
+
integration: t.value._integration,
|
|
233
|
+
isDevelopment: de,
|
|
234
|
+
url: t.value.url
|
|
235
|
+
}, null, 8, ["integration", "url"]))
|
|
236
|
+
]),
|
|
237
|
+
_: 1
|
|
238
|
+
})
|
|
239
|
+
], !0)
|
|
186
240
|
]),
|
|
187
241
|
_: 3
|
|
188
242
|
}, 8, ["operationsSorter", "parsedSpec", "tagsSorter"])
|
|
@@ -190,63 +244,88 @@ const Ve = ["innerHTML"], ze = { class: "references-header" }, Ge = ["aria-label
|
|
|
190
244
|
_: 3
|
|
191
245
|
})
|
|
192
246
|
])
|
|
193
|
-
], 8,
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
247
|
+
], 8, at)) : l("", !0),
|
|
248
|
+
ge(p("div", it, [
|
|
249
|
+
p("div", ut, [
|
|
250
|
+
u(e.$slots, "editor", f(v(m.value)), void 0, !0)
|
|
197
251
|
])
|
|
198
252
|
], 512), [
|
|
199
|
-
[
|
|
253
|
+
[Se, t.value.isEditable]
|
|
200
254
|
]),
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
"aria-label": `Open API Documentation for ${(
|
|
255
|
+
ne.value ? (r(), d(V, { key: 1 }, [
|
|
256
|
+
p("main", {
|
|
257
|
+
"aria-label": `Open API Documentation for ${(C = (k = a(M)) == null ? void 0 : k.info) == null ? void 0 : C.title}`,
|
|
204
258
|
class: "references-rendered"
|
|
205
259
|
}, [
|
|
206
|
-
c(a(
|
|
260
|
+
c(a(xe), {
|
|
207
261
|
layout: t.value.layout,
|
|
208
|
-
parsedSpec: a(
|
|
209
|
-
},
|
|
210
|
-
start:
|
|
211
|
-
|
|
262
|
+
parsedSpec: a(y)
|
|
263
|
+
}, ye({
|
|
264
|
+
start: i(() => [
|
|
265
|
+
u(e.$slots, "content-start", f(v(m.value)), () => [
|
|
266
|
+
t.value.layout === "classic" ? (r(), S(Ve, { key: 0 }, {
|
|
267
|
+
"dark-mode-toggle": i(() => [
|
|
268
|
+
t.value.hideDarkModeToggle ? l("", !0) : (r(), S(a(Oe), {
|
|
269
|
+
key: 0,
|
|
270
|
+
class: "text-c-2 hover:text-c-1",
|
|
271
|
+
mode: e.isDark ? "dark" : "light",
|
|
272
|
+
style: { transform: "scale(1.4)" },
|
|
273
|
+
variant: "icon",
|
|
274
|
+
onClick: o[2] || (o[2] = (n) => e.$emit("toggleDarkMode"))
|
|
275
|
+
}, null, 8, ["mode"]))
|
|
276
|
+
]),
|
|
277
|
+
default: i(() => [
|
|
278
|
+
e.$slots["document-selector"] ? (r(), d("div", ct, [
|
|
279
|
+
u(e.$slots, "document-selector", {}, void 0, !0)
|
|
280
|
+
])) : l("", !0),
|
|
281
|
+
t.value.hideSearch ? l("", !0) : (r(), S(a(K), {
|
|
282
|
+
key: 1,
|
|
283
|
+
class: "t-doc__sidebar",
|
|
284
|
+
searchHotKey: t.value.searchHotKey,
|
|
285
|
+
spec: a(y)
|
|
286
|
+
}, null, 8, ["searchHotKey", "spec"]))
|
|
287
|
+
]),
|
|
288
|
+
_: 3
|
|
289
|
+
})) : l("", !0)
|
|
290
|
+
], !0)
|
|
212
291
|
]),
|
|
213
|
-
end:
|
|
214
|
-
|
|
292
|
+
end: i(() => [
|
|
293
|
+
u(e.$slots, "content-end", f(v(m.value)), void 0, !0)
|
|
215
294
|
]),
|
|
216
295
|
_: 2
|
|
217
296
|
}, [
|
|
218
|
-
(
|
|
297
|
+
(L = t.value) != null && L.isEditable ? {
|
|
219
298
|
name: "empty-state",
|
|
220
|
-
fn:
|
|
221
|
-
var
|
|
299
|
+
fn: i(() => {
|
|
300
|
+
var n;
|
|
222
301
|
return [
|
|
223
|
-
c(
|
|
224
|
-
theme: ((
|
|
225
|
-
onChangeTheme: o[
|
|
226
|
-
onLinkSwaggerFile: o[
|
|
227
|
-
onLoadSwaggerFile: o[
|
|
228
|
-
onUpdateContent: o[
|
|
302
|
+
c(_e, {
|
|
303
|
+
theme: ((n = t.value) == null ? void 0 : n.theme) || "default",
|
|
304
|
+
onChangeTheme: o[3] || (o[3] = (D) => e.$emit("changeTheme", D)),
|
|
305
|
+
onLinkSwaggerFile: o[4] || (o[4] = (D) => e.$emit("linkSwaggerFile")),
|
|
306
|
+
onLoadSwaggerFile: o[5] || (o[5] = (D) => e.$emit("loadSwaggerFile")),
|
|
307
|
+
onUpdateContent: o[6] || (o[6] = (D) => e.$emit("updateContent", D))
|
|
229
308
|
}, null, 8, ["theme"])
|
|
230
309
|
];
|
|
231
310
|
}),
|
|
232
311
|
key: "0"
|
|
233
312
|
} : void 0
|
|
234
313
|
]), 1032, ["layout", "parsedSpec"])
|
|
235
|
-
], 8,
|
|
236
|
-
e.$slots.footer ? (
|
|
237
|
-
|
|
238
|
-
])) :
|
|
239
|
-
], 64)) :
|
|
240
|
-
c(a(
|
|
314
|
+
], 8, dt),
|
|
315
|
+
e.$slots.footer ? (r(), d("div", mt, [
|
|
316
|
+
u(e.$slots, "footer", f(v(m.value)), void 0, !0)
|
|
317
|
+
])) : l("", !0)
|
|
318
|
+
], 64)) : l("", !0),
|
|
319
|
+
c(a(et), {
|
|
241
320
|
configuration: t.value,
|
|
242
|
-
dereferencedDocument: a(
|
|
321
|
+
dereferencedDocument: a(M)
|
|
243
322
|
}, null, 8, ["configuration", "dereferencedDocument"])
|
|
244
323
|
], 38),
|
|
245
|
-
c(a(
|
|
324
|
+
c(a(Le))
|
|
246
325
|
], 64);
|
|
247
326
|
};
|
|
248
327
|
}
|
|
249
328
|
});
|
|
250
329
|
export {
|
|
251
|
-
|
|
330
|
+
Gt as default
|
|
252
331
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SchemaPropertyHeading.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaPropertyHeading.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SchemaPropertyHeading.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaPropertyHeading.vue"],"names":[],"mappings":"AA4ZA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAA;AAQjE,KAAK,WAAW,GAAG;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC3B,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,CAAC;AA0KF,iBAAS,cAAc;WAyVT,OAAO,IAA6B;;sBATxB,GAAG;sBACH,GAAG;;;;EAa5B;AAiBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,6SAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./SchemaPropertyHeading.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-
|
|
4
|
+
const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-a92839e2"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|