@scalar/api-reference 1.24.17 → 1.24.19
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 +31 -0
- package/dist/browser/standalone.js +11414 -11341
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/ApiClientModal.vue.d.ts.map +1 -1
- package/dist/components/ApiReference.vue.d.ts +1 -0
- package/dist/components/ApiReference.vue.d.ts.map +1 -1
- package/dist/components/ApiReference.vue.js +48 -51
- package/dist/components/ApiReferenceLayout.vue.d.ts +3 -2
- package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
- package/dist/components/ApiReferenceLayout.vue.js +1 -1
- package/dist/components/ApiReferenceLayout.vue2.js +75 -72
- package/dist/components/Content/BaseUrl/BaseUrl.vue.d.ts.map +1 -1
- package/dist/components/Content/BaseUrl/BaseUrl.vue.js +1 -1
- package/dist/components/Content/BaseUrl/BaseUrl.vue2.js +21 -19
- package/dist/components/Content/BaseUrl/ServerVariableSelect.vue.d.ts +22 -0
- package/dist/components/Content/BaseUrl/ServerVariableSelect.vue.d.ts.map +1 -0
- package/dist/components/Content/BaseUrl/ServerVariableSelect.vue.js +7 -0
- package/dist/components/Content/BaseUrl/ServerVariableSelect.vue2.js +46 -0
- package/dist/components/Content/BaseUrl/ServerVariableTextbox.vue.d.ts +20 -0
- package/dist/components/Content/BaseUrl/ServerVariableTextbox.vue.d.ts.map +1 -0
- package/dist/components/Content/BaseUrl/ServerVariableTextbox.vue.js +7 -0
- package/dist/components/Content/BaseUrl/ServerVariableTextbox.vue2.js +27 -0
- package/dist/components/Content/BaseUrl/ServerVariables.vue.d.ts.map +1 -1
- package/dist/components/Content/BaseUrl/ServerVariables.vue.js +1 -1
- package/dist/components/Content/BaseUrl/ServerVariables.vue2.js +31 -40
- package/dist/components/Content/Operation/CustomRequestExamples.vue.js +2 -2
- package/dist/components/Content/Operation/CustomRequestExamples.vue2.js +1 -1
- package/dist/components/Content/Operation/OperationAccordion.vue.d.ts.map +1 -1
- package/dist/components/Content/Operation/OperationAccordion.vue.js +1 -1
- package/dist/components/Content/Operation/PathResponses/PathResponses.vue.d.ts.map +1 -1
- package/dist/components/Content/Operation/PathResponses/PathResponses.vue.js +2 -2
- package/dist/components/Content/Operation/PathResponses/PathResponses.vue2.js +1 -1
- package/dist/components/GettingStarted.vue.d.ts +1 -1
- package/dist/components/Layouts/ClassicLayout.vue.d.ts +4 -2
- package/dist/components/Layouts/ClassicLayout.vue.d.ts.map +1 -1
- package/dist/components/Layouts/ClassicLayout.vue.js +33 -28
- package/dist/components/Layouts/{BaseLayout.vue.d.ts → Layouts.vue.d.ts} +8 -3
- package/dist/components/Layouts/Layouts.vue.d.ts.map +1 -0
- package/dist/components/Layouts/Layouts.vue.js +33 -0
- package/dist/components/Layouts/Layouts.vue2.js +4 -0
- package/dist/components/Layouts/ModernLayout.vue.d.ts +4 -2
- package/dist/components/Layouts/ModernLayout.vue.d.ts.map +1 -1
- package/dist/components/Layouts/ModernLayout.vue.js +2 -2
- package/dist/components/Layouts/ModernLayout.vue2.js +46 -41
- package/dist/components/Layouts/index.d.ts +1 -7
- package/dist/components/Layouts/index.d.ts.map +1 -1
- package/dist/components/SearchButton.vue.js +1 -1
- package/dist/components/SearchButton.vue2.js +5 -5
- package/dist/components/api-client-bus.d.ts +5 -1
- package/dist/components/api-client-bus.d.ts.map +1 -1
- package/dist/components/api-client-bus.js +2 -2
- package/dist/features.d.ts +1 -1
- package/dist/features.d.ts.map +1 -1
- package/dist/helpers/createEmptySpecification.d.ts +4 -0
- package/dist/helpers/createEmptySpecification.d.ts.map +1 -1
- package/dist/helpers/deepMerge.d.ts +1 -1
- package/dist/helpers/deepMerge.d.ts.map +1 -1
- package/dist/helpers/getHeadingsFromMarkdown.d.ts +3 -0
- package/dist/helpers/getHeadingsFromMarkdown.d.ts.map +1 -1
- package/dist/helpers/getModels.d.ts +3 -0
- package/dist/helpers/getModels.d.ts.map +1 -1
- package/dist/helpers/isValidUrl.d.ts +3 -0
- package/dist/helpers/isValidUrl.d.ts.map +1 -1
- package/dist/helpers/isValidUrl.js +3 -3
- package/dist/helpers/openClientFor.d.ts +3 -0
- package/dist/helpers/openClientFor.d.ts.map +1 -1
- package/dist/hooks/index.d.ts +2 -2
- package/dist/hooks/useClientStore.js +5 -0
- package/dist/hooks/useDeprecationWarnings.d.ts +3 -0
- package/dist/hooks/useDeprecationWarnings.d.ts.map +1 -1
- package/dist/hooks/useRefOnMount.d.ts +3 -0
- package/dist/hooks/useRefOnMount.d.ts.map +1 -1
- package/dist/hooks/useRefOnMount.js +10 -0
- package/dist/hooks/useSidebar.d.ts +3 -0
- package/dist/hooks/useSidebar.d.ts.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +92 -72
- package/dist/stores/useHttpClientStore.d.ts +3 -0
- package/dist/stores/useHttpClientStore.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types.d.ts +11 -1
- package/dist/types.d.ts.map +1 -1
- package/package.json +7 -7
- package/dist/components/Layouts/BaseLayout.vue.d.ts.map +0 -1
- package/dist/components/Layouts/index.js +0 -9
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApiClientModal.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApiClientModal.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ApiClientModal.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApiClientModal.vue"],"names":[],"mappings":"AAkCA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAA;;;;;;;;AAqE1D,wBAMG;AAOH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApiReference.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApiReference.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ApiReference.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApiReference.vue"],"names":[],"mappings":"AAuHA,OAAO,KAAK,EAA0B,cAAc,EAAE,MAAM,UAAU,CAAA;;;;;;;;;AAqMtE,wBAAwG;AAExG,eAAO,MAAM,sBAAsB,IAAK,CAAC;AACzC,OAAO,CAAC,MAAM,CAAC;IAEd,KAAK,uBAAuB,GAAG,gBAAgB,CAAC,OAAO,iBAAiB,EAAE,GAAG,CAAC,iBAAiB,EAAE,gBAAgB,CAAC,UAAU,CAAC,GAAG,CAAC,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC;IAE1K,KAAK,aAAa,GAAG,gBAAgB,CAAC,OAAO,iBAAiB,EAAE,GAAG,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;IAErG,KAAK,sBAAsB,GAAG,gBAAgB,CAAC,OAAO,KAAK,EAAE,gBAAgB,EAAE,EAAE,CAAC,GAAG,gBAAgB,CAAC,OAAO,mBAAmB,EAAE,gBAAgB,EAAE,EAAE,CAAC,GAAG,gBAAgB,CAAC,OAAO,kBAAkB,EAAE,gBAAgB,EAAE,EAAE,CAAC,GAAG,IAAI,CAAC,cAAc,KAAK,CAAC,EAAE,YAAY,GAAG,iBAAiB,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AK,oBAAoB,CAAC,CAAC,IAAI,oBAAoB,CAClD,yBAAyB,CACxB,0BAA0B,CAAC,CAAC,CAAC,GAAG;SAC9B,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,GAAG,EAAE,GAAG;YAAE,CAAC,GAAG,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC,GAAG,IAAI,CAAA;SAAE,GAAG,KAAK;KACtE,CACD,CACD,CAAC;IACF,KAAK,oBAAoB,CAAC,CAAC,IAAI;SAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;KAAG,GAAG,EAAE,CAAC;CAC9D;AACD,eAAO,MAAM,oBAAoB,IAAK,CAAC;AAMvC,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC;AAEN,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
|
|
@@ -1,59 +1,59 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useAuthenticationStore as
|
|
3
|
-
import { migrateThemeVariables as
|
|
4
|
-
import { useSeoMeta as
|
|
5
|
-
import F from "
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
1
|
+
import { defineComponent as w, watch as s, computed as d, toRef as g, openBlock as C, createElementBlock as x, Fragment as T, createBlock as $, resolveDynamicComponent as b, withCtx as u, createTextVNode as A, toDisplayString as B, createCommentVNode as E, createVNode as N, unref as a, renderSlot as v } from "vue";
|
|
2
|
+
import { useAuthenticationStore as R } from "@scalar/api-client";
|
|
3
|
+
import { migrateThemeVariables as V } from "@scalar/themes";
|
|
4
|
+
import { useSeoMeta as _ } from "@unhead/vue";
|
|
5
|
+
import { useDarkModeState as F } from "../hooks/useDarkModeState.js";
|
|
6
|
+
import { useReactiveSpec as H } from "../hooks/useReactiveSpec.js";
|
|
7
|
+
import U from "./Layouts/Layouts.vue.js";
|
|
8
8
|
import { useHttpClientStore as j } from "../stores/useHttpClientStore.js";
|
|
9
|
-
const P = /* @__PURE__ */
|
|
9
|
+
const P = /* @__PURE__ */ w({
|
|
10
10
|
__name: "ApiReference",
|
|
11
11
|
props: {
|
|
12
12
|
configuration: {}
|
|
13
13
|
},
|
|
14
14
|
emits: ["updateContent"],
|
|
15
|
-
setup(
|
|
15
|
+
setup(S) {
|
|
16
16
|
var f, l;
|
|
17
|
-
const
|
|
18
|
-
(f =
|
|
17
|
+
const r = S, { toggleDarkMode: c, isDark: m } = F(
|
|
18
|
+
(f = r.configuration) == null ? void 0 : f.darkMode
|
|
19
19
|
);
|
|
20
20
|
s(
|
|
21
21
|
() => {
|
|
22
22
|
var e;
|
|
23
|
-
return (e =
|
|
23
|
+
return (e = r.configuration) == null ? void 0 : e.darkMode;
|
|
24
24
|
},
|
|
25
25
|
(e) => {
|
|
26
26
|
e !== m.value && c();
|
|
27
27
|
}
|
|
28
28
|
);
|
|
29
|
-
const
|
|
29
|
+
const i = d(() => {
|
|
30
30
|
var e, t;
|
|
31
|
-
if ((e =
|
|
32
|
-
return
|
|
31
|
+
if ((e = r.configuration) != null && e.customCss)
|
|
32
|
+
return V((t = r.configuration) == null ? void 0 : t.customCss);
|
|
33
33
|
});
|
|
34
|
-
s(
|
|
35
|
-
const
|
|
34
|
+
s(i, () => console.log(i.value));
|
|
35
|
+
const o = d(() => {
|
|
36
36
|
var e;
|
|
37
37
|
return {
|
|
38
38
|
spec: {
|
|
39
39
|
content: void 0,
|
|
40
40
|
url: void 0,
|
|
41
|
-
...(e =
|
|
41
|
+
...(e = r.configuration) == null ? void 0 : e.spec
|
|
42
42
|
},
|
|
43
43
|
proxy: void 0,
|
|
44
44
|
theme: "default",
|
|
45
45
|
showSidebar: !0,
|
|
46
46
|
isEditable: !1,
|
|
47
|
-
...
|
|
48
|
-
customCss:
|
|
47
|
+
...r.configuration,
|
|
48
|
+
customCss: i.value
|
|
49
49
|
};
|
|
50
50
|
});
|
|
51
|
-
(l =
|
|
51
|
+
(l = o.value) != null && l.metaData && _(o.value.metaData);
|
|
52
52
|
function p(e, t) {
|
|
53
53
|
s(
|
|
54
54
|
() => {
|
|
55
55
|
var n;
|
|
56
|
-
return (n =
|
|
56
|
+
return (n = o.value) == null ? void 0 : n[e];
|
|
57
57
|
},
|
|
58
58
|
(n) => {
|
|
59
59
|
typeof n < "u" && t(n);
|
|
@@ -61,42 +61,39 @@ const P = /* @__PURE__ */ T({
|
|
|
61
61
|
{ immediate: !0 }
|
|
62
62
|
);
|
|
63
63
|
}
|
|
64
|
-
const { setAuthentication:
|
|
65
|
-
p("authentication",
|
|
66
|
-
const { setExcludedClients:
|
|
67
|
-
p("hiddenClients",
|
|
68
|
-
const { parsedSpec:
|
|
69
|
-
proxy:
|
|
70
|
-
|
|
71
|
-
return ((e = o.configuration) == null ? void 0 : e.proxy) || "";
|
|
72
|
-
}),
|
|
73
|
-
specConfig: C(() => {
|
|
74
|
-
var e;
|
|
75
|
-
return ((e = o.configuration) == null ? void 0 : e.spec) || {};
|
|
76
|
-
})
|
|
64
|
+
const { setAuthentication: k } = R();
|
|
65
|
+
p("authentication", k);
|
|
66
|
+
const { setExcludedClients: D } = j();
|
|
67
|
+
p("hiddenClients", D);
|
|
68
|
+
const { parsedSpec: y, rawSpec: h } = H({
|
|
69
|
+
proxy: g(() => o.value.proxy || ""),
|
|
70
|
+
specConfig: g(() => o.value.spec || {})
|
|
77
71
|
});
|
|
78
72
|
return (e, t) => {
|
|
79
|
-
var n
|
|
80
|
-
return
|
|
81
|
-
(n =
|
|
82
|
-
default:
|
|
83
|
-
B(
|
|
73
|
+
var n;
|
|
74
|
+
return C(), x(T, null, [
|
|
75
|
+
(n = o.value) != null && n.customCss ? (C(), $(b("style"), { key: 0 }, {
|
|
76
|
+
default: u(() => [
|
|
77
|
+
A(B(o.value.customCss), 1)
|
|
84
78
|
]),
|
|
85
79
|
_: 1
|
|
86
|
-
})) :
|
|
87
|
-
(
|
|
88
|
-
configuration:
|
|
89
|
-
isDark:
|
|
90
|
-
parsedSpec:
|
|
91
|
-
rawSpec:
|
|
92
|
-
onToggleDarkMode: t[0] || (t[0] = () =>
|
|
93
|
-
onUpdateContent: t[1] || (t[1] = (
|
|
80
|
+
})) : E("", !0),
|
|
81
|
+
N(a(U), {
|
|
82
|
+
configuration: o.value,
|
|
83
|
+
isDark: a(m),
|
|
84
|
+
parsedSpec: a(y),
|
|
85
|
+
rawSpec: a(h),
|
|
86
|
+
onToggleDarkMode: t[0] || (t[0] = () => a(c)()),
|
|
87
|
+
onUpdateContent: t[1] || (t[1] = (M) => e.$emit("updateContent", M))
|
|
94
88
|
}, {
|
|
95
|
-
footer:
|
|
96
|
-
|
|
89
|
+
footer: u(() => [
|
|
90
|
+
v(e.$slots, "footer")
|
|
91
|
+
]),
|
|
92
|
+
"content-end": u(() => [
|
|
93
|
+
v(e.$slots, "footer")
|
|
97
94
|
]),
|
|
98
95
|
_: 3
|
|
99
|
-
},
|
|
96
|
+
}, 8, ["configuration", "isDark", "parsedSpec", "rawSpec"])
|
|
100
97
|
], 64);
|
|
101
98
|
};
|
|
102
99
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import '@scalar/components/style.css';
|
|
2
2
|
import { type ThemeId } from '@scalar/themes';
|
|
3
|
+
import '@scalar/themes/style.css';
|
|
3
4
|
import type { ReferenceLayoutProps, ReferenceSlotProps } from '../types';
|
|
4
5
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToOption<Omit<ReferenceLayoutProps, "isDark">>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
5
6
|
changeTheme: (args_0: {
|
|
@@ -11,14 +12,14 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
11
12
|
linkSwaggerFile: () => void;
|
|
12
13
|
toggleDarkMode: () => void;
|
|
13
14
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<Omit<ReferenceLayoutProps, "isDark">>>> & {
|
|
14
|
-
onToggleDarkMode?: (() => any) | undefined;
|
|
15
15
|
onChangeTheme?: ((args_0: {
|
|
16
16
|
id: ThemeId;
|
|
17
17
|
label: string;
|
|
18
18
|
}) => any) | undefined;
|
|
19
|
+
onUpdateContent?: ((value: string) => any) | undefined;
|
|
19
20
|
onLoadSwaggerFile?: (() => any) | undefined;
|
|
20
21
|
onLinkSwaggerFile?: (() => any) | undefined;
|
|
21
|
-
|
|
22
|
+
onToggleDarkMode?: (() => any) | undefined;
|
|
22
23
|
}, {}, {}>, Readonly<{
|
|
23
24
|
footer: (props: ReferenceSlotProps) => any;
|
|
24
25
|
header: (props: ReferenceSlotProps) => any;
|
|
@@ -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":"AAokBA,OAAO,8BAA8B,CAAA;AAGrC,OAAO,EAAE,KAAK,OAAO,EAAkB,MAAM,gBAAgB,CAAA;AAC7D,OAAO,0BAA0B,CAAA;AA0BjC,OAAO,KAAK,EACV,oBAAoB,EAEpB,kBAAkB,EACnB,MAAM,UAAU,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2kBjB,wBAAwG;AAOxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC;AAEN,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
|
|
@@ -2,7 +2,7 @@ import o from "./ApiReferenceLayout.vue2.js";
|
|
|
2
2
|
/* empty css */
|
|
3
3
|
/* empty css */
|
|
4
4
|
import t from "../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
-
const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
5
|
+
const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-c9906691"]]);
|
|
6
6
|
export {
|
|
7
7
|
a as default
|
|
8
8
|
};
|
|
@@ -1,30 +1,31 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { provideUseId as
|
|
1
|
+
import { defineComponent as X, defineAsyncComponent as Z, ref as b, onMounted as D, onBeforeMount as O, computed as A, watch as _, onServerPrefetch as x, useSSRContext as ee, getCurrentInstance as oe, provide as B, openBlock as f, createElementBlock as h, Fragment as P, createVNode as v, unref as s, withCtx as p, createTextVNode as te, toDisplayString as re, createElementVNode as m, normalizeClass as ae, normalizeStyle as ne, renderSlot as d, normalizeProps as l, guardReactiveProps as c, createCommentVNode as y, withDirectives as se, vShow as ie, createSlots as de, createBlock as U } from "vue";
|
|
2
|
+
import { provideUseId as le } from "@headlessui/vue";
|
|
3
3
|
import "@scalar/components/style.css";
|
|
4
|
-
import { defaultStateFactory as
|
|
5
|
-
import { getThemeStyles as
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
4
|
+
import { defaultStateFactory as ce } from "@scalar/oas-utils/helpers";
|
|
5
|
+
import { getThemeStyles as ue } from "@scalar/themes";
|
|
6
|
+
import "@scalar/themes/style.css";
|
|
7
|
+
import { useToasts as pe, ScalarToasts as fe } from "@scalar/use-toasts";
|
|
8
|
+
import { useMediaQuery as me, useResizeObserver as ge, useDebounceFn as ve } from "@vueuse/core";
|
|
8
9
|
import { NEW_API_MODAL as F } from "../features.js";
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import { downloadSpecBus as
|
|
12
|
-
import { useDeprecationWarnings as
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import { useSidebar as
|
|
17
|
-
import { GLOBAL_SECURITY_SYMBOL as
|
|
18
|
-
import { useNavState as
|
|
19
|
-
import { scrollToId as
|
|
20
|
-
import { sleep as
|
|
21
|
-
const
|
|
10
|
+
import Se from "./ApiClientModal.vue.js";
|
|
11
|
+
import he from "./GettingStarted.vue.js";
|
|
12
|
+
import { downloadSpecBus as be, downloadSpecFile as ye } from "../helpers/specDownloads.js";
|
|
13
|
+
import { useDeprecationWarnings as we } from "../hooks/useDeprecationWarnings.js";
|
|
14
|
+
import Re from "./Util/Style.vue.js";
|
|
15
|
+
import $e from "./Sidebar/Sidebar.vue.js";
|
|
16
|
+
import Ce from "./Content/Content.vue.js";
|
|
17
|
+
import { useSidebar as Te } from "../hooks/useSidebar.js";
|
|
18
|
+
import { GLOBAL_SECURITY_SYMBOL as Le, HIDE_DOWNLOAD_BUTTON_SYMBOL as ke } from "../helpers/provideSymbols.js";
|
|
19
|
+
import { useNavState as Ie } from "../hooks/useNavState.js";
|
|
20
|
+
import { scrollToId as Ee } from "../helpers/scrollToId.js";
|
|
21
|
+
import { sleep as De } from "../helpers/sleep.js";
|
|
22
|
+
const Oe = { class: "references-header" }, Ae = {
|
|
22
23
|
key: 0,
|
|
23
24
|
class: "references-navigation t-doc__sidebar"
|
|
24
|
-
},
|
|
25
|
+
}, Be = { class: "references-navigation-list" }, Pe = { class: "references-editor" }, Ue = { class: "references-editor-textarea" }, Fe = { class: "references-rendered" }, Me = {
|
|
25
26
|
key: 0,
|
|
26
27
|
class: "references-footer"
|
|
27
|
-
},
|
|
28
|
+
}, no = /* @__PURE__ */ X({
|
|
28
29
|
inheritAttrs: !1,
|
|
29
30
|
__name: "ApiReferenceLayout",
|
|
30
31
|
props: {
|
|
@@ -34,7 +35,9 @@ const Ie = { class: "references-header" }, Ee = {
|
|
|
34
35
|
},
|
|
35
36
|
emits: ["changeTheme", "updateContent", "loadSwaggerFile", "linkSwaggerFile", "toggleDarkMode"],
|
|
36
37
|
setup(M) {
|
|
37
|
-
const n = M, N
|
|
38
|
+
const n = M, { initializeToasts: N, toast: z } = pe();
|
|
39
|
+
N((e) => z(e));
|
|
40
|
+
const V = Z(() => F ? (
|
|
38
41
|
// Empty component
|
|
39
42
|
new Promise((e) => {
|
|
40
43
|
e({ render: () => null });
|
|
@@ -42,9 +45,9 @@ const Ie = { class: "references-header" }, Ee = {
|
|
|
42
45
|
) : (
|
|
43
46
|
// Load component
|
|
44
47
|
import("./ApiClientModalOld.vue.js")
|
|
45
|
-
)),
|
|
46
|
-
|
|
47
|
-
|
|
48
|
+
)), Y = me("(min-width: 1150px)"), H = b("100dvh"), g = b(null);
|
|
49
|
+
ge(g, (e) => {
|
|
50
|
+
H.value = e[0].contentRect.height + "px";
|
|
48
51
|
});
|
|
49
52
|
const w = b(0);
|
|
50
53
|
D(() => {
|
|
@@ -56,25 +59,25 @@ const Ie = { class: "references-header" }, Ee = {
|
|
|
56
59
|
}
|
|
57
60
|
});
|
|
58
61
|
const {
|
|
59
|
-
breadcrumb:
|
|
62
|
+
breadcrumb: W,
|
|
60
63
|
collapsedSidebarItems: S,
|
|
61
|
-
isSidebarOpen:
|
|
64
|
+
isSidebarOpen: G,
|
|
62
65
|
setCollapsedSidebarItem: R,
|
|
63
|
-
hideModels:
|
|
64
|
-
setParsedSpec:
|
|
65
|
-
} =
|
|
66
|
+
hideModels: j,
|
|
67
|
+
setParsedSpec: K
|
|
68
|
+
} = Te(), {
|
|
66
69
|
getPathRoutingId: $,
|
|
67
|
-
getSectionId:
|
|
68
|
-
getTagId:
|
|
70
|
+
getSectionId: Q,
|
|
71
|
+
getTagId: q,
|
|
69
72
|
hash: C,
|
|
70
73
|
isIntersectionEnabled: T,
|
|
71
74
|
pathRouting: L,
|
|
72
75
|
updateHash: k
|
|
73
|
-
} =
|
|
76
|
+
} = Ie();
|
|
74
77
|
L.value = n.configuration.pathRouting, O(() => k());
|
|
75
78
|
const I = async (e) => {
|
|
76
79
|
var o;
|
|
77
|
-
T.value = !1, k(), e ?
|
|
80
|
+
T.value = !1, k(), e ? Ee(e) : (o = g.value) == null || o.scrollTo(0, 0), await De(100), T.value = !0;
|
|
78
81
|
};
|
|
79
82
|
O(() => {
|
|
80
83
|
const e = new MutationObserver((o) => {
|
|
@@ -90,52 +93,52 @@ const Ie = { class: "references-header" }, Ee = {
|
|
|
90
93
|
});
|
|
91
94
|
e.observe(document.body, { childList: !0 });
|
|
92
95
|
}), D(() => {
|
|
93
|
-
|
|
94
|
-
|
|
96
|
+
be.on(({ specTitle: e }) => {
|
|
97
|
+
ye(n.rawSpec, e);
|
|
95
98
|
}), window.onhashchange = () => I(decodeURIComponent(window.location.hash.replace(/^#/, ""))), window.onpopstate = () => L.value && I($(window.location.pathname));
|
|
96
99
|
});
|
|
97
|
-
const
|
|
98
|
-
() =>
|
|
99
|
-
), E =
|
|
100
|
+
const J = A(
|
|
101
|
+
() => Y.value || !n.configuration.isEditable
|
|
102
|
+
), E = ve((e) => {
|
|
100
103
|
if ((e.target.scrollTop ?? 0) < 50) {
|
|
101
104
|
const r = n.configuration.pathRouting ? n.configuration.pathRouting.basePath : window.location.pathname;
|
|
102
105
|
window.history.replaceState({}, "", r + window.location.search), C.value = "";
|
|
103
106
|
}
|
|
104
107
|
}), i = A(() => ({
|
|
105
|
-
breadcrumb:
|
|
108
|
+
breadcrumb: W.value,
|
|
106
109
|
spec: n.parsedSpec
|
|
107
110
|
}));
|
|
108
|
-
return
|
|
111
|
+
return _(() => n.parsedSpec, K, { deep: !0 }), x(() => {
|
|
109
112
|
var o, r;
|
|
110
|
-
const e =
|
|
111
|
-
if (e && ((o = e.payload).data || (o.data =
|
|
113
|
+
const e = ee();
|
|
114
|
+
if (e && ((o = e.payload).data || (o.data = ce()), n.configuration.pathRouting)) {
|
|
112
115
|
const t = $(e.url);
|
|
113
116
|
C.value = t, e.payload.data.hash = t;
|
|
114
117
|
for (const a in S)
|
|
115
118
|
Object.hasOwn(S, a) && delete S[a];
|
|
116
119
|
if (t)
|
|
117
|
-
R(
|
|
120
|
+
R(Q(t), !0);
|
|
118
121
|
else {
|
|
119
122
|
const a = (r = n.parsedSpec.tags) == null ? void 0 : r[0];
|
|
120
|
-
a && R(
|
|
123
|
+
a && R(q(a), !0);
|
|
121
124
|
}
|
|
122
125
|
e.payload.data["useSidebarContent-collapsedSidebarItems"] = S;
|
|
123
126
|
}
|
|
124
|
-
}),
|
|
127
|
+
}), le(() => {
|
|
125
128
|
var t;
|
|
126
|
-
const e =
|
|
129
|
+
const e = oe(), o = "scalar-instance-id";
|
|
127
130
|
if (!e) return o;
|
|
128
131
|
let r = e.uid;
|
|
129
132
|
return typeof window > "u" ? (e.attrs || (e.attrs = {}), e.attrs[o] = r) : (t = e.vnode.el) != null && t.getAttribute && (r = e.vnode.el.getAttribute(o)), `${o}-${r}`;
|
|
130
|
-
}), B(
|
|
131
|
-
|
|
133
|
+
}), B(Le, () => n.parsedSpec.security), B(
|
|
134
|
+
ke,
|
|
132
135
|
() => n.configuration.hideDownloadButton
|
|
133
|
-
),
|
|
136
|
+
), j.value = n.configuration.hideModels ?? !1, we(n.configuration), (e, o) => {
|
|
134
137
|
var r, t;
|
|
135
138
|
return f(), h(P, null, [
|
|
136
|
-
v(s(
|
|
139
|
+
v(s(Re), null, {
|
|
137
140
|
default: p(() => [
|
|
138
|
-
|
|
141
|
+
te(re(s(ue)(e.configuration.theme, {
|
|
139
142
|
fonts: e.configuration.withDefaultFonts
|
|
140
143
|
})), 1)
|
|
141
144
|
]),
|
|
@@ -144,27 +147,27 @@ const Ie = { class: "references-header" }, Ee = {
|
|
|
144
147
|
m("div", {
|
|
145
148
|
ref_key: "documentEl",
|
|
146
149
|
ref: g,
|
|
147
|
-
class:
|
|
150
|
+
class: ae(["scalar-app scalar-api-reference references-layout", [
|
|
148
151
|
{
|
|
149
152
|
"references-editable": e.configuration.isEditable,
|
|
150
153
|
"references-sidebar": e.configuration.showSidebar,
|
|
151
|
-
"references-sidebar-mobile-open": s(
|
|
154
|
+
"references-sidebar-mobile-open": s(G),
|
|
152
155
|
"references-classic": e.configuration.layout === "classic"
|
|
153
156
|
},
|
|
154
157
|
e.$attrs.class
|
|
155
158
|
]]),
|
|
156
|
-
style:
|
|
159
|
+
style: ne({
|
|
157
160
|
"--scalar-y-offset": `var(--scalar-custom-header-height, ${w.value}px)`
|
|
158
161
|
}),
|
|
159
162
|
onScrollPassive: o[4] || (o[4] = //@ts-ignore
|
|
160
163
|
(...a) => s(E) && s(E)(...a))
|
|
161
164
|
}, [
|
|
162
|
-
m("div",
|
|
165
|
+
m("div", Oe, [
|
|
163
166
|
d(e.$slots, "header", l(c(i.value)), void 0, !0)
|
|
164
167
|
]),
|
|
165
|
-
e.configuration.showSidebar ? (f(), h("aside",
|
|
166
|
-
m("div",
|
|
167
|
-
v(s(
|
|
168
|
+
e.configuration.showSidebar ? (f(), h("aside", Ae, [
|
|
169
|
+
m("div", Be, [
|
|
170
|
+
v(s($e), { parsedSpec: e.parsedSpec }, {
|
|
168
171
|
"sidebar-start": p(() => [
|
|
169
172
|
d(e.$slots, "sidebar-start", l(c(i.value)), void 0, !0)
|
|
170
173
|
]),
|
|
@@ -175,21 +178,21 @@ const Ie = { class: "references-header" }, Ee = {
|
|
|
175
178
|
}, 8, ["parsedSpec"])
|
|
176
179
|
])
|
|
177
180
|
])) : y("", !0),
|
|
178
|
-
|
|
179
|
-
m("div",
|
|
181
|
+
se(m("div", Pe, [
|
|
182
|
+
m("div", Ue, [
|
|
180
183
|
d(e.$slots, "editor", l(c(i.value)), void 0, !0)
|
|
181
184
|
])
|
|
182
185
|
], 512), [
|
|
183
|
-
[
|
|
186
|
+
[ie, e.configuration.isEditable]
|
|
184
187
|
]),
|
|
185
|
-
|
|
186
|
-
m("div",
|
|
187
|
-
v(s(
|
|
188
|
+
J.value ? (f(), h(P, { key: 1 }, [
|
|
189
|
+
m("div", Fe, [
|
|
190
|
+
v(s(Ce), {
|
|
188
191
|
baseServerURL: e.configuration.baseServerURL,
|
|
189
192
|
layout: e.configuration.layout === "classic" ? "accordion" : "default",
|
|
190
193
|
parsedSpec: e.parsedSpec,
|
|
191
194
|
proxy: e.configuration.proxy
|
|
192
|
-
},
|
|
195
|
+
}, de({
|
|
193
196
|
start: p(() => [
|
|
194
197
|
d(e.$slots, "content-start", l(c(i.value)), void 0, !0)
|
|
195
198
|
]),
|
|
@@ -203,7 +206,7 @@ const Ie = { class: "references-header" }, Ee = {
|
|
|
203
206
|
fn: p(() => {
|
|
204
207
|
var a;
|
|
205
208
|
return [
|
|
206
|
-
v(
|
|
209
|
+
v(he, {
|
|
207
210
|
theme: ((a = e.configuration) == null ? void 0 : a.theme) || "default",
|
|
208
211
|
onChangeTheme: o[0] || (o[0] = (u) => e.$emit("changeTheme", u)),
|
|
209
212
|
onLinkSwaggerFile: o[1] || (o[1] = (u) => e.$emit("linkSwaggerFile")),
|
|
@@ -216,15 +219,15 @@ const Ie = { class: "references-header" }, Ee = {
|
|
|
216
219
|
} : void 0
|
|
217
220
|
]), 1032, ["baseServerURL", "layout", "parsedSpec", "proxy"])
|
|
218
221
|
]),
|
|
219
|
-
e.$slots.footer ? (f(), h("div",
|
|
222
|
+
e.$slots.footer ? (f(), h("div", Me, [
|
|
220
223
|
d(e.$slots, "footer", l(c(i.value)), void 0, !0)
|
|
221
224
|
])) : y("", !0)
|
|
222
225
|
], 64)) : y("", !0),
|
|
223
|
-
s(F) ? (f(), U(
|
|
226
|
+
s(F) ? (f(), U(Se, {
|
|
224
227
|
key: 2,
|
|
225
228
|
proxyUrl: e.configuration.proxy,
|
|
226
229
|
spec: e.configuration.spec
|
|
227
|
-
}, null, 8, ["proxyUrl", "spec"])) : (f(), U(s(
|
|
230
|
+
}, null, 8, ["proxyUrl", "spec"])) : (f(), U(s(V), {
|
|
228
231
|
key: 3,
|
|
229
232
|
parsedSpec: e.parsedSpec,
|
|
230
233
|
proxyUrl: (t = e.configuration) == null ? void 0 : t.proxy
|
|
@@ -238,11 +241,11 @@ const Ie = { class: "references-header" }, Ee = {
|
|
|
238
241
|
_: 3
|
|
239
242
|
}, 8, ["parsedSpec", "proxyUrl"]))
|
|
240
243
|
], 38),
|
|
241
|
-
v(s(
|
|
244
|
+
v(s(fe))
|
|
242
245
|
], 64);
|
|
243
246
|
};
|
|
244
247
|
}
|
|
245
248
|
});
|
|
246
249
|
export {
|
|
247
|
-
|
|
250
|
+
no as default
|
|
248
251
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseUrl.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/BaseUrl/BaseUrl.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"BaseUrl.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/BaseUrl/BaseUrl.vue"],"names":[],"mappings":";AAiXA,wBAKG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./BaseUrl.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-e4183eb6"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|