@scalar/api-reference 1.24.73 → 1.24.75
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 +12564 -12621
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/ApiReference.vue.d.ts.map +1 -1
- package/dist/components/ApiReference.vue.js +37 -36
- package/dist/components/Card/Card.vue.js +4 -4
- package/dist/components/Card/CardContent.vue.js +2 -2
- package/dist/components/Content/ClientLibraries/ClientLibraries.vue.js +2 -2
- package/dist/components/Content/ClientLibraries/ClientLibraries.vue2.js +4 -4
- package/dist/components/Content/ClientLibraries/ClientSelector.vue.js +2 -2
- package/dist/components/Content/ClientLibraries/ClientSelector.vue2.js +9 -9
- package/dist/components/Content/Content.vue.js +1 -1
- package/dist/components/Content/Content.vue2.js +19 -19
- package/dist/components/Content/Operation/ContentTypeSelect.vue.d.ts +27 -0
- package/dist/components/Content/Operation/ContentTypeSelect.vue.d.ts.map +1 -0
- package/dist/components/Content/Operation/ContentTypeSelect.vue.js +7 -0
- package/dist/components/Content/Operation/ContentTypeSelect.vue2.js +41 -0
- package/dist/components/Content/Operation/EndpointDetails.vue.d.ts.map +1 -1
- package/dist/components/Content/Operation/EndpointDetails.vue.js +10 -7
- package/dist/components/Content/Operation/ParameterItem.vue.d.ts +5 -0
- package/dist/components/Content/Operation/ParameterItem.vue.d.ts.map +1 -1
- package/dist/components/Content/Operation/ParameterItem.vue.js +2 -2
- package/dist/components/Content/Operation/ParameterItem.vue2.js +54 -19
- package/dist/components/Content/Operation/Parameters.vue.d.ts +5 -0
- package/dist/components/Content/Operation/Parameters.vue.d.ts.map +1 -1
- package/dist/components/Content/Operation/Parameters.vue.js +2 -2
- package/dist/components/Content/Operation/Parameters.vue2.js +16 -14
- package/dist/components/Content/Operation/PathResponses/PathResponses.vue.js +1 -1
- package/dist/components/Content/Operation/PathResponses/PathResponses.vue2.js +1 -1
- package/dist/components/Content/Operation/RequestBody.vue.js +1 -1
- package/dist/components/Content/Operation/RequestBodyPropertiesChild.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/Schema.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/Schema.vue.js +3 -3
- package/dist/components/Content/Schema/Schema.vue2.js +57 -65
- package/dist/components/Content/Schema/SchemaProperty.vue.js +2 -2
- package/dist/components/Content/Schema/SchemaProperty.vue2.js +1 -1
- package/dist/components/Content/Tag/Endpoints.vue.d.ts.map +1 -1
- package/dist/components/Content/Tag/Endpoints.vue.js +2 -2
- package/dist/components/Content/Tag/Endpoints.vue2.js +63 -58
- package/dist/components/Content/Tag/Tag.vue.d.ts.map +1 -1
- package/dist/components/Content/Tag/Tag.vue.js +2 -2
- package/dist/components/Content/Webhooks/Webhooks.vue.d.ts.map +1 -1
- package/dist/components/Content/Webhooks/Webhooks.vue.js +5 -76
- package/dist/components/Content/Webhooks/Webhooks.vue2.js +76 -2
- package/dist/components/DarkModeToggle/DarkModeToggle.vue.js +2 -2
- package/dist/components/DarkModeToggle/DarkModeToggle.vue2.js +3 -3
- package/dist/components/Layouts/ClassicLayout.vue.d.ts.map +1 -1
- package/dist/components/Layouts/ClassicLayout.vue.js +16 -15
- 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 +22 -21
- package/dist/components/Section/Section.vue.js +1 -1
- package/dist/components/Section/SectionContainer.vue.js +1 -1
- package/dist/components/ShowMoreButton.vue.d.ts.map +1 -1
- package/dist/components/ShowMoreButton.vue.js +2 -2
- package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/Sidebar.vue.js +2 -2
- package/dist/features/BaseUrl/ServerForm.vue.js +2 -2
- package/dist/features/BaseUrl/ServerForm.vue2.js +1 -1
- package/dist/features/Search/SearchButton.vue.js +2 -2
- package/dist/features/Search/SearchButton.vue2.js +1 -1
- package/dist/hooks/useDarkModeState.d.ts +1 -1
- package/dist/hooks/useDarkModeState.d.ts.map +1 -1
- package/dist/hooks/useDarkModeState.js +12 -12
- package/dist/hooks/useReactiveSpec.d.ts +2 -0
- package/dist/hooks/useReactiveSpec.d.ts.map +1 -1
- package/dist/hooks/useResponses.d.ts +2 -1
- package/dist/hooks/useResponses.d.ts.map +1 -1
- package/dist/hooks/useResponses.js +12 -11
- package/dist/index.js +1 -1
- package/dist/legacy/components/CardForm.vue.js +2 -2
- package/dist/legacy/components/CardFormTextInput.vue.d.ts.map +1 -1
- package/dist/legacy/components/CardFormTextInput.vue.js +1 -1
- package/dist/legacy/stores/useOpenApiStore.d.ts +2 -0
- package/dist/legacy/stores/useOpenApiStore.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types.d.ts +4 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +8 -8
|
@@ -1,27 +1,62 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
|
|
1
|
+
import { defineComponent as B, ref as u, computed as d, openBlock as l, createElementBlock as s, normalizeClass as g, createVNode as v, unref as f, createElementVNode as y, toDisplayString as h, createBlock as b, createCommentVNode as m } from "vue";
|
|
2
|
+
import { ScalarIcon as q } from "@scalar/components";
|
|
3
|
+
import w from "./ContentTypeSelect.vue.js";
|
|
4
|
+
import I from "../Schema/SchemaProperty.vue.js";
|
|
5
|
+
const S = { class: "parameter-item" }, V = { class: "parameter-item-name" }, T = { class: "parameter-item-type" }, j = {
|
|
6
|
+
key: 1,
|
|
7
|
+
class: "parameter-item-container parameter-item-container-markdown"
|
|
8
|
+
}, P = /* @__PURE__ */ B({
|
|
4
9
|
__name: "ParameterItem",
|
|
5
10
|
props: {
|
|
6
11
|
parameter: {},
|
|
7
|
-
showChildren: { type: Boolean, default: !1 }
|
|
12
|
+
showChildren: { type: Boolean, default: !1 },
|
|
13
|
+
collapsableItems: { type: Boolean, default: !1 }
|
|
8
14
|
},
|
|
9
|
-
setup(
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
15
|
+
setup(C) {
|
|
16
|
+
const t = C, r = u(!1), k = d(() => t.parameter.content ? Object.keys(t.parameter.content) : []), n = u(
|
|
17
|
+
k.value[0]
|
|
18
|
+
);
|
|
19
|
+
t.parameter.content && "application/json" in t.parameter.content && (n.value = "application/json");
|
|
20
|
+
const a = d(() => t.collapsableItems && t.parameter.content);
|
|
21
|
+
return (e, o) => {
|
|
22
|
+
var p, i;
|
|
23
|
+
return l(), s("li", S, [
|
|
24
|
+
a.value ? (l(), s("div", {
|
|
25
|
+
key: 0,
|
|
26
|
+
class: g(["flex parameter-item-trigger", { "parameter-item-trigger-open": r.value }]),
|
|
27
|
+
onClick: o[1] || (o[1] = (c) => r.value = !r.value)
|
|
28
|
+
}, [
|
|
29
|
+
v(f(q), {
|
|
30
|
+
class: "parameter-item-icon",
|
|
31
|
+
icon: r.value ? "ChevronDown" : "ChevronRight",
|
|
32
|
+
size: "md",
|
|
33
|
+
thickness: "1.75"
|
|
34
|
+
}, null, 8, ["icon"]),
|
|
35
|
+
y("span", V, h(e.parameter.name), 1),
|
|
36
|
+
y("span", T, h(e.parameter.description), 1),
|
|
37
|
+
a.value && t.parameter.content ? (l(), b(w, {
|
|
38
|
+
key: 0,
|
|
39
|
+
class: "parameter-item-content-type",
|
|
40
|
+
defaultValue: n.value,
|
|
41
|
+
requestBody: t.parameter,
|
|
42
|
+
onSelectContentType: o[0] || (o[0] = ({ contentType: c }) => n.value = c)
|
|
43
|
+
}, null, 8, ["defaultValue", "requestBody"])) : m("", !0)
|
|
44
|
+
], 2)) : m("", !0),
|
|
45
|
+
a.value && r.value || !a.value ? (l(), s("div", j, [
|
|
46
|
+
v(f(I), {
|
|
47
|
+
compact: "",
|
|
48
|
+
description: a.value ? "" : e.parameter.description,
|
|
49
|
+
level: 0,
|
|
50
|
+
name: a.value ? "" : e.parameter.name,
|
|
51
|
+
noncollapsible: e.showChildren,
|
|
52
|
+
required: e.parameter.required,
|
|
53
|
+
value: e.parameter.content ? (i = (p = e.parameter.content) == null ? void 0 : p[n.value]) == null ? void 0 : i.schema : e.parameter.schema
|
|
54
|
+
}, null, 8, ["description", "name", "noncollapsible", "required", "value"])
|
|
55
|
+
])) : m("", !0)
|
|
56
|
+
]);
|
|
57
|
+
};
|
|
23
58
|
}
|
|
24
59
|
});
|
|
25
60
|
export {
|
|
26
|
-
|
|
61
|
+
P as default
|
|
27
62
|
};
|
|
@@ -5,15 +5,20 @@ declare function __VLS_template(): {
|
|
|
5
5
|
declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
6
6
|
parameters?: Parameters[];
|
|
7
7
|
showChildren?: boolean;
|
|
8
|
+
collapsableItems?: boolean;
|
|
8
9
|
}>, {
|
|
9
10
|
showChildren: boolean;
|
|
11
|
+
collapsableItems: boolean;
|
|
10
12
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
11
13
|
parameters?: Parameters[];
|
|
12
14
|
showChildren?: boolean;
|
|
15
|
+
collapsableItems?: boolean;
|
|
13
16
|
}>, {
|
|
14
17
|
showChildren: boolean;
|
|
18
|
+
collapsableItems: boolean;
|
|
15
19
|
}>>>, {
|
|
16
20
|
showChildren: boolean;
|
|
21
|
+
collapsableItems: boolean;
|
|
17
22
|
}, {}>;
|
|
18
23
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
19
24
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Parameters.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Operation/Parameters.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Parameters.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Operation/Parameters.vue"],"names":[],"mappings":"AA0DA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AA4BnD,iBAAS,cAAc;mBA0CI,GAAG;EAe7B;AACD,QAAA,MAAM,eAAe;iBA/EJ,UAAU,EAAE;mBACV,OAAO;uBACH,OAAO;;;;;iBAFb,UAAU,EAAE;mBACV,OAAO;uBACH,OAAO;;;;;kBADX,OAAO;sBACH,OAAO;MAmF5B,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AAOxG,KAAK,kBAAkB,CAAC,CAAC,EAAE,CAAC,IAAI;KAC1B,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAC7C,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;QAAE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KAAC,CAAC,GACvC,CAAC,CAAC,CAAC,CAAC;CACP,CAAC;AAEN,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC;AAExD,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,7 +1,7 @@
|
|
|
1
1
|
import o from "./Parameters.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-425e9f7e"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|
|
@@ -1,32 +1,34 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
1
|
+
import { defineComponent as o, openBlock as t, createElementBlock as l, createElementVNode as s, renderSlot as n, Fragment as m, renderList as p, createBlock as d, createCommentVNode as c } from "vue";
|
|
2
|
+
import i from "./ParameterItem.vue.js";
|
|
3
3
|
const h = {
|
|
4
4
|
key: 0,
|
|
5
5
|
class: "parameters"
|
|
6
|
-
}, u = { class: "parameters-title" },
|
|
6
|
+
}, u = { class: "parameters-title" }, f = { class: "parameter-list" }, I = /* @__PURE__ */ o({
|
|
7
7
|
__name: "Parameters",
|
|
8
8
|
props: {
|
|
9
9
|
parameters: {},
|
|
10
|
-
showChildren: { type: Boolean, default: !1 }
|
|
10
|
+
showChildren: { type: Boolean, default: !1 },
|
|
11
|
+
collapsableItems: { type: Boolean, default: !1 }
|
|
11
12
|
},
|
|
12
|
-
setup(
|
|
13
|
+
setup(_) {
|
|
13
14
|
return (e, C) => {
|
|
14
|
-
var
|
|
15
|
-
return (
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
var r;
|
|
16
|
+
return (r = e.parameters) != null && r.length ? (t(), l("div", h, [
|
|
17
|
+
s("div", u, [
|
|
18
|
+
n(e.$slots, "title", {}, void 0, !0)
|
|
18
19
|
]),
|
|
19
|
-
|
|
20
|
-
(
|
|
20
|
+
s("ul", f, [
|
|
21
|
+
(t(!0), l(m, null, p(e.parameters, (a) => (t(), d(i, {
|
|
21
22
|
key: a.name,
|
|
23
|
+
collapsableItems: e.collapsableItems,
|
|
22
24
|
parameter: a,
|
|
23
25
|
showChildren: e.showChildren
|
|
24
|
-
}, null, 8, ["parameter", "showChildren"]))), 128))
|
|
26
|
+
}, null, 8, ["collapsableItems", "parameter", "showChildren"]))), 128))
|
|
25
27
|
])
|
|
26
|
-
])) :
|
|
28
|
+
])) : c("", !0);
|
|
27
29
|
};
|
|
28
30
|
}
|
|
29
31
|
});
|
|
30
32
|
export {
|
|
31
|
-
|
|
33
|
+
I as default
|
|
32
34
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./PathResponses.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
4
|
+
const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-7770f638"]]);
|
|
5
5
|
export {
|
|
6
6
|
a as default
|
|
7
7
|
};
|
|
@@ -9,7 +9,7 @@ import q from "../../../Card/CardContent.vue.js";
|
|
|
9
9
|
import G from "../../../Card/CardFooter.vue.js";
|
|
10
10
|
import Q from "../../../../features/ExampleRequest/ExamplePicker.vue.js";
|
|
11
11
|
import { useClipboard as X } from "../../../../hooks/useClipboard.js";
|
|
12
|
-
const Y = (u) => (P("data-v-
|
|
12
|
+
const Y = (u) => (P("data-v-7770f638"), u = u(), A(), u), Z = {
|
|
13
13
|
key: 1,
|
|
14
14
|
class: "scalar-card-checkbox"
|
|
15
15
|
}, $ = /* @__PURE__ */ Y(() => /* @__PURE__ */ w("span", { class: "scalar-card-checkbox-checkmark" }, null, -1)), z = { class: "scalar-card-container custom-scroll" }, ee = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./RequestBody.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-cd4290a3"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestBodyPropertiesChild.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Operation/RequestBodyPropertiesChild.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RequestBodyPropertiesChild.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Operation/RequestBodyPropertiesChild.vue"],"names":[],"mappings":"AAsCA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAA;;uBAIZ,iBAAiB;;uBAAjB,iBAAiB;;AA8E5D,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":"Schema.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/Schema.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Schema.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/Schema.vue"],"names":[],"mappings":"AAmRA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAA;;YAUvE,SAAS,CAAC,iBAAiB,GAC3B,SAAS,CAAC,YAAY,GACtB,SAAS,CAAC,iBAAiB,GAC3B,SAAS,CAAC,oBAAoB,GAC9B,WAAW,CAAC,YAAY,GACxB,WAAW,CAAC,iBAAiB,GAC7B,WAAW,CAAC,oBAAoB;IACpC,gCAAgC;YACxB,MAAM;WAEP,MAAM;IACb,+DAA+D;cACrD,OAAO;IACjB,2CAA2C;qBAC1B,OAAO;;;;YAdpB,SAAS,CAAC,iBAAiB,GAC3B,SAAS,CAAC,YAAY,GACtB,SAAS,CAAC,iBAAiB,GAC3B,SAAS,CAAC,oBAAoB,GAC9B,WAAW,CAAC,YAAY,GACxB,WAAW,CAAC,iBAAiB,GAC7B,WAAW,CAAC,oBAAoB;IACpC,gCAAgC;YACxB,MAAM;WAEP,MAAM;IACb,+DAA+D;cACrD,OAAO;IACjB,2CAA2C;qBAC1B,OAAO;;;;WANhB,MAAM;;AAyVlB,wBAMG;AAOH,KAAK,kBAAkB,CAAC,CAAC,EAAE,CAAC,IAAI;KAC1B,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAC7C,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;QAAE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KAAC,CAAC,GACvC,CAAC,CAAC,CAAC,CAAC;CACP,CAAC;AAEN,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC;AAExD,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,7 +1,7 @@
|
|
|
1
1
|
import o from "./Schema.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const
|
|
3
|
+
import a from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const c = /* @__PURE__ */ a(o, [["__scopeId", "data-v-ab8ac369"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
c as default
|
|
7
7
|
};
|
|
@@ -1,17 +1,12 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as D, computed as O, openBlock as l, createBlock as t, unref as r, withCtx as h, createElementVNode as P, normalizeClass as p, createElementBlock as o, createVNode as d, createCommentVNode as s, withDirectives as q, normalizeStyle as N, Fragment as i, createTextVNode as C, toDisplayString as S, vShow as V, renderList as z } from "vue";
|
|
2
2
|
import { Disclosure as A, DisclosureButton as E, DisclosurePanel as H } from "@headlessui/vue";
|
|
3
|
-
import { ScalarMarkdown as T, ScalarIcon as
|
|
4
|
-
import
|
|
3
|
+
import { ScalarMarkdown as T, ScalarIcon as w } from "@scalar/components";
|
|
4
|
+
import $ from "./SchemaHeading.vue.js";
|
|
5
5
|
import m from "./SchemaProperty.vue.js";
|
|
6
|
-
const
|
|
6
|
+
const F = {
|
|
7
7
|
key: 0,
|
|
8
8
|
class: "schema-card-description"
|
|
9
|
-
},
|
|
10
|
-
"fill-rule": "nonzero",
|
|
11
|
-
points: "14 8 8 8 8 14 6 14 6 8 0 8 0 6 6 6 6 0 8 0 8 6 14 6"
|
|
12
|
-
}, null, -1)), G = [
|
|
13
|
-
R
|
|
14
|
-
], Y = /* @__PURE__ */ j({
|
|
9
|
+
}, K = /* @__PURE__ */ D({
|
|
15
10
|
__name: "Schema",
|
|
16
11
|
props: {
|
|
17
12
|
value: {},
|
|
@@ -20,63 +15,60 @@ const L = (s) => (N("data-v-ba8edff4"), s = s(), V(), s), M = {
|
|
|
20
15
|
compact: { type: Boolean },
|
|
21
16
|
noncollapsible: { type: Boolean }
|
|
22
17
|
},
|
|
23
|
-
setup(
|
|
24
|
-
const
|
|
25
|
-
return (e,
|
|
18
|
+
setup(B) {
|
|
19
|
+
const v = B, y = O(() => !(v.noncollapsible || v.level === 0)), j = (e) => v.noncollapsible && e.stopPropagation();
|
|
20
|
+
return (e, I) => typeof e.value == "object" && Object.keys(e.value).length ? (l(), t(r(A), {
|
|
26
21
|
key: 0,
|
|
27
22
|
defaultOpen: e.noncollapsible
|
|
28
23
|
}, {
|
|
29
|
-
default:
|
|
30
|
-
var
|
|
24
|
+
default: h(({ open: n }) => {
|
|
25
|
+
var k;
|
|
31
26
|
return [
|
|
32
|
-
|
|
33
|
-
class:
|
|
27
|
+
P("div", {
|
|
28
|
+
class: p(["schema-card", [
|
|
34
29
|
`schema-card--level-${e.level}`,
|
|
35
30
|
{ "schema-card--compact": e.compact, "schema-card--open": n }
|
|
36
31
|
]])
|
|
37
32
|
}, [
|
|
38
|
-
(
|
|
39
|
-
|
|
33
|
+
(k = e.value) != null && k.description && typeof e.value.description == "string" ? (l(), o("div", F, [
|
|
34
|
+
d(r(T), {
|
|
40
35
|
value: e.value.description
|
|
41
36
|
}, null, 8, ["value"])
|
|
42
|
-
])) :
|
|
43
|
-
|
|
44
|
-
class:
|
|
37
|
+
])) : s("", !0),
|
|
38
|
+
P("div", {
|
|
39
|
+
class: p(["schema-properties", { "schema-properties-open": n }])
|
|
45
40
|
}, [
|
|
46
|
-
|
|
41
|
+
q(d(r(E), {
|
|
47
42
|
as: e.noncollapsible ? "div" : "button",
|
|
48
|
-
class:
|
|
49
|
-
style:
|
|
43
|
+
class: p(["schema-card-title", { "schema-card-title--compact": e.compact }]),
|
|
44
|
+
style: N({
|
|
50
45
|
top: `calc(var(--refs-header-height) + calc(var(--schema-title-height) * ${e.level}))`
|
|
51
46
|
}),
|
|
52
|
-
onClickCapture:
|
|
47
|
+
onClickCapture: j
|
|
53
48
|
}, {
|
|
54
|
-
default:
|
|
55
|
-
var c,
|
|
49
|
+
default: h(() => {
|
|
50
|
+
var c, a, u;
|
|
56
51
|
return [
|
|
57
|
-
e.compact ? (l(),
|
|
58
|
-
|
|
52
|
+
e.compact ? (l(), o(i, { key: 0 }, [
|
|
53
|
+
y.value ? (l(), t(r(w), {
|
|
59
54
|
key: 0,
|
|
60
|
-
class:
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
C(" Hide " + P(((c = e.value) == null ? void 0 : c.title) ?? "Child Attributes"), 1)
|
|
69
|
-
], 64)) : (l(), a(t, { key: 2 }, [
|
|
70
|
-
C(" Show " + P(((o = e.value) == null ? void 0 : o.title) ?? "Child Attributes"), 1)
|
|
55
|
+
class: p(["schema-card-title-icon h-2.5", { "schema-card-title-icon--open": n }]),
|
|
56
|
+
icon: "Add",
|
|
57
|
+
thickness: "3"
|
|
58
|
+
}, null, 8, ["class"])) : s("", !0),
|
|
59
|
+
n ? (l(), o(i, { key: 1 }, [
|
|
60
|
+
C(" Hide " + S(((c = e.value) == null ? void 0 : c.title) ?? "Child Attributes"), 1)
|
|
61
|
+
], 64)) : (l(), o(i, { key: 2 }, [
|
|
62
|
+
C(" Show " + S(((a = e.value) == null ? void 0 : a.title) ?? "Child Attributes"), 1)
|
|
71
63
|
], 64))
|
|
72
|
-
], 64)) : (l(),
|
|
73
|
-
|
|
64
|
+
], 64)) : (l(), o(i, { key: 1 }, [
|
|
65
|
+
y.value ? (l(), t(r(w), {
|
|
74
66
|
key: 0,
|
|
75
|
-
class:
|
|
67
|
+
class: p(["schema-card-title-icon", { "schema-card-title-icon--open": n }]),
|
|
76
68
|
icon: "ChevronRight",
|
|
77
69
|
size: "md"
|
|
78
|
-
}, null, 8, ["class"])) :
|
|
79
|
-
|
|
70
|
+
}, null, 8, ["class"])) : s("", !0),
|
|
71
|
+
d($, {
|
|
80
72
|
name: ((u = e.value) == null ? void 0 : u.title) ?? e.name,
|
|
81
73
|
value: e.value
|
|
82
74
|
}, null, 8, ["name", "value"])
|
|
@@ -85,26 +77,26 @@ const L = (s) => (N("data-v-ba8edff4"), s = s(), V(), s), M = {
|
|
|
85
77
|
}),
|
|
86
78
|
_: 2
|
|
87
79
|
}, 1032, ["as", "class", "style"]), [
|
|
88
|
-
[
|
|
80
|
+
[V, !(e.noncollapsible && e.compact)]
|
|
89
81
|
]),
|
|
90
|
-
|
|
91
|
-
default:
|
|
82
|
+
d(r(H), { static: e.noncollapsible }, {
|
|
83
|
+
default: h(() => {
|
|
92
84
|
var c;
|
|
93
85
|
return [
|
|
94
|
-
e.value.properties || e.value.additionalProperties ? (l(),
|
|
95
|
-
e.value.properties ? (l(!0),
|
|
96
|
-
var u,
|
|
97
|
-
return l(),
|
|
98
|
-
key:
|
|
86
|
+
e.value.properties || e.value.additionalProperties ? (l(), o(i, { key: 0 }, [
|
|
87
|
+
e.value.properties ? (l(!0), o(i, { key: 0 }, z(Object.keys((c = e.value) == null ? void 0 : c.properties), (a) => {
|
|
88
|
+
var u, f, b, g;
|
|
89
|
+
return l(), t(m, {
|
|
90
|
+
key: a,
|
|
99
91
|
compact: e.compact,
|
|
100
92
|
level: e.level,
|
|
101
|
-
name:
|
|
102
|
-
required: ((u = e.value.required) == null ? void 0 : u.includes(
|
|
103
|
-
value: (
|
|
93
|
+
name: a,
|
|
94
|
+
required: ((u = e.value.required) == null ? void 0 : u.includes(a)) || ((b = (f = e.value.properties) == null ? void 0 : f[a]) == null ? void 0 : b.required) === !0,
|
|
95
|
+
value: (g = e.value.properties) == null ? void 0 : g[a]
|
|
104
96
|
}, null, 8, ["compact", "level", "name", "required", "value"]);
|
|
105
|
-
}), 128)) :
|
|
106
|
-
e.value.additionalProperties ? (l(),
|
|
107
|
-
e.value.additionalProperties === !0 || Object.keys(e.value.additionalProperties).length === 0 || !e.value.additionalProperties.type ? (l(),
|
|
97
|
+
}), 128)) : s("", !0),
|
|
98
|
+
e.value.additionalProperties ? (l(), o(i, { key: 1 }, [
|
|
99
|
+
e.value.additionalProperties === !0 || Object.keys(e.value.additionalProperties).length === 0 || !e.value.additionalProperties.type ? (l(), t(m, {
|
|
108
100
|
key: 0,
|
|
109
101
|
additional: "",
|
|
110
102
|
compact: e.compact,
|
|
@@ -114,7 +106,7 @@ const L = (s) => (N("data-v-ba8edff4"), s = s(), V(), s), M = {
|
|
|
114
106
|
type: "anything",
|
|
115
107
|
...typeof e.value.additionalProperties == "object" ? e.value.additionalProperties : {}
|
|
116
108
|
}
|
|
117
|
-
}, null, 8, ["compact", "level", "value"])) : (l(),
|
|
109
|
+
}, null, 8, ["compact", "level", "value"])) : (l(), t(m, {
|
|
118
110
|
key: 1,
|
|
119
111
|
additional: "",
|
|
120
112
|
compact: e.compact,
|
|
@@ -122,8 +114,8 @@ const L = (s) => (N("data-v-ba8edff4"), s = s(), V(), s), M = {
|
|
|
122
114
|
noncollapsible: "",
|
|
123
115
|
value: e.value.additionalProperties
|
|
124
116
|
}, null, 8, ["compact", "level", "value"]))
|
|
125
|
-
], 64)) :
|
|
126
|
-
], 64)) : (l(),
|
|
117
|
+
], 64)) : s("", !0)
|
|
118
|
+
], 64)) : (l(), t(m, {
|
|
127
119
|
key: 1,
|
|
128
120
|
compact: e.compact,
|
|
129
121
|
level: e.level,
|
|
@@ -139,9 +131,9 @@ const L = (s) => (N("data-v-ba8edff4"), s = s(), V(), s), M = {
|
|
|
139
131
|
];
|
|
140
132
|
}),
|
|
141
133
|
_: 1
|
|
142
|
-
}, 8, ["defaultOpen"])) :
|
|
134
|
+
}, 8, ["defaultOpen"])) : s("", !0);
|
|
143
135
|
}
|
|
144
136
|
});
|
|
145
137
|
export {
|
|
146
|
-
|
|
138
|
+
K as default
|
|
147
139
|
};
|
|
@@ -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 m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-d1d8e2ad"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|
|
@@ -2,7 +2,7 @@ import { defineComponent as V, openBlock as t, createElementBlock as l, normaliz
|
|
|
2
2
|
import { ScalarMarkdown as h } from "@scalar/components";
|
|
3
3
|
import m from "./Schema.vue.js";
|
|
4
4
|
import A from "./SchemaPropertyHeading.vue.js";
|
|
5
|
-
const G = (d) => (M("data-v-
|
|
5
|
+
const G = (d) => (M("data-v-d1d8e2ad"), d = d(), $(), d), J = {
|
|
6
6
|
key: 0,
|
|
7
7
|
class: "property-description"
|
|
8
8
|
}, K = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Endpoints.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/Endpoints.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Endpoints.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/Endpoints.vue"],"names":[],"mappings":"AA+HA,OAAO,KAAK,EAAE,GAAG,EAAwB,MAAM,mBAAmB,CAAA;;SAgBrC,MAAM;SAAO,GAAG;;;;SAAhB,MAAM;SAAO,GAAG;;;;AAqR7C,wBAOG;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,7 +1,7 @@
|
|
|
1
1
|
import o from "./Endpoints.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const d = /* @__PURE__ */ t(o, [["__scopeId", "data-v-5a5d90da"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
d as default
|
|
7
7
|
};
|