@scalar/api-reference 1.28.15 → 1.28.16
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 +10 -0
- package/dist/browser/standalone.js +53 -53
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/Content/Models/Models.vue.js +2 -2
- package/dist/components/Content/Models/Models.vue2.js +17 -17
- package/dist/components/Content/Models/ModelsAccordion.vue.js +1 -1
- package/dist/components/Content/Models/ModelsAccordion.vue2.js +3 -3
- package/dist/index.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +5 -5
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./Models.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-2c898e03"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
p as default
|
|
7
7
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as y, useId as k, computed as u, openBlock as
|
|
1
|
+
import { defineComponent as y, useId as k, computed as u, openBlock as r, createBlock as m, unref as e, withCtx as l, createVNode as o, createTextVNode as M, createElementVNode as g, normalizeClass as I, createElementBlock as N, Fragment as C, renderList as L, createCommentVNode as f } from "vue";
|
|
2
2
|
import { ScalarErrorBoundary as B } from "@scalar/components";
|
|
3
3
|
import H from "../../ShowMoreButton.vue.js";
|
|
4
4
|
import w from "../../Section/SectionContainer.vue.js";
|
|
@@ -11,19 +11,19 @@ import z from "../Schema/SchemaHeading.vue.js";
|
|
|
11
11
|
import A from "../Schema/Schema.vue.js";
|
|
12
12
|
import { useSidebar as T } from "../../../hooks/useSidebar.js";
|
|
13
13
|
import { useNavState as j } from "../../../hooks/useNavState.js";
|
|
14
|
-
const S = 10,
|
|
14
|
+
const S = 10, U = /* @__PURE__ */ y({
|
|
15
15
|
__name: "Models",
|
|
16
16
|
props: {
|
|
17
17
|
schemas: {}
|
|
18
18
|
},
|
|
19
|
-
setup(
|
|
20
|
-
const i =
|
|
21
|
-
() => Object.keys(i.schemas ?? {}).length <= S ||
|
|
19
|
+
setup(v) {
|
|
20
|
+
const i = v, n = k(), { collapsedSidebarItems: _ } = T(), { getModelId: a } = j(), d = u(
|
|
21
|
+
() => Object.keys(i.schemas ?? {}).length <= S || _[a()]
|
|
22
22
|
), b = u(() => {
|
|
23
23
|
const t = Object.keys(i.schemas ?? {});
|
|
24
24
|
return d.value ? t : t.slice(0, S);
|
|
25
25
|
});
|
|
26
|
-
return (t, c) => t.schemas ? (
|
|
26
|
+
return (t, c) => t.schemas ? (r(), m(e(w), {
|
|
27
27
|
key: 0,
|
|
28
28
|
id: "models"
|
|
29
29
|
}, {
|
|
@@ -51,23 +51,23 @@ const S = 10, R = /* @__PURE__ */ y({
|
|
|
51
51
|
g("div", {
|
|
52
52
|
class: I(["models-list", { "models-list-truncated": !d.value }])
|
|
53
53
|
}, [
|
|
54
|
-
(
|
|
55
|
-
id: e(
|
|
56
|
-
key:
|
|
54
|
+
(r(!0), N(C, null, L(b.value, (s) => (r(), m(e(h), {
|
|
55
|
+
id: e(a)({ name: s }),
|
|
56
|
+
key: s,
|
|
57
57
|
isLazy: ""
|
|
58
58
|
}, {
|
|
59
59
|
default: l(() => [
|
|
60
60
|
o(e(V), {
|
|
61
|
-
id: e(
|
|
61
|
+
id: e(a)({ name: s }),
|
|
62
62
|
class: "models-list-item",
|
|
63
|
-
label:
|
|
63
|
+
label: s
|
|
64
64
|
}, {
|
|
65
65
|
heading: l(() => [
|
|
66
66
|
o(e(p), { level: 3 }, {
|
|
67
67
|
default: l(() => [
|
|
68
68
|
o(e(z), {
|
|
69
|
-
name:
|
|
70
|
-
value: t.schemas[
|
|
69
|
+
name: t.schemas[s].title ?? s,
|
|
70
|
+
value: t.schemas[s]
|
|
71
71
|
}, null, 8, ["name", "value"])
|
|
72
72
|
]),
|
|
73
73
|
_: 2
|
|
@@ -80,7 +80,7 @@ const S = 10, R = /* @__PURE__ */ y({
|
|
|
80
80
|
hideHeading: !0,
|
|
81
81
|
noncollapsible: "",
|
|
82
82
|
schemas: t.schemas,
|
|
83
|
-
value: t.schemas[
|
|
83
|
+
value: t.schemas[s]
|
|
84
84
|
}, null, 8, ["schemas", "value"])
|
|
85
85
|
]),
|
|
86
86
|
_: 2
|
|
@@ -92,9 +92,9 @@ const S = 10, R = /* @__PURE__ */ y({
|
|
|
92
92
|
_: 2
|
|
93
93
|
}, 1032, ["id"]))), 128))
|
|
94
94
|
], 2),
|
|
95
|
-
d.value ? f("", !0) : (
|
|
95
|
+
d.value ? f("", !0) : (r(), m(H, {
|
|
96
96
|
key: 0,
|
|
97
|
-
id: e(
|
|
97
|
+
id: e(a)(),
|
|
98
98
|
class: "show-more-models"
|
|
99
99
|
}, null, 8, ["id"]))
|
|
100
100
|
]),
|
|
@@ -106,5 +106,5 @@ const S = 10, R = /* @__PURE__ */ y({
|
|
|
106
106
|
}
|
|
107
107
|
});
|
|
108
108
|
export {
|
|
109
|
-
|
|
109
|
+
U as default
|
|
110
110
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./ModelsAccordion.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-92646d2b"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|
|
@@ -10,7 +10,7 @@ import { useNavState as O } from "../../../hooks/useNavState.js";
|
|
|
10
10
|
const T = {
|
|
11
11
|
key: 0,
|
|
12
12
|
class: "properties"
|
|
13
|
-
},
|
|
13
|
+
}, w = { key: 1 }, J = /* @__PURE__ */ x({
|
|
14
14
|
__name: "ModelsAccordion",
|
|
15
15
|
props: {
|
|
16
16
|
schemas: {}
|
|
@@ -48,7 +48,7 @@ const T = {
|
|
|
48
48
|
default: o(() => [
|
|
49
49
|
n(e(j), {
|
|
50
50
|
class: "reference-models-label",
|
|
51
|
-
name: l,
|
|
51
|
+
name: r.title ?? l,
|
|
52
52
|
value: r
|
|
53
53
|
}, null, 8, ["name", "value"])
|
|
54
54
|
]),
|
|
@@ -69,7 +69,7 @@ const T = {
|
|
|
69
69
|
value: q
|
|
70
70
|
}, null, 8, ["name", "required", "value"]);
|
|
71
71
|
}), 128))
|
|
72
|
-
])) : (t(), u("div",
|
|
72
|
+
])) : (t(), u("div", w, [
|
|
73
73
|
n(e(S), { value: r }, null, 8, ["value"])
|
|
74
74
|
]))
|
|
75
75
|
]),
|