@scalar/api-reference 1.25.80 → 1.25.82
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 +30 -0
- package/dist/browser/standalone.js +13239 -14204
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/Anchor/Anchor.vue.d.ts.map +1 -1
- package/dist/components/Anchor/Anchor.vue.js +1 -1
- package/dist/components/Anchor/Anchor.vue2.js +19 -21
- package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
- package/dist/components/ApiReferenceLayout.vue.js +1 -1
- package/dist/components/ApiReferenceLayout.vue2.js +94 -90
- package/dist/components/Content/ClientLibraries/ClientSelector.vue.d.ts.map +1 -1
- package/dist/components/Content/ClientLibraries/ClientSelector.vue.js +1 -1
- package/dist/components/Content/ClientLibraries/ClientSelector.vue2.js +22 -20
- package/dist/components/Content/Introduction/Description.vue.d.ts.map +1 -1
- package/dist/components/Content/Introduction/Description.vue.js +2 -2
- package/dist/components/Content/Introduction/Description.vue2.js +30 -33
- package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaProperty.vue.js +2 -2
- package/dist/components/Content/Schema/SchemaProperty.vue2.js +106 -102
- package/dist/components/Section/CompactSection.vue.js +2 -2
- package/dist/components/Section/CompactSection.vue2.js +14 -14
- package/dist/components/Section/Section.vue.d.ts.map +1 -1
- package/dist/components/Section/Section.vue.js +1 -1
- package/dist/components/Section/Section.vue2.js +16 -19
- package/dist/components/Sidebar/SidebarElement.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarElement.vue.js +2 -2
- package/dist/components/Sidebar/SidebarElement.vue2.js +42 -46
- package/dist/embeds/OpenApiDocument/OpenApiDocument.vue.d.ts +4 -4
- package/dist/features/ApiClientModal/ApiClientModal.vue.d.ts.map +1 -1
- package/dist/features/ApiClientModal/ApiClientModal.vue.js +12 -12
- package/dist/features/ApiClientModal/useApiClient.d.ts +28 -28
- package/dist/features/ApiClientModal/useApiClient.d.ts.map +1 -1
- package/dist/features/ExampleRequest/ExampleRequest.vue.js +2 -2
- package/dist/features/ExampleRequest/ExampleRequest.vue2.js +1 -1
- package/dist/helpers/convertRequestToHarRequest.d.ts +1 -1
- package/dist/helpers/convertRequestToHarRequest.d.ts.map +1 -1
- package/dist/helpers/getExampleCode.d.ts +3 -4
- package/dist/helpers/getExampleCode.d.ts.map +1 -1
- package/dist/helpers/getExampleCode.js +12 -31
- package/dist/hooks/useNavState.d.ts +22 -0
- package/dist/hooks/useNavState.d.ts.map +1 -1
- package/dist/hooks/useNavState.js +57 -34
- package/dist/index.js +1 -1
- package/dist/stores/useHttpClientStore.d.ts +3 -4
- package/dist/stores/useHttpClientStore.d.ts.map +1 -1
- package/dist/stores/useHttpClientStore.js +45 -58
- package/dist/style.css +1 -1
- package/dist/types.d.ts +2 -5
- package/dist/types.d.ts.map +1 -1
- package/package.json +9 -10
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { defineComponent as y, computed as
|
|
2
|
-
import { splitContent as
|
|
3
|
-
import { ScalarMarkdown as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import { useNavState as
|
|
7
|
-
|
|
8
|
-
const P = {
|
|
1
|
+
import { defineComponent as y, computed as I, openBlock as r, createElementBlock as o, Fragment as l, renderList as S, createBlock as s, withCtx as w, createVNode as C, unref as u, createCommentVNode as B } from "vue";
|
|
2
|
+
import { splitContent as H, getHeadings as N } from "@scalar/code-highlight/markdown";
|
|
3
|
+
import { ScalarMarkdown as c } from "@scalar/components";
|
|
4
|
+
import d from "github-slugger";
|
|
5
|
+
import b from "../../IntersectionObserver.vue.js";
|
|
6
|
+
import { useNavState as x } from "../../../hooks/useNavState.js";
|
|
7
|
+
const E = {
|
|
9
8
|
key: 0,
|
|
10
9
|
class: "introduction-description"
|
|
11
10
|
}, T = /* @__PURE__ */ y({
|
|
@@ -13,59 +12,57 @@ const P = {
|
|
|
13
12
|
props: {
|
|
14
13
|
value: {}
|
|
15
14
|
},
|
|
16
|
-
setup(
|
|
17
|
-
const i =
|
|
15
|
+
setup(m) {
|
|
16
|
+
const i = m, p = I(() => {
|
|
18
17
|
if (!i.value)
|
|
19
18
|
return [];
|
|
20
|
-
const e = new
|
|
21
|
-
return
|
|
22
|
-
const [
|
|
19
|
+
const e = new d();
|
|
20
|
+
return H(i.value).map((t) => {
|
|
21
|
+
const [n] = N(t);
|
|
23
22
|
return {
|
|
24
|
-
id:
|
|
25
|
-
...
|
|
26
|
-
slug: e.slug(
|
|
23
|
+
id: n ? a({
|
|
24
|
+
...n,
|
|
25
|
+
slug: e.slug(n.value)
|
|
27
26
|
}) : void 0,
|
|
28
27
|
content: t
|
|
29
28
|
};
|
|
30
29
|
});
|
|
31
|
-
}), { getHeadingId:
|
|
32
|
-
function
|
|
33
|
-
|
|
34
|
-
const n = new URL(window.location.href);
|
|
35
|
-
s.value ? n.pathname = L(s.value.basePath, e) : n.hash = e, g.value = e, window.history.replaceState({}, "", n);
|
|
30
|
+
}), { getHeadingId: a, isIntersectionEnabled: g, replaceUrlState: f } = x();
|
|
31
|
+
function v(e = "") {
|
|
32
|
+
g.value && f(e);
|
|
36
33
|
}
|
|
37
|
-
const
|
|
34
|
+
const h = new d(), _ = (e) => (e.data = {
|
|
38
35
|
hProperties: {
|
|
39
|
-
id:
|
|
36
|
+
id: a({
|
|
40
37
|
depth: e.depth,
|
|
41
38
|
value: e.children[0].value,
|
|
42
|
-
slug:
|
|
39
|
+
slug: h.slug(e.children[0].value)
|
|
43
40
|
})
|
|
44
41
|
}
|
|
45
42
|
}, e);
|
|
46
|
-
return (e,
|
|
47
|
-
(
|
|
48
|
-
t.id ? (
|
|
43
|
+
return (e, k) => e.value ? (r(), o("div", E, [
|
|
44
|
+
(r(!0), o(l, null, S(p.value, (t, n) => (r(), o(l, { key: n }, [
|
|
45
|
+
t.id ? (r(), s(b, {
|
|
49
46
|
key: 0,
|
|
50
47
|
id: t.id,
|
|
51
48
|
class: "introduction-description-heading",
|
|
52
|
-
onIntersecting: () =>
|
|
49
|
+
onIntersecting: () => v(t.id)
|
|
53
50
|
}, {
|
|
54
|
-
default:
|
|
55
|
-
|
|
56
|
-
transform:
|
|
51
|
+
default: w(() => [
|
|
52
|
+
C(u(c), {
|
|
53
|
+
transform: _,
|
|
57
54
|
transformType: "heading",
|
|
58
55
|
value: t.content
|
|
59
56
|
}, null, 8, ["value"])
|
|
60
57
|
]),
|
|
61
58
|
_: 2
|
|
62
|
-
}, 1032, ["id", "onIntersecting"])) : (
|
|
59
|
+
}, 1032, ["id", "onIntersecting"])) : (r(), s(u(c), {
|
|
63
60
|
key: 1,
|
|
64
61
|
value: t.content,
|
|
65
62
|
withImages: ""
|
|
66
63
|
}, null, 8, ["value"]))
|
|
67
64
|
], 64))), 128))
|
|
68
|
-
])) :
|
|
65
|
+
])) : B("", !0);
|
|
69
66
|
}
|
|
70
67
|
});
|
|
71
68
|
export {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SchemaProperty.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaProperty.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SchemaProperty.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaProperty.vue"],"names":[],"mappings":"AA0ZA,KAAK,WAAW,GAAG;IACf,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB,CAAC;;cAJW,OAAO;WAFV,MAAM;aAGJ,OAAO;;AA0XrB,0BAQG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./SchemaProperty.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const f = /* @__PURE__ */ r(o, [["__scopeId", "data-v-6f6cbcaf"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
f as default
|
|
7
7
|
};
|
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { Disclosure as
|
|
3
|
-
import { ScalarMarkdown as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
const
|
|
1
|
+
import { defineComponent as K, computed as v, openBlock as l, createElementBlock as t, normalizeClass as Z, createVNode as n, createSlots as Q, withCtx as y, createTextVNode as A, toDisplayString as i, unref as p, createCommentVNode as s, createElementVNode as m, Fragment as r, renderList as d, createBlock as b } from "vue";
|
|
2
|
+
import { Disclosure as W, DisclosurePanel as X, DisclosureButton as Y } from "@headlessui/vue";
|
|
3
|
+
import { ScalarMarkdown as E, ScalarIcon as _ } from "@scalar/components";
|
|
4
|
+
import f from "./Schema.vue.js";
|
|
5
|
+
import x from "./SchemaPropertyHeading.vue.js";
|
|
6
|
+
const ee = {
|
|
7
7
|
key: 0,
|
|
8
8
|
class: "property-description"
|
|
9
|
-
},
|
|
9
|
+
}, le = {
|
|
10
10
|
key: 1,
|
|
11
11
|
class: "property-description"
|
|
12
|
-
},
|
|
12
|
+
}, te = {
|
|
13
13
|
key: 2,
|
|
14
14
|
class: "property-example custom-scroll"
|
|
15
|
-
},
|
|
15
|
+
}, ae = { class: "property-example-value" }, oe = {
|
|
16
16
|
key: 3,
|
|
17
17
|
class: "property-example custom-scroll"
|
|
18
|
-
},
|
|
18
|
+
}, se = { class: "property-example-label" }, ne = {
|
|
19
19
|
key: 4,
|
|
20
20
|
class: "property-enum"
|
|
21
|
-
},
|
|
21
|
+
}, re = {
|
|
22
22
|
key: 0,
|
|
23
23
|
class: "property-list"
|
|
24
|
-
},
|
|
24
|
+
}, ie = { class: "property-heading" }, ue = { class: "property-name" }, pe = { class: "property-description" }, de = {
|
|
25
25
|
key: 1,
|
|
26
26
|
class: "property-enum-values"
|
|
27
|
-
},
|
|
27
|
+
}, ce = {
|
|
28
28
|
key: 5,
|
|
29
29
|
class: "children"
|
|
30
|
-
},
|
|
30
|
+
}, me = {
|
|
31
31
|
key: 0,
|
|
32
32
|
class: "children"
|
|
33
|
-
},
|
|
33
|
+
}, ve = {
|
|
34
34
|
key: 0,
|
|
35
35
|
class: "property-rule"
|
|
36
|
-
},
|
|
36
|
+
}, ye = {
|
|
37
37
|
key: 1,
|
|
38
38
|
class: "property-rule"
|
|
39
|
-
},
|
|
39
|
+
}, Ee = /* @__PURE__ */ K({
|
|
40
40
|
__name: "SchemaProperty",
|
|
41
41
|
props: {
|
|
42
42
|
value: {},
|
|
@@ -47,8 +47,8 @@ const K = {
|
|
|
47
47
|
description: {},
|
|
48
48
|
additional: { type: Boolean }
|
|
49
49
|
},
|
|
50
|
-
setup(
|
|
51
|
-
const
|
|
50
|
+
setup(M) {
|
|
51
|
+
const h = M, S = {
|
|
52
52
|
integer: {
|
|
53
53
|
_default: "Integer numbers.",
|
|
54
54
|
int32: "Signed 32-bit integers (commonly used integer type).",
|
|
@@ -61,141 +61,145 @@ const K = {
|
|
|
61
61
|
byte: "base64-encoded characters, for example, U3dhZ2dlciByb2Nrcw==",
|
|
62
62
|
binary: "binary data, used to describe files"
|
|
63
63
|
}
|
|
64
|
-
},
|
|
65
|
-
return
|
|
66
|
-
},
|
|
67
|
-
return !e || !
|
|
68
|
-
},
|
|
69
|
-
var
|
|
70
|
-
return (e == null ? void 0 : e.enum) || ((
|
|
71
|
-
},
|
|
72
|
-
|
|
73
|
-
|
|
64
|
+
}, B = function(e, o) {
|
|
65
|
+
return o != null && o.properties || o != null && o.additionalProperties ? null : e || (o == null ? void 0 : o.description) || null;
|
|
66
|
+
}, D = function(e) {
|
|
67
|
+
return !e || !S[e.type] ? null : S[e.type][e.format || "_default"];
|
|
68
|
+
}, c = function(e) {
|
|
69
|
+
var o;
|
|
70
|
+
return (e == null ? void 0 : e.enum) || ((o = e == null ? void 0 : e.items) == null ? void 0 : o.enum) || [];
|
|
71
|
+
}, $ = ["oneOf", "anyOf", "allOf", "not"], C = v(() => c(h.value).length > 9), P = v(() => C.value ? 5 : 9), G = v(
|
|
72
|
+
() => c(h.value).slice(0, P.value)
|
|
73
|
+
), J = v(
|
|
74
|
+
() => c(h.value).slice(P.value)
|
|
75
|
+
);
|
|
76
|
+
return (e, o) => {
|
|
77
|
+
var j, w, N, O, q, F, I, L, V, z, H, R;
|
|
74
78
|
return l(), t("div", {
|
|
75
|
-
class:
|
|
79
|
+
class: Z(["property", [
|
|
76
80
|
`property--level-${e.level}`,
|
|
77
81
|
{
|
|
78
82
|
"property--compact": e.compact,
|
|
79
|
-
"property--deprecated": (
|
|
83
|
+
"property--deprecated": (j = e.value) == null ? void 0 : j.deprecated
|
|
80
84
|
}
|
|
81
85
|
]])
|
|
82
86
|
}, [
|
|
83
|
-
|
|
87
|
+
n(x, {
|
|
84
88
|
additional: e.additional,
|
|
85
|
-
enum:
|
|
89
|
+
enum: c(e.value).length > 1,
|
|
86
90
|
required: e.required,
|
|
87
91
|
value: e.value
|
|
88
|
-
},
|
|
92
|
+
}, Q({ _: 2 }, [
|
|
89
93
|
e.name ? {
|
|
90
94
|
name: "name",
|
|
91
|
-
fn:
|
|
92
|
-
|
|
95
|
+
fn: y(() => [
|
|
96
|
+
A(i(e.name), 1)
|
|
93
97
|
]),
|
|
94
98
|
key: "0"
|
|
95
99
|
} : void 0
|
|
96
100
|
]), 1032, ["additional", "enum", "required", "value"]),
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
value:
|
|
101
|
+
B(e.description, e.value) ? (l(), t("div", ee, [
|
|
102
|
+
n(p(E), {
|
|
103
|
+
value: B(e.description, e.value)
|
|
100
104
|
}, null, 8, ["value"])
|
|
101
|
-
])) :
|
|
102
|
-
|
|
103
|
-
value:
|
|
105
|
+
])) : D(e.value) ? (l(), t("div", le, [
|
|
106
|
+
n(p(E), {
|
|
107
|
+
value: D(e.value) || ""
|
|
104
108
|
}, null, 8, ["value"])
|
|
105
|
-
])) :
|
|
106
|
-
(
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
])) :
|
|
110
|
-
(
|
|
111
|
-
|
|
112
|
-
(l(!0), t(
|
|
113
|
-
key:
|
|
109
|
+
])) : s("", !0),
|
|
110
|
+
(w = e.value) != null && w.example || (O = (N = e.value) == null ? void 0 : N.items) != null && O.example ? (l(), t("div", te, [
|
|
111
|
+
o[0] || (o[0] = m("span", { class: "property-example-label" }, "Example", -1)),
|
|
112
|
+
m("code", ae, i(e.value.example || ((q = e.value) == null ? void 0 : q.items.example)), 1)
|
|
113
|
+
])) : s("", !0),
|
|
114
|
+
(F = e.value) != null && F.examples && typeof e.value.examples == "object" && Object.keys(e.value.examples).length > 0 ? (l(), t("div", oe, [
|
|
115
|
+
m("span", se, i(Object.keys(e.value.examples).length === 1 ? "Example" : "Examples"), 1),
|
|
116
|
+
(l(!0), t(r, null, d(e.value.examples, (a, u) => (l(), t("code", {
|
|
117
|
+
key: u,
|
|
114
118
|
class: "property-example-value"
|
|
115
|
-
}, i(
|
|
116
|
-
])) :
|
|
117
|
-
((
|
|
118
|
-
(
|
|
119
|
-
(l(!0), t(
|
|
120
|
-
key:
|
|
119
|
+
}, i(a), 1))), 128))
|
|
120
|
+
])) : s("", !0),
|
|
121
|
+
((I = c(e.value)) == null ? void 0 : I.length) > 1 ? (l(), t("div", ne, [
|
|
122
|
+
(L = e.value) != null && L["x-enumDescriptions"] ? (l(), t("div", re, [
|
|
123
|
+
(l(!0), t(r, null, d(c(e.value), (a) => (l(), t("div", {
|
|
124
|
+
key: a,
|
|
121
125
|
class: "property"
|
|
122
126
|
}, [
|
|
123
|
-
|
|
124
|
-
|
|
127
|
+
m("div", ie, [
|
|
128
|
+
m("div", ue, i(a), 1)
|
|
125
129
|
]),
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
value: e.value["x-enumDescriptions"][
|
|
130
|
+
m("div", pe, [
|
|
131
|
+
n(p(E), {
|
|
132
|
+
value: e.value["x-enumDescriptions"][a]
|
|
129
133
|
}, null, 8, ["value"])
|
|
130
134
|
])
|
|
131
135
|
]))), 128))
|
|
132
|
-
])) : (l(), t("ul",
|
|
133
|
-
(l(!0), t(
|
|
134
|
-
key:
|
|
136
|
+
])) : (l(), t("ul", de, [
|
|
137
|
+
(l(!0), t(r, null, d(G.value, (a) => (l(), t("li", {
|
|
138
|
+
key: a,
|
|
135
139
|
class: "property-enum-value"
|
|
136
|
-
}, i(
|
|
137
|
-
|
|
138
|
-
default:
|
|
139
|
-
|
|
140
|
-
default:
|
|
141
|
-
(l(!0), t(
|
|
142
|
-
key:
|
|
140
|
+
}, i(a), 1))), 128)),
|
|
141
|
+
C.value ? (l(), b(p(W), { key: 0 }, {
|
|
142
|
+
default: y(({ open: a }) => [
|
|
143
|
+
n(p(X), null, {
|
|
144
|
+
default: y(() => [
|
|
145
|
+
(l(!0), t(r, null, d(J.value, (u) => (l(), t("li", {
|
|
146
|
+
key: u,
|
|
143
147
|
class: "property-enum-value"
|
|
144
|
-
}, i(
|
|
148
|
+
}, i(u), 1))), 128))
|
|
145
149
|
]),
|
|
146
150
|
_: 1
|
|
147
151
|
}),
|
|
148
|
-
|
|
149
|
-
default:
|
|
150
|
-
|
|
151
|
-
class:
|
|
152
|
+
n(p(Y), { class: "enum-toggle-button" }, {
|
|
153
|
+
default: y(() => [
|
|
154
|
+
n(p(_), {
|
|
155
|
+
class: Z(["enum-toggle-button-icon", { "enum-toggle-button-icon--open": a }]),
|
|
152
156
|
icon: "Add",
|
|
153
157
|
size: "sm"
|
|
154
158
|
}, null, 8, ["class"]),
|
|
155
|
-
|
|
159
|
+
A(" " + i(a ? "Hide values" : "Show all values"), 1)
|
|
156
160
|
]),
|
|
157
161
|
_: 2
|
|
158
162
|
}, 1024)
|
|
159
163
|
]),
|
|
160
164
|
_: 1
|
|
161
|
-
})) :
|
|
165
|
+
})) : s("", !0)
|
|
162
166
|
]))
|
|
163
|
-
])) :
|
|
164
|
-
((
|
|
165
|
-
|
|
167
|
+
])) : s("", !0),
|
|
168
|
+
((V = e.value) == null ? void 0 : V.type) === "object" && ((z = e.value) != null && z.properties || (H = e.value) != null && H.additionalProperties) ? (l(), t("div", ce, [
|
|
169
|
+
n(f, {
|
|
166
170
|
compact: e.compact,
|
|
167
171
|
level: e.level + 1,
|
|
168
172
|
value: e.value
|
|
169
173
|
}, null, 8, ["compact", "level", "value"])
|
|
170
|
-
])) :
|
|
171
|
-
(
|
|
172
|
-
["object"].includes(e.value.items.type) ? (l(), t("div",
|
|
173
|
-
|
|
174
|
+
])) : s("", !0),
|
|
175
|
+
(R = e.value) != null && R.items ? (l(), t(r, { key: 6 }, [
|
|
176
|
+
["object"].includes(e.value.items.type) ? (l(), t("div", me, [
|
|
177
|
+
n(f, {
|
|
174
178
|
compact: e.compact,
|
|
175
179
|
level: e.level + 1,
|
|
176
180
|
value: e.value.items
|
|
177
181
|
}, null, 8, ["compact", "level", "value"])
|
|
178
|
-
])) :
|
|
179
|
-
], 64)) :
|
|
180
|
-
(l(), t(
|
|
181
|
-
var
|
|
182
|
-
return l(), t(
|
|
183
|
-
(
|
|
184
|
-
(l(!0), t(
|
|
185
|
-
key:
|
|
182
|
+
])) : s("", !0)
|
|
183
|
+
], 64)) : s("", !0),
|
|
184
|
+
(l(), t(r, null, d($, (a) => {
|
|
185
|
+
var u, T, U;
|
|
186
|
+
return l(), t(r, { key: a }, [
|
|
187
|
+
(u = e.value) != null && u[a] ? (l(), t("div", ve, [
|
|
188
|
+
(l(!0), t(r, null, d(e.value[a], (g, k) => (l(), b(f, {
|
|
189
|
+
key: k,
|
|
186
190
|
compact: e.compact,
|
|
187
191
|
level: e.level + 1,
|
|
188
|
-
value:
|
|
192
|
+
value: g
|
|
189
193
|
}, null, 8, ["compact", "level", "value"]))), 128))
|
|
190
|
-
])) :
|
|
191
|
-
(
|
|
192
|
-
(l(!0), t(
|
|
193
|
-
key:
|
|
194
|
+
])) : s("", !0),
|
|
195
|
+
(U = (T = e.value) == null ? void 0 : T.items) != null && U[a] && e.level < 3 ? (l(), t("div", ye, [
|
|
196
|
+
(l(!0), t(r, null, d(e.value.items[a], (g, k) => (l(), b(f, {
|
|
197
|
+
key: k,
|
|
194
198
|
compact: e.compact,
|
|
195
199
|
level: e.level + 1,
|
|
196
|
-
value:
|
|
200
|
+
value: g
|
|
197
201
|
}, null, 8, ["compact", "level", "value"]))), 128))
|
|
198
|
-
])) :
|
|
202
|
+
])) : s("", !0)
|
|
199
203
|
], 64);
|
|
200
204
|
}), 64))
|
|
201
205
|
], 2);
|
|
@@ -203,5 +207,5 @@ const K = {
|
|
|
203
207
|
}
|
|
204
208
|
});
|
|
205
209
|
export {
|
|
206
|
-
|
|
210
|
+
Ee as default
|
|
207
211
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./CompactSection.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-b32ceff4"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
p as default
|
|
7
7
|
};
|
|
@@ -1,30 +1,31 @@
|
|
|
1
1
|
import { defineComponent as d, ref as m, watch as p, nextTick as u, openBlock as a, createElementBlock as f, createElementVNode as v, normalizeClass as h, createVNode as i, unref as b, withCtx as n, renderSlot as r, createBlock as C, createCommentVNode as k } from "vue";
|
|
2
2
|
import { ScalarIcon as g } from "@scalar/components";
|
|
3
3
|
import S from "../Anchor/Anchor.vue.js";
|
|
4
|
-
import
|
|
5
|
-
import { scrollToId as
|
|
6
|
-
import { useNavState as
|
|
7
|
-
const
|
|
4
|
+
import _ from "./Section.vue.js";
|
|
5
|
+
import { scrollToId as w } from "../../helpers/scrollToId.js";
|
|
6
|
+
import { useNavState as N } from "../../hooks/useNavState.js";
|
|
7
|
+
const B = ["aria-expanded"], V = ["id"], A = /* @__PURE__ */ d({
|
|
8
8
|
__name: "CompactSection",
|
|
9
9
|
props: {
|
|
10
10
|
id: {},
|
|
11
11
|
label: {}
|
|
12
12
|
},
|
|
13
13
|
setup(s) {
|
|
14
|
-
const
|
|
14
|
+
const t = s, { hash: c } = N(), e = m(!1);
|
|
15
15
|
return p(
|
|
16
16
|
c,
|
|
17
17
|
async (o) => {
|
|
18
|
-
o ===
|
|
18
|
+
o === t.id && !e.value && (e.value = !0, await u(), w(t.id));
|
|
19
19
|
},
|
|
20
20
|
{ immediate: !0 }
|
|
21
|
-
), (o,
|
|
21
|
+
), (o, l) => (a(), f("div", {
|
|
22
22
|
"aria-expanded": e.value,
|
|
23
23
|
class: "collapsible-section"
|
|
24
24
|
}, [
|
|
25
25
|
v("div", {
|
|
26
|
+
id: o.id,
|
|
26
27
|
class: h(["collapsible-section-trigger", { "collapsible-section-trigger-open": e.value }]),
|
|
27
|
-
onClick:
|
|
28
|
+
onClick: l[0] || (l[0] = ($) => e.value = !e.value)
|
|
28
29
|
}, [
|
|
29
30
|
i(b(g), {
|
|
30
31
|
icon: e.value ? "ChevronDown" : "ChevronRight",
|
|
@@ -40,10 +41,9 @@ const V = ["aria-expanded"], x = /* @__PURE__ */ d({
|
|
|
40
41
|
]),
|
|
41
42
|
_: 3
|
|
42
43
|
}, 8, ["id"])
|
|
43
|
-
],
|
|
44
|
-
e.value ? (a(), C(
|
|
44
|
+
], 10, V),
|
|
45
|
+
e.value ? (a(), C(_, {
|
|
45
46
|
key: 0,
|
|
46
|
-
id: o.id,
|
|
47
47
|
class: "collapsible-section-content",
|
|
48
48
|
label: o.label
|
|
49
49
|
}, {
|
|
@@ -51,10 +51,10 @@ const V = ["aria-expanded"], x = /* @__PURE__ */ d({
|
|
|
51
51
|
r(o.$slots, "default", {}, void 0, !0)
|
|
52
52
|
]),
|
|
53
53
|
_: 3
|
|
54
|
-
}, 8, ["
|
|
55
|
-
], 8,
|
|
54
|
+
}, 8, ["label"])) : k("", !0)
|
|
55
|
+
], 8, B));
|
|
56
56
|
}
|
|
57
57
|
});
|
|
58
58
|
export {
|
|
59
|
-
|
|
59
|
+
A as default
|
|
60
60
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Section.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Section/Section.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Section.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Section/Section.vue"],"names":[],"mappings":"AAsEA,KAAK,WAAW,GAAG;IACjB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAC;AAqBF,iBAAS,cAAc;WAoET,OAAO,IAA6B;;yBARrB,GAAG;;;;EAa/B;AAUD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,kSAOnB,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 "./Section.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
4
|
+
const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-64ccd510"]]);
|
|
5
5
|
export {
|
|
6
6
|
p as default
|
|
7
7
|
};
|
|
@@ -1,35 +1,32 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import { useSidebar as
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
const B = /* @__PURE__ */ m({
|
|
1
|
+
import { defineComponent as d, openBlock as c, createBlock as m, withCtx as p, renderSlot as f } from "vue";
|
|
2
|
+
import u from "../IntersectionObserver.vue.js";
|
|
3
|
+
import { useSidebar as S } from "../../hooks/useSidebar.js";
|
|
4
|
+
import { useNavState as _ } from "../../hooks/useNavState.js";
|
|
5
|
+
const v = /* @__PURE__ */ d({
|
|
7
6
|
__name: "Section",
|
|
8
7
|
props: {
|
|
9
8
|
id: {},
|
|
10
9
|
label: {}
|
|
11
10
|
},
|
|
12
|
-
setup(
|
|
13
|
-
const
|
|
14
|
-
function
|
|
15
|
-
var
|
|
16
|
-
|
|
17
|
-
const e = new URL(window.location.href), o = t.id ?? "";
|
|
18
|
-
i.value ? e.pathname = _(i.value.basePath, o) : e.hash = o, l.value = o, window.history.replaceState({}, "", e), ((n = t.id) != null && n.startsWith("model") || (a = t.id) != null && a.startsWith("webhook")) && c(r(t.id), !0);
|
|
11
|
+
setup(i) {
|
|
12
|
+
const e = i, { getSectionId: r, isIntersectionEnabled: n, replaceUrlState: s } = _(), { setCollapsedSidebarItem: a } = S();
|
|
13
|
+
function l() {
|
|
14
|
+
var t, o;
|
|
15
|
+
!e.label || !n.value || (s(e.id ?? ""), ((t = e.id) != null && t.startsWith("model") || (o = e.id) != null && o.startsWith("webhook")) && a(r(e.id), !0));
|
|
19
16
|
}
|
|
20
|
-
return (
|
|
17
|
+
return (t, o) => (c(), m(u, {
|
|
21
18
|
is: "section",
|
|
22
|
-
id:
|
|
19
|
+
id: t.id,
|
|
23
20
|
class: "section",
|
|
24
|
-
onIntersecting:
|
|
21
|
+
onIntersecting: l
|
|
25
22
|
}, {
|
|
26
|
-
default:
|
|
27
|
-
|
|
23
|
+
default: p(() => [
|
|
24
|
+
f(t.$slots, "default", {}, void 0, !0)
|
|
28
25
|
]),
|
|
29
26
|
_: 3
|
|
30
27
|
}, 8, ["id"]));
|
|
31
28
|
}
|
|
32
29
|
});
|
|
33
30
|
export {
|
|
34
|
-
|
|
31
|
+
v as default
|
|
35
32
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SidebarElement.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/SidebarElement.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SidebarElement.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/SidebarElement.vue"],"names":[],"mappings":"AA0UA,KAAK,WAAW,GAAG;IACjB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE;QACJ,EAAE,EAAE,MAAM,CAAA;QACV,KAAK,EAAE,MAAM,CAAA;QACb,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;QACnB,IAAI,CAAC,EAAE,MAAM,CAAA;QACb,IAAI,CAAC,EAAE;YACL,GAAG,EAAE,MAAM,CAAA;SACZ,CAAA;QACD,QAAQ,CAAC,EAAE,MAAM,CAAA;QACjB,UAAU,CAAC,EAAE,OAAO,CAAA;KACrB,CAAA;IACD,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,IAAI,CAAC,EAAE,OAAO,CAAA;CACf,CAAC;AAgEF,iBAAS,cAAc;WAyKT,OAAO,IAA6B;;yBATpB,GAAG;+BACG,GAAG;;;;EAatC;AAeD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;4FAQnB,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 "./SidebarElement.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-10d3d1f0"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
a as default
|
|
7
7
|
};
|