@scalar/api-reference 1.28.31 → 1.28.32
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 +13 -0
- package/dist/browser/standalone.js +4079 -4048
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
- package/dist/components/ApiReferenceLayout.vue.js +2 -2
- package/dist/components/ApiReferenceLayout.vue2.js +13 -10
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts +1 -4
- 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 +148 -148
- package/dist/features/ApiClientModal/ApiClientModal.vue.d.ts +2 -0
- package/dist/features/ApiClientModal/ApiClientModal.vue.d.ts.map +1 -1
- package/dist/features/ApiClientModal/ApiClientModal.vue.js +51 -29
- package/dist/index.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +9 -9
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApiReferenceLayout.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApiReferenceLayout.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ApiReferenceLayout.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApiReferenceLayout.vue"],"names":[],"mappings":"AAgoBA,OAAO,EAGL,KAAK,OAAO,EACb,MAAM,gBAAgB,CAAA;AA8BvB,OAAO,KAAK,EACV,oBAAoB,EAEpB,kBAAkB,EACnB,MAAM,SAAS,CAAA;AAIhB,KAAK,WAAW,GAAG,IAAI,CAAC,oBAAoB,EAAE,QAAQ,CAAC,CAAC;AAuRxD,iBAAS,cAAc;WAoPT,OAAO,IAA6B;;wBAlfZ,kBAAkB,KAAK,GAAG;wBAA1B,kBAAkB,KAAK,GAAG;wBAA1B,kBAAkB,KAAK,GAAG;iCAA1B,kBAAkB,KAAK,GAAG;+BAA1B,kBAAkB,KAAK,GAAG;iCAA1B,kBAAkB,KAAK,GAAG;+BAA1B,kBAAkB,KAAK,GAAG;;wBAA1B,kBAAkB,KAAK,GAAG;wBAA1B,kBAAkB,KAAK,GAAG;wBAA1B,kBAAkB,KAAK,GAAG;iCAA1B,kBAAkB,KAAK,GAAG;+BAA1B,kBAAkB,KAAK,GAAG;iCAA1B,kBAAkB,KAAK,GAAG;+BAA1B,kBAAkB,KAAK,GAAG;;;;;;EAuf/D;AAwBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;YAriBqB,OAAO;eAAS,MAAM;;;;;;;;YAAtB,OAAO;eAAS,MAAM;;;;;;kFA4iB9D,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,8 +1,8 @@
|
|
|
1
1
|
import o from "./ApiReferenceLayout.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
/* empty css */
|
|
4
|
-
import
|
|
5
|
-
const m = /* @__PURE__ */
|
|
4
|
+
import t from "../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-51b3ff26"]]);
|
|
6
6
|
export {
|
|
7
7
|
m as default
|
|
8
8
|
};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { defineComponent as ie, computed as h, ref as R, onBeforeMount as B, onMounted as le, onUnmounted as de, watch as $, onServerPrefetch as ue, useSSRContext as ce, useId as pe, provide as b, createElementBlock as y, openBlock as C, Fragment as
|
|
1
|
+
import { defineComponent as ie, computed as h, ref as R, onBeforeMount as B, onMounted as le, onUnmounted as de, watch as $, onServerPrefetch as ue, useSSRContext as ce, useId as pe, provide as b, createElementBlock as y, openBlock as C, Fragment as N, createElementVNode as d, createVNode as m, unref as i, normalizeStyle as fe, normalizeClass as me, createCommentVNode as E, withDirectives as ve, renderSlot as u, normalizeProps as c, guardReactiveProps as p, withCtx as v, vShow as Se, createSlots as ge } from "vue";
|
|
2
2
|
import { provideUseId as he } from "@headlessui/vue";
|
|
3
3
|
import { LAYOUT_SYMBOL as be } from "@scalar/api-client/hooks";
|
|
4
4
|
import { createWorkspaceStore as we, WORKSPACE_SYMBOL as ye, createActiveEntitiesStore as Ce, ACTIVE_ENTITIES_SYMBOL as Te } from "@scalar/api-client/store";
|
|
5
5
|
import { addScalarClassesToHeadless as Re, ScalarErrorBoundary as $e } from "@scalar/components";
|
|
6
|
-
import { defaultStateFactory as
|
|
6
|
+
import { defaultStateFactory as _ } from "@scalar/oas-utils/helpers";
|
|
7
7
|
import { hasObtrusiveScrollbars as Ee, getThemeStyles as Oe } from "@scalar/themes";
|
|
8
8
|
import { apiReferenceConfigurationSchema as Ie } from "@scalar/types/api-reference";
|
|
9
9
|
import { useToasts as Le, ScalarToasts as Me } from "@scalar/use-toasts";
|
|
10
10
|
import { useMediaQuery as Pe, useResizeObserver as ke, useDebounceFn as Fe } from "@vueuse/core";
|
|
11
11
|
import Ae from "./GettingStarted.vue.js";
|
|
12
12
|
import { CONFIGURATION_SYMBOL as Be } from "../hooks/useConfig.js";
|
|
13
|
-
import { useHttpClientStore as
|
|
14
|
-
import { downloadSpecBus as D, downloadSpecFile as
|
|
13
|
+
import { useHttpClientStore as Ne } from "../stores/useHttpClientStore.js";
|
|
14
|
+
import { downloadSpecBus as D, downloadSpecFile as _e } from "../helpers/specDownloads.js";
|
|
15
15
|
import { PLUGIN_MANAGER_SYMBOL as De } from "../plugins/hooks/usePluginManager.js";
|
|
16
16
|
import { createPluginManager as He } from "../plugins/plugin-manager.js";
|
|
17
17
|
import Ue from "./Sidebar/Sidebar.vue.js";
|
|
@@ -74,7 +74,7 @@ const je = ["innerHTML"], Ke = { class: "references-header" }, Qe = ["aria-label
|
|
|
74
74
|
B(() => Re()), le(() => {
|
|
75
75
|
var o, s, r;
|
|
76
76
|
history.scrollRestoration = "manual", D.on(({ specTitle: n }) => {
|
|
77
|
-
|
|
77
|
+
_e(f.rawSpec, n);
|
|
78
78
|
});
|
|
79
79
|
const e = (s = (o = S.value) == null ? void 0 : o.parentElement) == null ? void 0 : s.getBoundingClientRect(), a = (r = S.value) == null ? void 0 : r.getBoundingClientRect();
|
|
80
80
|
if (e && a) {
|
|
@@ -101,7 +101,7 @@ const je = ["innerHTML"], Ke = { class: "references-header" }, Qe = ["aria-label
|
|
|
101
101
|
}), $(() => f.parsedSpec, q, { deep: !0 }), ue(() => {
|
|
102
102
|
var a, o;
|
|
103
103
|
const e = ce();
|
|
104
|
-
if (e && (e.payload || (e.payload = { data:
|
|
104
|
+
if (e && (e.payload || (e.payload = { data: _() }), (a = e.payload).data || (a.data = _()), t.value.pathRouting)) {
|
|
105
105
|
const s = I(e.url);
|
|
106
106
|
ee.value = s, e.payload.data.hash = s;
|
|
107
107
|
for (const r in w)
|
|
@@ -149,7 +149,7 @@ const je = ["innerHTML"], Ke = { class: "references-header" }, Qe = ["aria-label
|
|
|
149
149
|
{ immediate: !0 }
|
|
150
150
|
);
|
|
151
151
|
}
|
|
152
|
-
const { setExcludedClients: re, setDefaultHttpClient: se } =
|
|
152
|
+
const { setExcludedClients: re, setDefaultHttpClient: se } = Ne();
|
|
153
153
|
A("defaultHttpClient", se), A("hiddenClients", re), K.value = t.value.hideModels ?? !1, Q.value = t.value.defaultOpenAllTags ?? !1;
|
|
154
154
|
const ne = h(
|
|
155
155
|
() => `<style>
|
|
@@ -159,7 +159,7 @@ const je = ["innerHTML"], Ke = { class: "references-header" }, Qe = ["aria-label
|
|
|
159
159
|
);
|
|
160
160
|
return (e, a) => {
|
|
161
161
|
var o, s, r;
|
|
162
|
-
return C(), y(
|
|
162
|
+
return C(), y(N, null, [
|
|
163
163
|
d("div", { innerHTML: ne.value }, null, 8, je),
|
|
164
164
|
d("div", {
|
|
165
165
|
ref_key: "documentEl",
|
|
@@ -216,7 +216,7 @@ const je = ["innerHTML"], Ke = { class: "references-header" }, Qe = ["aria-label
|
|
|
216
216
|
], 512), [
|
|
217
217
|
[Se, t.value.isEditable]
|
|
218
218
|
]),
|
|
219
|
-
ae.value ? (C(), y(
|
|
219
|
+
ae.value ? (C(), y(N, { key: 1 }, [
|
|
220
220
|
d("main", {
|
|
221
221
|
"aria-label": `Open API Documentation for ${(s = e.parsedSpec.info) == null ? void 0 : s.title}`,
|
|
222
222
|
class: "references-rendered"
|
|
@@ -255,7 +255,10 @@ const je = ["innerHTML"], Ke = { class: "references-header" }, Qe = ["aria-label
|
|
|
255
255
|
u(e.$slots, "footer", c(p(l.value)), void 0, !0)
|
|
256
256
|
])) : E("", !0)
|
|
257
257
|
], 64)) : E("", !0),
|
|
258
|
-
m(i(ze), {
|
|
258
|
+
m(i(ze), {
|
|
259
|
+
configuration: t.value,
|
|
260
|
+
parsedSpec: e.parsedSpec
|
|
261
|
+
}, null, 8, ["configuration", "parsedSpec"])
|
|
259
262
|
], 38),
|
|
260
263
|
m(i(Me))
|
|
261
264
|
], 64);
|
|
@@ -18,10 +18,7 @@ declare function __VLS_template(): {
|
|
|
18
18
|
rootEl: HTMLDivElement;
|
|
19
19
|
};
|
|
20
20
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
21
|
-
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
22
|
-
required: boolean;
|
|
23
|
-
withExamples: boolean;
|
|
24
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
21
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
25
22
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
26
23
|
export default _default;
|
|
27
24
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SchemaPropertyHeading.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaPropertyHeading.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SchemaPropertyHeading.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaPropertyHeading.vue"],"names":[],"mappings":"AAuRA,OAAO,KAAK,EAEV,SAAS,EACT,SAAS,EACT,WAAW,EACZ,MAAM,uBAAuB,CAAA;AAY9B,KAAK,WAAW,GAAG;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC3B,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,OAAO,CAAC,EACJ,SAAS,CAAC,iBAAiB,GAC3B,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,YAAY,CAAC,GACtC,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,YAAY,CAAC,GACxC,OAAO,CAAA;CACZ,CAAC;AAoDF,iBAAS,cAAc;WA+TT,OAAO,IAA6B;;sBATxB,GAAG;sBACH,GAAG;;;;EAa5B;AAeD,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 "./SchemaPropertyHeading.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-9d959541"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { stringify as
|
|
3
|
-
import { discriminators as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
const
|
|
1
|
+
import { defineComponent as T, createElementBlock as i, openBlock as t, createCommentVNode as r, createBlock as o, normalizeClass as z, renderSlot as E, Fragment as s, createTextVNode as a, toDisplayString as n, createVNode as p, unref as v, withCtx as u } from "vue";
|
|
2
|
+
import { stringify as L } from "flatted";
|
|
3
|
+
import { discriminators as H } from "./helpers/optimizeValueForDisplay.js";
|
|
4
|
+
import R from "./SchemaPropertyExamples.vue.js";
|
|
5
|
+
import f from "../../ScreenReader.vue.js";
|
|
6
|
+
import m from "./SchemaPropertyDetail.vue.js";
|
|
7
|
+
import $ from "../../Badge/Badge.vue.js";
|
|
8
|
+
const G = { class: "property-heading" }, J = {
|
|
9
9
|
key: 1,
|
|
10
10
|
class: "property-additional"
|
|
11
|
-
},
|
|
11
|
+
}, K = {
|
|
12
12
|
key: 2,
|
|
13
13
|
class: "property-pattern"
|
|
14
|
-
},
|
|
14
|
+
}, Q = {
|
|
15
15
|
key: 3,
|
|
16
16
|
class: "property-deprecated"
|
|
17
|
-
},
|
|
17
|
+
}, U = {
|
|
18
18
|
key: 4,
|
|
19
19
|
class: "property-const"
|
|
20
|
-
},
|
|
20
|
+
}, W = {
|
|
21
21
|
key: 7,
|
|
22
22
|
class: "property-write-only"
|
|
23
|
-
},
|
|
23
|
+
}, X = {
|
|
24
24
|
key: 8,
|
|
25
25
|
class: "property-read-only"
|
|
26
|
-
},
|
|
26
|
+
}, Y = {
|
|
27
27
|
key: 9,
|
|
28
28
|
class: "property-required"
|
|
29
|
-
},
|
|
29
|
+
}, ae = /* @__PURE__ */ T({
|
|
30
30
|
__name: "SchemaPropertyHeading",
|
|
31
31
|
props: {
|
|
32
32
|
value: {},
|
|
@@ -37,214 +37,214 @@ const A = { class: "property-heading" }, C = {
|
|
|
37
37
|
withExamples: { type: Boolean, default: !0 },
|
|
38
38
|
schemas: {}
|
|
39
39
|
},
|
|
40
|
-
setup(
|
|
41
|
-
const
|
|
42
|
-
if (!
|
|
40
|
+
setup(d) {
|
|
41
|
+
const D = H.find((e) => !d.value || typeof d.value != "object" ? !1 : e in d.value || d.value.items && typeof d.value.items == "object" && e in d.value.items), F = (e) => Array.isArray(e == null ? void 0 : e.default) && e.default.length === 1 ? e.default[0] : e == null ? void 0 : e.default, O = (e) => {
|
|
42
|
+
if (!e)
|
|
43
43
|
return null;
|
|
44
|
-
if (
|
|
45
|
-
return
|
|
46
|
-
if (
|
|
47
|
-
for (const [
|
|
48
|
-
if (
|
|
49
|
-
return
|
|
44
|
+
if (e.name)
|
|
45
|
+
return e.name;
|
|
46
|
+
if (d.schemas && typeof d.schemas == "object") {
|
|
47
|
+
for (const [l, y] of Object.entries(d.schemas))
|
|
48
|
+
if (L(y) === L(e))
|
|
49
|
+
return l;
|
|
50
50
|
}
|
|
51
51
|
return null;
|
|
52
52
|
};
|
|
53
|
-
return (
|
|
54
|
-
var y;
|
|
55
|
-
return
|
|
56
|
-
|
|
53
|
+
return (e, l) => {
|
|
54
|
+
var y, k, g, B, b, N, S, q, w, P, j, I, M;
|
|
55
|
+
return t(), i("div", G, [
|
|
56
|
+
e.$slots.name ? (t(), i("div", {
|
|
57
57
|
key: 0,
|
|
58
|
-
class:
|
|
58
|
+
class: z(["property-name", { deprecated: (y = e.value) == null ? void 0 : y.deprecated }])
|
|
59
59
|
}, [
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
], 64)) :
|
|
65
|
-
], 2)) :
|
|
66
|
-
|
|
67
|
-
e != null &&
|
|
68
|
-
|
|
69
|
-
], 64)) : (
|
|
70
|
-
|
|
60
|
+
e.pattern ? (t(), i(s, { key: 1 }, [
|
|
61
|
+
l[0] || (l[0] = a("/")),
|
|
62
|
+
E(e.$slots, "name", {}, void 0, !0),
|
|
63
|
+
l[1] || (l[1] = a("/"))
|
|
64
|
+
], 64)) : E(e.$slots, "name", { key: 0 }, void 0, !0)
|
|
65
|
+
], 2)) : r("", !0),
|
|
66
|
+
e.additional ? (t(), i("div", J, [
|
|
67
|
+
(k = e.value) != null && k["x-additionalPropertiesName"] ? (t(), i(s, { key: 0 }, [
|
|
68
|
+
a(n(e.value["x-additionalPropertiesName"]), 1)
|
|
69
|
+
], 64)) : (t(), i(s, { key: 1 }, [
|
|
70
|
+
a("additional properties")
|
|
71
71
|
], 64))
|
|
72
|
-
])) :
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
default:
|
|
76
|
-
|
|
72
|
+
])) : r("", !0),
|
|
73
|
+
e.pattern ? (t(), i("div", K, [
|
|
74
|
+
p(v($), null, {
|
|
75
|
+
default: u(() => l[2] || (l[2] = [
|
|
76
|
+
a("pattern")
|
|
77
77
|
])),
|
|
78
78
|
_: 1
|
|
79
79
|
})
|
|
80
|
-
])) :
|
|
81
|
-
e != null &&
|
|
82
|
-
|
|
83
|
-
default:
|
|
84
|
-
|
|
80
|
+
])) : r("", !0),
|
|
81
|
+
(g = e.value) != null && g.deprecated ? (t(), i("div", Q, [
|
|
82
|
+
p(v($), null, {
|
|
83
|
+
default: u(() => l[3] || (l[3] = [
|
|
84
|
+
a("deprecated")
|
|
85
85
|
])),
|
|
86
86
|
_: 1
|
|
87
87
|
})
|
|
88
|
-
])) :
|
|
89
|
-
e != null &&
|
|
90
|
-
|
|
91
|
-
prefix:
|
|
92
|
-
|
|
88
|
+
])) : r("", !0),
|
|
89
|
+
(B = e.value) != null && B.const || (b = e.value) != null && b.enum && e.value.enum.length === 1 ? (t(), i("div", U, [
|
|
90
|
+
p(m, { truncate: "" }, {
|
|
91
|
+
prefix: u(() => l[4] || (l[4] = [
|
|
92
|
+
a("const:")
|
|
93
93
|
])),
|
|
94
|
-
default:
|
|
95
|
-
|
|
94
|
+
default: u(() => [
|
|
95
|
+
a(" " + n(e.value.const ?? e.value.enum[0]), 1)
|
|
96
96
|
]),
|
|
97
97
|
_: 1
|
|
98
98
|
})
|
|
99
|
-
])) : e != null &&
|
|
100
|
-
|
|
101
|
-
default:
|
|
102
|
-
var
|
|
99
|
+
])) : (N = e.value) != null && N.type ? (t(), i(s, { key: 5 }, [
|
|
100
|
+
p(m, null, {
|
|
101
|
+
default: u(() => {
|
|
102
|
+
var V, A, C;
|
|
103
103
|
return [
|
|
104
|
-
|
|
105
|
-
default:
|
|
106
|
-
|
|
104
|
+
p(f, null, {
|
|
105
|
+
default: u(() => l[5] || (l[5] = [
|
|
106
|
+
a("Type:")
|
|
107
107
|
])),
|
|
108
108
|
_: 1
|
|
109
109
|
}),
|
|
110
|
-
(
|
|
111
|
-
|
|
112
|
-
], 64)) : (
|
|
113
|
-
|
|
110
|
+
(A = (V = e.value) == null ? void 0 : V.items) != null && A.type ? (t(), i(s, { key: 0 }, [
|
|
111
|
+
a(n(e.value.type) + " " + n(O(e.value.items) || e.value.items.type) + "[] ", 1)
|
|
112
|
+
], 64)) : (t(), i(s, { key: 1 }, [
|
|
113
|
+
a(n(Array.isArray(e.value.type) ? e.value.type.join(" | ") : e.value.type) + " " + n((C = e.value) != null && C.nullable ? " | nullable" : ""), 1)
|
|
114
114
|
], 64)),
|
|
115
|
-
e.minItems || e.maxItems ? (
|
|
116
|
-
|
|
117
|
-
], 64)) :
|
|
115
|
+
e.value.minItems || e.value.maxItems ? (t(), i(s, { key: 2 }, [
|
|
116
|
+
a(n(e.value.minItems) + "…" + n(e.value.maxItems), 1)
|
|
117
|
+
], 64)) : r("", !0)
|
|
118
118
|
];
|
|
119
119
|
}),
|
|
120
120
|
_: 1
|
|
121
121
|
}),
|
|
122
|
-
e.minLength ? (
|
|
123
|
-
prefix:
|
|
124
|
-
|
|
122
|
+
e.value.minLength ? (t(), o(m, { key: 0 }, {
|
|
123
|
+
prefix: u(() => l[6] || (l[6] = [
|
|
124
|
+
a("min:")
|
|
125
125
|
])),
|
|
126
|
-
default:
|
|
127
|
-
|
|
126
|
+
default: u(() => [
|
|
127
|
+
a(" " + n(e.value.minLength), 1)
|
|
128
128
|
]),
|
|
129
129
|
_: 1
|
|
130
|
-
})) :
|
|
131
|
-
e.maxLength ? (
|
|
132
|
-
prefix:
|
|
133
|
-
|
|
130
|
+
})) : r("", !0),
|
|
131
|
+
e.value.maxLength ? (t(), o(m, { key: 1 }, {
|
|
132
|
+
prefix: u(() => l[7] || (l[7] = [
|
|
133
|
+
a("max:")
|
|
134
134
|
])),
|
|
135
|
-
default:
|
|
136
|
-
|
|
135
|
+
default: u(() => [
|
|
136
|
+
a(" " + n(e.value.maxLength), 1)
|
|
137
137
|
]),
|
|
138
138
|
_: 1
|
|
139
|
-
})) :
|
|
140
|
-
e.uniqueItems ? (
|
|
141
|
-
default:
|
|
142
|
-
|
|
139
|
+
})) : r("", !0),
|
|
140
|
+
e.value.uniqueItems ? (t(), o(m, { key: 2 }, {
|
|
141
|
+
default: u(() => l[8] || (l[8] = [
|
|
142
|
+
a(" unique! ")
|
|
143
143
|
])),
|
|
144
144
|
_: 1
|
|
145
|
-
})) :
|
|
146
|
-
e.format ? (
|
|
147
|
-
default:
|
|
148
|
-
|
|
149
|
-
default:
|
|
150
|
-
|
|
145
|
+
})) : r("", !0),
|
|
146
|
+
e.value.format ? (t(), o(m, { key: 3 }, {
|
|
147
|
+
default: u(() => [
|
|
148
|
+
p(f, null, {
|
|
149
|
+
default: u(() => l[9] || (l[9] = [
|
|
150
|
+
a("Format:")
|
|
151
151
|
])),
|
|
152
152
|
_: 1
|
|
153
153
|
}),
|
|
154
|
-
|
|
154
|
+
a(" " + n(e.value.format), 1)
|
|
155
155
|
]),
|
|
156
156
|
_: 1
|
|
157
|
-
})) :
|
|
158
|
-
e.minimum !== void 0 && e.exclusiveMinimum ? (
|
|
159
|
-
prefix:
|
|
160
|
-
|
|
157
|
+
})) : r("", !0),
|
|
158
|
+
e.value.minimum !== void 0 && e.value.exclusiveMinimum ? (t(), o(m, { key: 4 }, {
|
|
159
|
+
prefix: u(() => l[10] || (l[10] = [
|
|
160
|
+
a("greater than:")
|
|
161
161
|
])),
|
|
162
|
-
default:
|
|
163
|
-
|
|
162
|
+
default: u(() => [
|
|
163
|
+
a(" " + n(e.value.minimum), 1)
|
|
164
164
|
]),
|
|
165
165
|
_: 1
|
|
166
|
-
})) :
|
|
167
|
-
e.minimum !== void 0 && !e.exclusiveMinimum ? (
|
|
168
|
-
prefix:
|
|
169
|
-
|
|
166
|
+
})) : r("", !0),
|
|
167
|
+
e.value.minimum !== void 0 && !e.value.exclusiveMinimum ? (t(), o(m, { key: 5 }, {
|
|
168
|
+
prefix: u(() => l[11] || (l[11] = [
|
|
169
|
+
a("min:")
|
|
170
170
|
])),
|
|
171
|
-
default:
|
|
172
|
-
|
|
171
|
+
default: u(() => [
|
|
172
|
+
a(" " + n(e.value.minimum), 1)
|
|
173
173
|
]),
|
|
174
174
|
_: 1
|
|
175
|
-
})) :
|
|
176
|
-
e.maximum !== void 0 && e.exclusiveMaximum ? (
|
|
177
|
-
prefix:
|
|
178
|
-
|
|
175
|
+
})) : r("", !0),
|
|
176
|
+
e.value.maximum !== void 0 && e.value.exclusiveMaximum ? (t(), o(m, { key: 6 }, {
|
|
177
|
+
prefix: u(() => l[12] || (l[12] = [
|
|
178
|
+
a("less than:")
|
|
179
179
|
])),
|
|
180
|
-
default:
|
|
181
|
-
|
|
180
|
+
default: u(() => [
|
|
181
|
+
a(" " + n(e.value.maximum), 1)
|
|
182
182
|
]),
|
|
183
183
|
_: 1
|
|
184
|
-
})) :
|
|
185
|
-
e.maximum !== void 0 && !e.exclusiveMaximum ? (
|
|
186
|
-
prefix:
|
|
187
|
-
|
|
184
|
+
})) : r("", !0),
|
|
185
|
+
e.value.maximum !== void 0 && !e.value.exclusiveMaximum ? (t(), o(m, { key: 7 }, {
|
|
186
|
+
prefix: u(() => l[13] || (l[13] = [
|
|
187
|
+
a("max:")
|
|
188
188
|
])),
|
|
189
|
-
default:
|
|
190
|
-
|
|
189
|
+
default: u(() => [
|
|
190
|
+
a(" " + n(e.value.maximum), 1)
|
|
191
191
|
]),
|
|
192
192
|
_: 1
|
|
193
|
-
})) :
|
|
194
|
-
e.pattern ? (
|
|
193
|
+
})) : r("", !0),
|
|
194
|
+
e.value.pattern ? (t(), o(m, {
|
|
195
195
|
key: 8,
|
|
196
196
|
code: "",
|
|
197
197
|
truncate: ""
|
|
198
198
|
}, {
|
|
199
|
-
default:
|
|
200
|
-
|
|
201
|
-
default:
|
|
202
|
-
|
|
199
|
+
default: u(() => [
|
|
200
|
+
p(f, null, {
|
|
201
|
+
default: u(() => l[14] || (l[14] = [
|
|
202
|
+
a("Pattern:")
|
|
203
203
|
])),
|
|
204
204
|
_: 1
|
|
205
205
|
}),
|
|
206
|
-
|
|
206
|
+
a(" " + n(e.value.pattern), 1)
|
|
207
207
|
]),
|
|
208
208
|
_: 1
|
|
209
|
-
})) :
|
|
210
|
-
|
|
211
|
-
default:
|
|
212
|
-
|
|
209
|
+
})) : r("", !0),
|
|
210
|
+
e.$props.enum ? (t(), o(m, { key: 9 }, {
|
|
211
|
+
default: u(() => l[15] || (l[15] = [
|
|
212
|
+
a("enum")
|
|
213
213
|
])),
|
|
214
214
|
_: 1
|
|
215
|
-
})) :
|
|
216
|
-
e.default !== void 0 ? (
|
|
215
|
+
})) : r("", !0),
|
|
216
|
+
e.value.default !== void 0 ? (t(), o(m, {
|
|
217
217
|
key: 10,
|
|
218
218
|
truncate: ""
|
|
219
219
|
}, {
|
|
220
|
-
prefix:
|
|
221
|
-
|
|
220
|
+
prefix: u(() => l[16] || (l[16] = [
|
|
221
|
+
a("default:")
|
|
222
222
|
])),
|
|
223
|
-
default:
|
|
224
|
-
|
|
223
|
+
default: u(() => [
|
|
224
|
+
a(" " + n(F(e.value)), 1)
|
|
225
225
|
]),
|
|
226
226
|
_: 1
|
|
227
|
-
})) :
|
|
228
|
-
], 64)) : (
|
|
229
|
-
(e == null ? void 0 :
|
|
230
|
-
default:
|
|
231
|
-
|
|
227
|
+
})) : r("", !0)
|
|
228
|
+
], 64)) : (t(), i(s, { key: 6 }, [
|
|
229
|
+
((S = e.value) == null ? void 0 : S.nullable) === !0 ? (t(), o(m, { key: 0 }, {
|
|
230
|
+
default: u(() => l[17] || (l[17] = [
|
|
231
|
+
a(" nullable ")
|
|
232
232
|
])),
|
|
233
233
|
_: 1
|
|
234
|
-
})) :
|
|
234
|
+
})) : r("", !0)
|
|
235
235
|
], 64)),
|
|
236
|
-
e != null &&
|
|
237
|
-
|
|
238
|
-
|
|
236
|
+
(q = e.value) != null && q.writeOnly ? (t(), i("div", W, " write-only ")) : (w = e.value) != null && w.readOnly ? (t(), i("div", X, " read-only ")) : r("", !0),
|
|
237
|
+
e.required ? (t(), i("div", Y, " required ")) : r("", !0),
|
|
238
|
+
e.withExamples ? (t(), o(R, {
|
|
239
239
|
key: 10,
|
|
240
|
-
examples: e == null ? void 0 :
|
|
241
|
-
example: (e == null ? void 0 :
|
|
242
|
-
"discriminator-type":
|
|
243
|
-
}, null, 8, ["examples", "example", "discriminator-type"])) :
|
|
240
|
+
examples: (P = e.value) == null ? void 0 : P.examples,
|
|
241
|
+
example: ((j = e.value) == null ? void 0 : j.example) || ((M = (I = e.value) == null ? void 0 : I.items) == null ? void 0 : M.example),
|
|
242
|
+
"discriminator-type": v(D)
|
|
243
|
+
}, null, 8, ["examples", "example", "discriminator-type"])) : r("", !0)
|
|
244
244
|
]);
|
|
245
245
|
};
|
|
246
246
|
}
|
|
247
247
|
});
|
|
248
248
|
export {
|
|
249
|
-
|
|
249
|
+
ae as default
|
|
250
250
|
};
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import type { ApiClientConfiguration } from '@scalar/types/api-reference';
|
|
2
|
+
import type { Spec } from '@scalar/types/legacy';
|
|
2
3
|
type __VLS_Props = {
|
|
3
4
|
configuration: Partial<ApiClientConfiguration>;
|
|
5
|
+
parsedSpec: Spec;
|
|
4
6
|
};
|
|
5
7
|
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
6
8
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApiClientModal.vue.d.ts","sourceRoot":"","sources":["../../../src/features/ApiClientModal/ApiClientModal.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ApiClientModal.vue.d.ts","sourceRoot":"","sources":["../../../src/features/ApiClientModal/ApiClientModal.vue"],"names":[],"mappings":"AAkIA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAA;AACzE,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAYhD,KAAK,WAAW,GAAG;IACjB,aAAa,EAAE,OAAO,CAAC,sBAAsB,CAAC,CAAA;IAC9C,UAAU,EAAE,IAAI,CAAA;CACjB,CAAC;;AA+JF,wBAOG"}
|