@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,57 +0,0 @@
|
|
|
1
|
-
import { defineComponent as c, watch as l, computed as g, createElementBlock as C, openBlock as f, Fragment as k, createBlock as M, createCommentVNode as D, createVNode as p, resolveDynamicComponent as v, withCtx as t, createTextVNode as $, toDisplayString as S, unref as i, renderSlot as r } from "vue";
|
|
2
|
-
import { useColorMode as y } from "@scalar/use-hooks/useColorMode";
|
|
3
|
-
import { useSeoMeta as B } from "@unhead/vue";
|
|
4
|
-
import { useFavicon as N } from "@vueuse/core";
|
|
5
|
-
import V from "./Layouts/Layouts.vue.js";
|
|
6
|
-
const E = /* @__PURE__ */ c({
|
|
7
|
-
__name: "SingleApiReference",
|
|
8
|
-
props: {
|
|
9
|
-
configuration: {}
|
|
10
|
-
},
|
|
11
|
-
emits: ["updateContent"],
|
|
12
|
-
setup(e) {
|
|
13
|
-
const { toggleColorMode: u, isDarkMode: a } = y({
|
|
14
|
-
initialColorMode: e.configuration.darkMode ? "dark" : void 0,
|
|
15
|
-
overrideColorMode: e.configuration.forceDarkModeState
|
|
16
|
-
});
|
|
17
|
-
l(
|
|
18
|
-
() => e.configuration.darkMode,
|
|
19
|
-
(o) => a.value = !!o
|
|
20
|
-
), e.configuration.metaData && B(e.configuration.metaData);
|
|
21
|
-
const d = g(() => e.configuration.favicon);
|
|
22
|
-
return N(d), (o, n) => {
|
|
23
|
-
var s;
|
|
24
|
-
return f(), C(k, null, [
|
|
25
|
-
(s = o.configuration) != null && s.customCss ? (f(), M(v("style"), { key: 0 }, {
|
|
26
|
-
default: t(() => [
|
|
27
|
-
$(S(o.configuration.customCss), 1)
|
|
28
|
-
]),
|
|
29
|
-
_: 1
|
|
30
|
-
})) : D("", !0),
|
|
31
|
-
p(i(V), {
|
|
32
|
-
configuration: o.configuration,
|
|
33
|
-
isDark: i(a),
|
|
34
|
-
onToggleDarkMode: n[0] || (n[0] = () => i(u)()),
|
|
35
|
-
onUpdateContent: n[1] || (n[1] = (m) => o.$emit("updateContent", m))
|
|
36
|
-
}, {
|
|
37
|
-
footer: t(() => [
|
|
38
|
-
r(o.$slots, "footer")
|
|
39
|
-
]),
|
|
40
|
-
"content-end": t(() => [
|
|
41
|
-
r(o.$slots, "footer")
|
|
42
|
-
]),
|
|
43
|
-
"document-selector": t(() => [
|
|
44
|
-
r(o.$slots, "document-selector")
|
|
45
|
-
]),
|
|
46
|
-
"sidebar-start": t(() => [
|
|
47
|
-
r(o.$slots, "sidebar-start")
|
|
48
|
-
]),
|
|
49
|
-
_: 3
|
|
50
|
-
}, 8, ["configuration", "isDark"])
|
|
51
|
-
], 64);
|
|
52
|
-
};
|
|
53
|
-
}
|
|
54
|
-
});
|
|
55
|
-
export {
|
|
56
|
-
E as default
|
|
57
|
-
};
|