@scalar/api-reference 1.25.119 → 1.25.121
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 +38 -0
- package/dist/browser/standalone.js +7598 -7503
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/Card/CardFooter.vue.d.ts.map +1 -1
- package/dist/components/Card/CardFooter.vue.js +2 -2
- package/dist/components/Card/CardHeader.vue.d.ts.map +1 -1
- package/dist/components/Card/CardHeader.vue.js +2 -2
- package/dist/components/Content/Content.vue.d.ts.map +1 -1
- package/dist/components/Content/Content.vue.js +2 -2
- package/dist/components/Content/Content.vue2.js +59 -51
- 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 +66 -70
- package/dist/components/Content/Tag/TagAccordion.vue.d.ts +1 -2
- package/dist/components/Content/Tag/TagAccordion.vue.d.ts.map +1 -1
- package/dist/components/Content/Tag/TagAccordion.vue.js +2 -2
- package/dist/components/Content/Tag/TagAccordion.vue2.js +3 -4
- package/dist/components/Layouts/Layouts.vue.d.ts.map +1 -1
- package/dist/components/ScreenReader.vue.d.ts.map +1 -1
- package/dist/components/ScreenReader.vue.js +2 -2
- package/dist/features/ApiClientModal/useApiClient.d.ts +774 -954
- package/dist/features/ApiClientModal/useApiClient.d.ts.map +1 -1
- package/dist/features/Operation/components/ParameterListItem.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/ParameterListItem.vue.js +3 -3
- package/dist/features/Operation/components/ParameterListItem.vue2.js +49 -43
- package/dist/helpers/get-request.d.ts +7 -7
- package/dist/helpers/get-request.d.ts.map +1 -1
- package/dist/helpers/parse.d.ts.map +1 -1
- package/dist/helpers/parse.js +14 -31
- package/dist/index.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +12 -12
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CardFooter.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Card/CardFooter.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CardFooter.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Card/CardFooter.vue"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAY/C,iBAAS,cAAc;WA6CT,OAAO,IAA6B;;yBARrB,GAAG;;;;EAa/B;AASD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,uTAOnB,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 "./CardFooter.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-7621d1be"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CardHeader.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Card/CardHeader.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CardHeader.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Card/CardHeader.vue"],"names":[],"mappings":"AAoDA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAY/C,iBAAS,cAAc;WA+DT,OAAO,IAA6B;;yBATrB,GAAG;yBACH,GAAG;;;;EAa/B;AASD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,uTAOnB,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 "./CardHeader.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const e = /* @__PURE__ */ r(o, [["__scopeId", "data-v-838dc259"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
e as default
|
|
7
7
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Content.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Content/Content.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Content.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Content/Content.vue"],"names":[],"mappings":"AAkPA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAchD,KAAK,WAAW,GAAG;IACf,UAAU,EAAE,IAAI,CAAA;IAChB,MAAM,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAA;CAC9B,CAAC;AA8BJ,iBAAS,cAAc;WA2NT,OAAO,IAA6B;;uBAVvB,GAAG;+BACM,GAAG;qBACb,GAAG;;;;EAa5B;AA6BD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;YA7RR,QAAQ,GAAG,SAAS;6EAoS/B,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAgBpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -2,7 +2,7 @@ import o from "./Content.vue2.js";
|
|
|
2
2
|
/* empty css */
|
|
3
3
|
/* empty css */
|
|
4
4
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
-
const
|
|
5
|
+
const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-42cfaf8d"]]);
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
a as default
|
|
8
8
|
};
|
|
@@ -1,72 +1,80 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useWorkspace as
|
|
3
|
-
import { RequestAuth as
|
|
4
|
-
import { ScalarErrorBoundary as
|
|
5
|
-
import
|
|
1
|
+
import { defineComponent as W, computed as L, openBlock as s, createElementBlock as r, Fragment as p, createStaticVNode as j, createElementVNode as h, renderSlot as m, createVNode as d, unref as a, createBlock as o, withCtx as g, normalizeClass as q, createCommentVNode as l, renderList as z } from "vue";
|
|
2
|
+
import { useWorkspace as F, useActiveEntities as G } from "@scalar/api-client/store";
|
|
3
|
+
import { RequestAuth as I } from "@scalar/api-client/views/Request/RequestSection/RequestAuth";
|
|
4
|
+
import { ScalarErrorBoundary as O } from "@scalar/components";
|
|
5
|
+
import R from "./Lazy/Loading.vue.js";
|
|
6
6
|
/* empty css */
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
7
|
+
import D from "./Introduction/Introduction.vue.js";
|
|
8
|
+
import H from "../../features/BaseUrl/BaseUrl.vue.js";
|
|
9
|
+
import J from "./ClientLibraries/ClientLibraries.vue.js";
|
|
10
10
|
import b from "./Tag/TagList.vue.js";
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import { useSidebar as
|
|
15
|
-
import { hasModels as
|
|
11
|
+
import K from "../../features/Operation/Webhooks.vue.js";
|
|
12
|
+
import P from "./Models/ModelsAccordion.vue.js";
|
|
13
|
+
import Q from "./Models/Models.vue.js";
|
|
14
|
+
import { useSidebar as T } from "../../hooks/useSidebar.js";
|
|
15
|
+
import { hasModels as X } from "../../helpers/hasModels.js";
|
|
16
16
|
import { getModels as w } from "../../helpers/getModels.js";
|
|
17
|
-
const
|
|
17
|
+
const Y = { class: "narrow-references-container" }, Z = {
|
|
18
18
|
key: 0,
|
|
19
19
|
class: "scalar-client introduction-card-item [--scalar-address-bar-height:0px] divide-y text-sm"
|
|
20
|
-
},
|
|
20
|
+
}, _ = {
|
|
21
21
|
key: 1,
|
|
22
22
|
class: "scalar-client introduction-card-item"
|
|
23
|
-
},
|
|
23
|
+
}, ve = /* @__PURE__ */ W({
|
|
24
24
|
__name: "Content",
|
|
25
25
|
props: {
|
|
26
26
|
parsedSpec: {},
|
|
27
27
|
layout: { default: "modern" }
|
|
28
28
|
},
|
|
29
29
|
setup(C) {
|
|
30
|
-
const
|
|
31
|
-
|
|
30
|
+
const V = C, { hideModels: E } = T(), { securitySchemes: $ } = F(), {
|
|
31
|
+
activeCollection: n,
|
|
32
|
+
activeEnvVariables: M,
|
|
33
|
+
activeEnvironment: A,
|
|
34
|
+
activeServer: B,
|
|
35
|
+
activeWorkspace: f
|
|
36
|
+
} = G(), N = L(
|
|
37
|
+
() => V.layout === "classic" ? "after" : "aside"
|
|
32
38
|
);
|
|
33
|
-
return (e,
|
|
39
|
+
return (e, u) => {
|
|
34
40
|
var v, S, y, k;
|
|
35
|
-
return
|
|
36
|
-
|
|
37
|
-
h("div",
|
|
41
|
+
return s(), r(p, null, [
|
|
42
|
+
u[0] || (u[0] = j('<div class="section-flare" data-v-42cfaf8d><div class="section-flare-item" data-v-42cfaf8d></div><div class="section-flare-item" data-v-42cfaf8d></div><div class="section-flare-item" data-v-42cfaf8d></div><div class="section-flare-item" data-v-42cfaf8d></div><div class="section-flare-item" data-v-42cfaf8d></div><div class="section-flare-item" data-v-42cfaf8d></div><div class="section-flare-item" data-v-42cfaf8d></div><div class="section-flare-item" data-v-42cfaf8d></div></div>', 1)),
|
|
43
|
+
h("div", Y, [
|
|
38
44
|
m(e.$slots, "start", {}, void 0, !0),
|
|
39
|
-
d(
|
|
45
|
+
d(a(R), {
|
|
40
46
|
layout: e.layout,
|
|
41
47
|
parsedSpec: e.parsedSpec
|
|
42
48
|
}, null, 8, ["layout", "parsedSpec"]),
|
|
43
|
-
(S = (v = e.parsedSpec) == null ? void 0 : v.info) != null && S.title || (k = (y = e.parsedSpec) == null ? void 0 : y.info) != null && k.description ? (
|
|
49
|
+
(S = (v = e.parsedSpec) == null ? void 0 : v.info) != null && S.title || (k = (y = e.parsedSpec) == null ? void 0 : y.info) != null && k.description ? (s(), o(a(D), {
|
|
44
50
|
key: 0,
|
|
45
51
|
info: e.parsedSpec.info,
|
|
46
52
|
parsedSpec: e.parsedSpec
|
|
47
53
|
}, {
|
|
48
|
-
[
|
|
49
|
-
d(
|
|
54
|
+
[N.value]: g(() => [
|
|
55
|
+
d(a(O), null, {
|
|
50
56
|
default: g(() => {
|
|
51
|
-
var i,
|
|
57
|
+
var i, t, c;
|
|
52
58
|
return [
|
|
53
59
|
h("div", {
|
|
54
|
-
class:
|
|
60
|
+
class: q(["introduction-card", { "introduction-card-row": e.layout === "classic" }])
|
|
55
61
|
}, [
|
|
56
|
-
(
|
|
57
|
-
d(
|
|
62
|
+
(t = (i = a(n)) == null ? void 0 : i.servers) != null && t.length ? (s(), r("div", Z, [
|
|
63
|
+
d(a(H))
|
|
58
64
|
])) : l("", !0),
|
|
59
|
-
|
|
60
|
-
d(
|
|
61
|
-
collection:
|
|
65
|
+
a(n) && a(f) && Object.keys(a($) ?? {}).length ? (s(), r("div", _, [
|
|
66
|
+
d(a(I), {
|
|
67
|
+
collection: a(n),
|
|
68
|
+
envVariables: a(M),
|
|
69
|
+
environment: a(A),
|
|
62
70
|
layout: "reference",
|
|
63
|
-
selectedSecuritySchemeUids: ((c =
|
|
64
|
-
server:
|
|
71
|
+
selectedSecuritySchemeUids: ((c = a(n)) == null ? void 0 : c.selectedSecuritySchemeUids) ?? [],
|
|
72
|
+
server: a(B),
|
|
65
73
|
title: "Authentication",
|
|
66
|
-
workspace:
|
|
67
|
-
}, null, 8, ["collection", "selectedSecuritySchemeUids", "server", "workspace"])
|
|
74
|
+
workspace: a(f)
|
|
75
|
+
}, null, 8, ["collection", "envVariables", "environment", "selectedSecuritySchemeUids", "server", "workspace"])
|
|
68
76
|
])) : l("", !0),
|
|
69
|
-
d(
|
|
77
|
+
d(a(J), { class: "introduction-card-item" })
|
|
70
78
|
], 2)
|
|
71
79
|
];
|
|
72
80
|
}),
|
|
@@ -75,33 +83,33 @@ const T = { class: "narrow-references-container" }, X = {
|
|
|
75
83
|
]),
|
|
76
84
|
_: 2
|
|
77
85
|
}, 1032, ["info", "parsedSpec"])) : m(e.$slots, "empty-state", { key: 1 }, void 0, !0),
|
|
78
|
-
e.parsedSpec.tags ? (
|
|
79
|
-
e.parsedSpec["x-tagGroups"] ? (
|
|
86
|
+
e.parsedSpec.tags ? (s(), r(p, { key: 2 }, [
|
|
87
|
+
e.parsedSpec["x-tagGroups"] ? (s(!0), r(p, { key: 0 }, z(e.parsedSpec["x-tagGroups"], (i) => (s(), o(a(b), {
|
|
80
88
|
key: i.name,
|
|
81
89
|
layout: e.layout,
|
|
82
90
|
spec: e.parsedSpec,
|
|
83
|
-
tags: i.tags.map((
|
|
91
|
+
tags: i.tags.map((t) => {
|
|
84
92
|
var c;
|
|
85
|
-
return (c = e.parsedSpec.tags) == null ? void 0 : c.find((
|
|
86
|
-
}).filter((
|
|
87
|
-
}, null, 8, ["layout", "spec", "tags"]))), 128)) : (
|
|
93
|
+
return (c = e.parsedSpec.tags) == null ? void 0 : c.find((U) => U.name === t);
|
|
94
|
+
}).filter((t) => !!t)
|
|
95
|
+
}, null, 8, ["layout", "spec", "tags"]))), 128)) : (s(), o(a(b), {
|
|
88
96
|
key: 1,
|
|
89
97
|
layout: e.layout,
|
|
90
98
|
spec: e.parsedSpec,
|
|
91
99
|
tags: e.parsedSpec.tags
|
|
92
100
|
}, null, 8, ["layout", "spec", "tags"]))
|
|
93
101
|
], 64)) : l("", !0),
|
|
94
|
-
e.parsedSpec.webhooks ? (
|
|
102
|
+
e.parsedSpec.webhooks ? (s(), o(a(K), {
|
|
95
103
|
key: 3,
|
|
96
104
|
webhooks: e.parsedSpec.webhooks
|
|
97
105
|
}, null, 8, ["webhooks"])) : l("", !0),
|
|
98
|
-
|
|
99
|
-
e.layout === "classic" ? (
|
|
106
|
+
a(X)(e.parsedSpec) && !a(E) ? (s(), r(p, { key: 4 }, [
|
|
107
|
+
e.layout === "classic" ? (s(), o(a(P), {
|
|
100
108
|
key: 0,
|
|
101
|
-
schemas:
|
|
102
|
-
}, null, 8, ["schemas"])) : (
|
|
109
|
+
schemas: a(w)(e.parsedSpec)
|
|
110
|
+
}, null, 8, ["schemas"])) : (s(), o(a(Q), {
|
|
103
111
|
key: 1,
|
|
104
|
-
schemas:
|
|
112
|
+
schemas: a(w)(e.parsedSpec)
|
|
105
113
|
}, null, 8, ["schemas"]))
|
|
106
114
|
], 64)) : l("", !0),
|
|
107
115
|
m(e.$slots, "end", {}, void 0, !0)
|
|
@@ -111,5 +119,5 @@ const T = { class: "narrow-references-container" }, X = {
|
|
|
111
119
|
}
|
|
112
120
|
});
|
|
113
121
|
export {
|
|
114
|
-
|
|
122
|
+
ve as default
|
|
115
123
|
};
|
|
@@ -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":"AAsfA;;;;;GAKG;AAEH,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;IACpB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,YAAY,CAAC,EAAE,OAAO,CAAA;CACvB,CAAC;;cANW,OAAO;WAFV,MAAM;aAGJ,OAAO;kBAIF,OAAO;;AA0b1B,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 p = /* @__PURE__ */ r(o, [["__scopeId", "data-v-f5c211dc"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
p as default
|
|
7
7
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as Y, computed as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
1
|
+
import { defineComponent as Y, computed as f, openBlock as l, createElementBlock as a, normalizeClass as G, createVNode as i, createSlots as ee, withCtx as h, createTextVNode as b, toDisplayString as u, unref as s, createCommentVNode as n, createElementVNode as v, Fragment as p, renderList as m, createBlock as k } from "vue";
|
|
2
|
+
import { Disclosure as te, DisclosurePanel as le, DisclosureButton as ae } from "@headlessui/vue";
|
|
3
|
+
import { ScalarMarkdown as _, ScalarIcon as oe } from "@scalar/components";
|
|
4
|
+
import { formatExample as re } from "./helpers/formatExample.js";
|
|
5
|
+
import { optimizeValueForDisplay as se, discriminators as J } from "./helpers/optimizeValueForDisplay.js";
|
|
6
|
+
import g from "./Schema.vue.js";
|
|
7
7
|
import ne from "./SchemaPropertyHeading.vue.js";
|
|
8
8
|
const ie = {
|
|
9
9
|
key: 0,
|
|
@@ -52,7 +52,7 @@ const ie = {
|
|
|
52
52
|
withExamples: { type: Boolean, default: !0 }
|
|
53
53
|
},
|
|
54
54
|
setup(K) {
|
|
55
|
-
const Q = K,
|
|
55
|
+
const Q = K, x = {
|
|
56
56
|
integer: {
|
|
57
57
|
_default: "Integer numbers.",
|
|
58
58
|
int32: "Signed 32-bit integers (commonly used integer type).",
|
|
@@ -65,21 +65,17 @@ const ie = {
|
|
|
65
65
|
byte: "base64-encoded characters, for example, U3dhZ2dlciByb2Nrcw==",
|
|
66
66
|
binary: "binary data, used to describe files"
|
|
67
67
|
}
|
|
68
|
-
}, j =
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
}, d = function(t) {
|
|
73
|
-
var o;
|
|
74
|
-
return (t == null ? void 0 : t.enum) || ((o = t == null ? void 0 : t.items) == null ? void 0 : o.enum) || [];
|
|
75
|
-
}, S = h(
|
|
68
|
+
}, E = (t, r) => r != null && r.properties || r != null && r.additionalProperties || r != null && r.patternProperties ? null : t || (r == null ? void 0 : r.description) || null, j = (t) => !t || !x[t.type] ? null : x[t.type][t.format || "_default"], d = (t) => {
|
|
69
|
+
var r;
|
|
70
|
+
return (t == null ? void 0 : t.enum) || ((r = t == null ? void 0 : t.items) == null ? void 0 : r.enum) || [];
|
|
71
|
+
}, B = f(
|
|
76
72
|
() => d(e.value).length > 9
|
|
77
|
-
),
|
|
78
|
-
() => d(e.value).slice(0,
|
|
79
|
-
), X =
|
|
80
|
-
() => d(e.value).slice(
|
|
81
|
-
), e =
|
|
82
|
-
return (t,
|
|
73
|
+
), S = f(() => B.value ? 5 : 9), W = f(
|
|
74
|
+
() => d(e.value).slice(0, S.value)
|
|
75
|
+
), X = f(
|
|
76
|
+
() => d(e.value).slice(S.value)
|
|
77
|
+
), e = f(() => se(Q.value)), D = J.find((t) => !e.value || typeof e.value != "object" ? !1 : t in e.value || e.value.items && typeof e.value.items == "object" && t in e.value.items);
|
|
78
|
+
return (t, r) => {
|
|
83
79
|
var w, A, C, P, F, N, V, q, z, I, L, T, H, O, R, U;
|
|
84
80
|
return l(), a("div", {
|
|
85
81
|
class: G(["property", [
|
|
@@ -99,65 +95,65 @@ const ie = {
|
|
|
99
95
|
}, ee({ _: 2 }, [
|
|
100
96
|
t.name ? {
|
|
101
97
|
name: "name",
|
|
102
|
-
fn:
|
|
103
|
-
|
|
98
|
+
fn: h(() => [
|
|
99
|
+
b(u(t.name), 1)
|
|
104
100
|
]),
|
|
105
101
|
key: "0"
|
|
106
102
|
} : void 0,
|
|
107
103
|
(A = e.value) != null && A.example ? {
|
|
108
104
|
name: "example",
|
|
109
|
-
fn:
|
|
110
|
-
|
|
105
|
+
fn: h(() => [
|
|
106
|
+
b(" Example: " + u(e.value.example), 1)
|
|
111
107
|
]),
|
|
112
108
|
key: "1"
|
|
113
109
|
} : void 0
|
|
114
110
|
]), 1032, ["additional", "enum", "pattern", "required", "value"]),
|
|
115
|
-
|
|
116
|
-
i(s(
|
|
117
|
-
value:
|
|
111
|
+
E(t.description, e.value) ? (l(), a("div", ie, [
|
|
112
|
+
i(s(_), {
|
|
113
|
+
value: E(t.description, e.value)
|
|
118
114
|
}, null, 8, ["value"])
|
|
119
|
-
])) :
|
|
120
|
-
i(s(
|
|
121
|
-
value:
|
|
115
|
+
])) : j(e.value) ? (l(), a("div", ue, [
|
|
116
|
+
i(s(_), {
|
|
117
|
+
value: j(e.value) || ""
|
|
122
118
|
}, null, 8, ["value"])
|
|
123
119
|
])) : n("", !0),
|
|
124
120
|
t.withExamples && ((C = e.value) != null && C.example || (F = (P = e.value) == null ? void 0 : P.items) != null && F.example) ? (l(), a("div", pe, [
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
((N = e.value) == null ? void 0 : N.example) || s(
|
|
121
|
+
r[0] || (r[0] = v("span", { class: "property-example-label" }, "Example", -1)),
|
|
122
|
+
v("code", ce, u(s(re)(
|
|
123
|
+
((N = e.value) == null ? void 0 : N.example) || s(D) && ((V = e.value) == null ? void 0 : V.items) && typeof e.value.items == "object" && e.value.items[s(D)]
|
|
128
124
|
)), 1)
|
|
129
125
|
])) : n("", !0),
|
|
130
126
|
(q = e.value) != null && q.examples && typeof e.value.examples == "object" && Object.keys(e.value.examples).length > 0 ? (l(), a("div", me, [
|
|
131
|
-
|
|
132
|
-
(l(!0), a(p, null, m(e.value.examples, (
|
|
127
|
+
v("span", de, u(Object.keys(e.value.examples).length === 1 ? "Example" : "Examples"), 1),
|
|
128
|
+
(l(!0), a(p, null, m(e.value.examples, (o, c) => (l(), a("code", {
|
|
133
129
|
key: c,
|
|
134
130
|
class: "property-example-value"
|
|
135
|
-
}, u(
|
|
131
|
+
}, u(o), 1))), 128))
|
|
136
132
|
])) : n("", !0),
|
|
137
133
|
((z = d(e.value)) == null ? void 0 : z.length) > 0 ? (l(), a("div", ve, [
|
|
138
134
|
Array.isArray((I = e.value) == null ? void 0 : I["x-enumDescriptions"]) ? (l(), a("div", ye, [
|
|
139
|
-
(l(!0), a(p, null, m(d(e.value), (
|
|
140
|
-
key:
|
|
135
|
+
(l(!0), a(p, null, m(d(e.value), (o) => (l(), a("div", {
|
|
136
|
+
key: o,
|
|
141
137
|
class: "property"
|
|
142
138
|
}, [
|
|
143
|
-
|
|
144
|
-
|
|
139
|
+
v("div", fe, [
|
|
140
|
+
v("div", he, u(o), 1)
|
|
145
141
|
]),
|
|
146
|
-
|
|
147
|
-
i(s(
|
|
148
|
-
value: e.value["x-enumDescriptions"][
|
|
142
|
+
v("div", ge, [
|
|
143
|
+
i(s(_), {
|
|
144
|
+
value: e.value["x-enumDescriptions"][o]
|
|
149
145
|
}, null, 8, ["value"])
|
|
150
146
|
])
|
|
151
147
|
]))), 128))
|
|
152
148
|
])) : (l(), a("ul", be, [
|
|
153
|
-
(l(!0), a(p, null, m(W.value, (
|
|
154
|
-
key:
|
|
149
|
+
(l(!0), a(p, null, m(W.value, (o) => (l(), a("li", {
|
|
150
|
+
key: o,
|
|
155
151
|
class: "property-enum-value"
|
|
156
|
-
}, u(
|
|
157
|
-
|
|
158
|
-
default:
|
|
159
|
-
i(s(
|
|
160
|
-
default:
|
|
152
|
+
}, u(o), 1))), 128)),
|
|
153
|
+
B.value ? (l(), k(s(te), { key: 0 }, {
|
|
154
|
+
default: h(({ open: o }) => [
|
|
155
|
+
i(s(le), null, {
|
|
156
|
+
default: h(() => [
|
|
161
157
|
(l(!0), a(p, null, m(X.value, (c) => (l(), a("li", {
|
|
162
158
|
key: c,
|
|
163
159
|
class: "property-enum-value"
|
|
@@ -165,14 +161,14 @@ const ie = {
|
|
|
165
161
|
]),
|
|
166
162
|
_: 1
|
|
167
163
|
}),
|
|
168
|
-
i(s(
|
|
169
|
-
default:
|
|
170
|
-
i(s(
|
|
171
|
-
class: G(["enum-toggle-button-icon", { "enum-toggle-button-icon--open":
|
|
164
|
+
i(s(ae), { class: "enum-toggle-button" }, {
|
|
165
|
+
default: h(() => [
|
|
166
|
+
i(s(oe), {
|
|
167
|
+
class: G(["enum-toggle-button-icon", { "enum-toggle-button-icon--open": o }]),
|
|
172
168
|
icon: "Add",
|
|
173
169
|
size: "sm"
|
|
174
170
|
}, null, 8, ["class"]),
|
|
175
|
-
|
|
171
|
+
b(" " + u(o ? "Hide values" : "Show all values"), 1)
|
|
176
172
|
]),
|
|
177
173
|
_: 2
|
|
178
174
|
}, 1024)
|
|
@@ -182,7 +178,7 @@ const ie = {
|
|
|
182
178
|
]))
|
|
183
179
|
])) : n("", !0),
|
|
184
180
|
((L = e.value) == null ? void 0 : L.type) === "object" && ((T = e.value) != null && T.properties || (H = e.value) != null && H.additionalProperties) ? (l(), a("div", ke, [
|
|
185
|
-
i(
|
|
181
|
+
i(g, {
|
|
186
182
|
compact: t.compact,
|
|
187
183
|
level: t.level + 1,
|
|
188
184
|
value: e.value
|
|
@@ -190,34 +186,34 @@ const ie = {
|
|
|
190
186
|
])) : n("", !0),
|
|
191
187
|
(O = e.value) != null && O.items && typeof e.value.items == "object" && "type" in e.value.items && typeof e.value.items.type == "string" ? (l(), a(p, { key: 6 }, [
|
|
192
188
|
["object"].includes((U = (R = e.value) == null ? void 0 : R.items) == null ? void 0 : U.type) ? (l(), a("div", _e, [
|
|
193
|
-
i(
|
|
189
|
+
i(g, {
|
|
194
190
|
compact: t.compact,
|
|
195
191
|
level: t.level + 1,
|
|
196
192
|
value: e.value.items
|
|
197
193
|
}, null, 8, ["compact", "level", "value"])
|
|
198
194
|
])) : n("", !0)
|
|
199
195
|
], 64)) : n("", !0),
|
|
200
|
-
(l(!0), a(p, null, m(s(J), (
|
|
196
|
+
(l(!0), a(p, null, m(s(J), (o) => {
|
|
201
197
|
var c, Z;
|
|
202
|
-
return l(), a(p, { key:
|
|
203
|
-
(c = e.value) != null && c[
|
|
204
|
-
(l(!0), a(p, null, m(e.value[
|
|
198
|
+
return l(), a(p, { key: o }, [
|
|
199
|
+
(c = e.value) != null && c[o] ? (l(), a("div", xe, [
|
|
200
|
+
(l(!0), a(p, null, m(e.value[o], (y) => {
|
|
205
201
|
var M, $;
|
|
206
|
-
return l(),
|
|
207
|
-
key:
|
|
202
|
+
return l(), k(g, {
|
|
203
|
+
key: y.id,
|
|
208
204
|
compact: t.compact,
|
|
209
205
|
level: t.level + 1,
|
|
210
|
-
noncollapsible: Array.isArray((M = e.value) == null ? void 0 : M[
|
|
211
|
-
value:
|
|
206
|
+
noncollapsible: Array.isArray((M = e.value) == null ? void 0 : M[o]) && (($ = e.value) == null ? void 0 : $[o].length) === 1,
|
|
207
|
+
value: y
|
|
212
208
|
}, null, 8, ["compact", "level", "noncollapsible", "value"]);
|
|
213
209
|
}), 128))
|
|
214
210
|
])) : n("", !0),
|
|
215
|
-
(Z = e.value) != null && Z.items && typeof
|
|
216
|
-
(l(!0), a(p, null, m(e.value.items[
|
|
217
|
-
key:
|
|
211
|
+
(Z = e.value) != null && Z.items && typeof o == "string" && typeof e.value.items == "object" && o in e.value.items && Array.isArray(e.value.items[o]) && t.level < 3 ? (l(), a("div", Ee, [
|
|
212
|
+
(l(!0), a(p, null, m(e.value.items[o], (y) => (l(), k(g, {
|
|
213
|
+
key: y.id,
|
|
218
214
|
compact: t.compact,
|
|
219
215
|
level: t.level + 1,
|
|
220
|
-
value:
|
|
216
|
+
value: y
|
|
221
217
|
}, null, 8, ["compact", "level", "value"]))), 128))
|
|
222
218
|
])) : n("", !0)
|
|
223
219
|
], 64);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TagAccordion.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/TagAccordion.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TagAccordion.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/TagAccordion.vue"],"names":[],"mappings":"AA+CA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAQ/C,KAAK,WAAW,GAAG;IACjB,GAAG,EAAE,GAAG,CAAA;CACT,CAAC;AAUF,iBAAS,cAAc;WA4ET,OAAO,IAA6B;;yBARpB,GAAG;;;;EAahC;AAaD,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 "./TagAccordion.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-43e1c813"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as n, openBlock as i, createBlock as c, unref as e, withCtx as o, createVNode as a, createTextVNode as
|
|
1
|
+
import { defineComponent as n, openBlock as i, createBlock as c, unref as e, withCtx as o, createVNode as a, createTextVNode as l, toDisplayString as s, renderSlot as d } from "vue";
|
|
2
2
|
import { ScalarMarkdown as m } from "@scalar/components";
|
|
3
3
|
import p from "../../Section/SectionContainerAccordion.vue.js";
|
|
4
4
|
import f from "../../Section/SectionHeader.vue.js";
|
|
@@ -7,8 +7,7 @@ import { useNavState as g } from "../../../hooks/useNavState.js";
|
|
|
7
7
|
const N = /* @__PURE__ */ n({
|
|
8
8
|
__name: "TagAccordion",
|
|
9
9
|
props: {
|
|
10
|
-
tag: {}
|
|
11
|
-
spec: {}
|
|
10
|
+
tag: {}
|
|
12
11
|
},
|
|
13
12
|
setup(_) {
|
|
14
13
|
const { getTagId: r } = g();
|
|
@@ -23,7 +22,7 @@ const N = /* @__PURE__ */ n({
|
|
|
23
22
|
id: e(r)(t.tag)
|
|
24
23
|
}, {
|
|
25
24
|
default: o(() => [
|
|
26
|
-
s(
|
|
25
|
+
l(s(t.tag.name), 1)
|
|
27
26
|
]),
|
|
28
27
|
_: 1
|
|
29
28
|
}, 8, ["id"])
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Layouts.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Layouts/Layouts.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Layouts.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Layouts/Layouts.vue"],"names":[],"mappings":"AAwCA;;GAEG;AACH,OAAO,KAAK,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAA;AA2B7E,iBAAS,cAAc;WAuET,OAAO,IAA6B;;;;EAKjD;AAWD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;kFAOnB,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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScreenReader.vue.d.ts","sourceRoot":"","sources":["../../src/components/ScreenReader.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ScreenReader.vue.d.ts","sourceRoot":"","sources":["../../src/components/ScreenReader.vue"],"names":[],"mappings":"AAkCA,KAAK,WAAW,GAAG;IACf,EAAE,CAAC,EAAE,OAAO,CAAA;CACb,CAAC;AAgBJ,iBAAS,cAAc;WA6CT,OAAO,IAA6B;;yBATrB,GAAG;yBACH,GAAG;;;;EAa/B;AASD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;QA7EZ,OAAO;6EAoFd,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAgBpG,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 e from "./ScreenReader.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import o from "../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const f = /* @__PURE__ */ o(e, [["__scopeId", "data-v-df2e1026"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
f as default
|
|
7
7
|
};
|