@scalar/api-reference 1.31.2 → 1.31.4
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 +58 -0
- package/dist/browser/standalone.js +9428 -9384
- 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 +72 -73
- package/dist/components/Badge/Badge.vue.d.ts.map +1 -1
- package/dist/components/Badge/Badge.vue.js +1 -1
- package/dist/components/Content/ClientLibraries/ClientLibraries.vue.js +2 -2
- package/dist/components/Content/ClientLibraries/ClientLibraries.vue2.js +1 -1
- 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/Lazy/Loading.vue.d.ts.map +1 -1
- package/dist/components/Content/Lazy/Loading.vue.js +1 -1
- package/dist/components/Content/Schema/SchemaComposition.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaComposition.vue.js +77 -113
- 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 +114 -105
- package/dist/components/Content/Schema/helpers/merge-all-of-schemas.js +35 -35
- package/dist/components/Content/Schema/helpers/optimizeValueForDisplay.d.ts.map +1 -1
- package/dist/components/Content/Schema/helpers/optimizeValueForDisplay.js +17 -15
- package/dist/components/Content/Schema/helpers/schema-name.d.ts +16 -0
- package/dist/components/Content/Schema/helpers/schema-name.d.ts.map +1 -0
- package/dist/components/Content/Schema/helpers/schema-name.js +32 -0
- package/dist/components/Content/Tag/OperationsList.vue.d.ts.map +1 -1
- package/dist/components/Content/Tag/OperationsList.vue.js +1 -1
- package/dist/components/Content/Tag/OperationsList.vue2.js +10 -9
- package/dist/components/Content/Tag/OperationsListItem.vue.d.ts.map +1 -1
- package/dist/components/Content/Tag/OperationsListItem.vue.js +1 -1
- package/dist/components/Content/Tag/OperationsListItem.vue2.js +29 -28
- package/dist/components/Content/Tag/TagList.vue.d.ts.map +1 -1
- package/dist/components/Content/Tag/TagList.vue.js +35 -34
- package/dist/components/DocumentSelector/DocumentSelector.vue.d.ts.map +1 -1
- package/dist/components/DocumentSelector/DocumentSelector.vue.js +21 -28
- package/dist/components/HttpMethod/HttpMethod.vue.d.ts +1 -20
- package/dist/components/HttpMethod/HttpMethod.vue.d.ts.map +1 -1
- package/dist/components/HttpMethod/HttpMethod.vue.js +12 -13
- package/dist/components/Section/CompactSection.vue.js +2 -2
- package/dist/components/Section/CompactSection.vue2.js +6 -6
- package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/Sidebar.vue.js +2 -2
- package/dist/components/Sidebar/Sidebar.vue2.js +1 -1
- package/dist/components/Sidebar/SidebarElement.vue.js +1 -1
- package/dist/components/Sidebar/SidebarElement.vue2.js +5 -5
- package/dist/esm.d.ts.map +1 -1
- package/dist/features/DocumentSource/hooks/useDocumentFetcher.js +1 -1
- package/dist/features/DocumentSource/hooks/useDocumentSource.d.ts +1 -1
- package/dist/features/DocumentSource/hooks/useDocumentSource.d.ts.map +1 -1
- package/dist/features/DocumentSource/hooks/useDocumentSource.js +11 -11
- package/dist/features/DownloadLink/DownloadLink.vue.d.ts +1 -1
- package/dist/features/DownloadLink/DownloadLink.vue.d.ts.map +1 -1
- package/dist/features/DownloadLink/DownloadLink.vue.js +1 -1
- package/dist/features/DownloadLink/DownloadLink.vue2.js +45 -28
- package/dist/features/ExampleRequest/ExampleRequest.vue.d.ts.map +1 -1
- package/dist/features/ExampleRequest/ExampleRequest.vue.js +1 -1
- package/dist/features/ExampleRequest/ExampleRequest.vue2.js +1 -1
- package/dist/features/Operation/components/ParameterHeaders.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/ParameterHeaders.vue.js +2 -2
- package/dist/features/Search/SearchButton.vue.d.ts.map +1 -1
- package/dist/features/Search/SearchButton.vue.js +2 -2
- package/dist/features/Search/SearchButton.vue2.js +16 -16
- package/dist/features/Search/SearchModal.vue.d.ts.map +1 -1
- package/dist/features/Search/SearchModal.vue.js +2 -2
- package/dist/features/Search/SearchModal.vue2.js +1 -1
- package/dist/features/Search/useSearchIndex.d.ts.map +1 -1
- package/dist/features/Search/useSearchIndex.js +29 -28
- package/dist/features/sidebar/helpers/create-sidebar.d.ts +26 -0
- package/dist/features/sidebar/helpers/create-sidebar.d.ts.map +1 -0
- package/dist/features/sidebar/hooks/useSidebar.d.ts +23 -0
- package/dist/features/sidebar/hooks/useSidebar.d.ts.map +1 -0
- package/dist/features/sidebar/index.d.ts +2 -0
- package/dist/features/sidebar/index.d.ts.map +1 -0
- package/dist/features/traverse-schema/helpers/get-tag.d.ts +4 -0
- package/dist/features/traverse-schema/helpers/get-tag.d.ts.map +1 -0
- package/dist/features/traverse-schema/helpers/operation-id-params.d.ts +8 -0
- package/dist/features/traverse-schema/helpers/operation-id-params.d.ts.map +1 -0
- package/dist/features/traverse-schema/helpers/operation-id-params.js +8 -0
- package/dist/features/traverse-schema/helpers/traverse-description.d.ts +9 -0
- package/dist/features/traverse-schema/helpers/traverse-description.d.ts.map +1 -0
- package/dist/features/traverse-schema/helpers/traverse-document.d.ts +16 -0
- package/dist/features/traverse-schema/helpers/traverse-document.d.ts.map +1 -0
- package/dist/features/traverse-schema/helpers/traverse-paths.d.ts +11 -0
- package/dist/features/traverse-schema/helpers/traverse-paths.d.ts.map +1 -0
- package/dist/features/traverse-schema/helpers/traverse-schemas.d.ts +6 -0
- package/dist/features/traverse-schema/helpers/traverse-schemas.d.ts.map +1 -0
- package/dist/features/traverse-schema/helpers/traverse-tags.d.ts +9 -0
- package/dist/features/traverse-schema/helpers/traverse-tags.d.ts.map +1 -0
- package/dist/features/traverse-schema/helpers/traverse-webhooks.d.ts +6 -0
- package/dist/features/traverse-schema/helpers/traverse-webhooks.d.ts.map +1 -0
- package/dist/features/traverse-schema/index.d.ts +4 -0
- package/dist/features/traverse-schema/index.d.ts.map +1 -0
- package/dist/features/traverse-schema/types.d.ts +51 -0
- package/dist/features/traverse-schema/types.d.ts.map +1 -0
- package/dist/helpers/parse.d.ts.map +1 -1
- package/dist/helpers/parse.js +16 -16
- package/dist/hooks/useNavState.d.ts +9 -4
- package/dist/hooks/useNavState.d.ts.map +1 -1
- package/dist/hooks/useNavState.js +31 -29
- package/dist/hooks/useSidebar.d.ts.map +1 -1
- package/dist/hooks/useSidebar.js +69 -68
- package/dist/index.js +1 -1
- package/dist/legacy/fixtures/httpRequestMethods.js +2 -6
- package/dist/libs/download.d.ts +2 -1
- package/dist/libs/download.d.ts.map +1 -1
- package/dist/libs/download.js +23 -11
- package/dist/stores/useHttpClientStore.js +18 -18
- package/dist/style.css +1 -1
- package/dist/types.d.ts +0 -1
- package/dist/types.d.ts.map +1 -1
- package/package.json +12 -11
- package/dist/components/HttpMethod/constants.d.ts +0 -9
- package/dist/components/HttpMethod/constants.d.ts.map +0 -1
- package/dist/components/HttpMethod/constants.js +0 -36
- package/dist/components/HttpMethod/utils/isRequestMethod.d.ts +0 -4
- package/dist/components/HttpMethod/utils/isRequestMethod.d.ts.map +0 -1
- package/dist/components/HttpMethod/utils/isRequestMethod.js +0 -7
- package/dist/helpers/freeze-element.d.ts +0 -11
- package/dist/helpers/freeze-element.d.ts.map +0 -1
- package/dist/helpers/freeze-element.js +0 -20
- package/dist/helpers/is-mac-os.d.ts +0 -5
- package/dist/helpers/is-mac-os.d.ts.map +0 -1
- package/dist/helpers/is-mac-os.js +0 -4
- package/dist/helpers/local-storage.d.ts +0 -8
- package/dist/helpers/local-storage.d.ts.map +0 -1
- package/dist/helpers/local-storage.js +0 -6
- package/dist/helpers/measure.d.ts +0 -21
- package/dist/helpers/measure.d.ts.map +0 -1
- package/dist/helpers/measure.js +0 -7
- package/dist/helpers/scroll-to-id.d.ts +0 -7
- package/dist/helpers/scroll-to-id.d.ts.map +0 -1
- package/dist/helpers/scroll-to-id.js +0 -21
- package/dist/helpers/sleep.d.ts +0 -6
- package/dist/helpers/sleep.d.ts.map +0 -1
- package/dist/helpers/sleep.js +0 -4
- package/dist/legacy/helpers/index.d.ts +0 -2
- package/dist/legacy/helpers/index.d.ts.map +0 -1
- package/dist/legacy/helpers/normalizeRequestMethod.d.ts +0 -6
- package/dist/legacy/helpers/normalizeRequestMethod.d.ts.map +0 -1
- package/dist/legacy/helpers/normalizeRequestMethod.js +0 -10
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApiReferenceLayout.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApiReferenceLayout.vue"],"names":[],"mappings":"AA4kBA,OAAO,EAGL,KAAK,OAAO,EACb,MAAM,gBAAgB,CAAA;
|
|
1
|
+
{"version":3,"file":"ApiReferenceLayout.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApiReferenceLayout.vue"],"names":[],"mappings":"AA4kBA,OAAO,EAGL,KAAK,OAAO,EACb,MAAM,gBAAgB,CAAA;AA+BvB,OAAO,KAAK,EACV,oBAAoB,EAEpB,kBAAkB,EACnB,MAAM,SAAS,CAAA;AAIhB,KAAK,WAAW,GAAG,IAAI,CAAC,oBAAoB,EAAE,QAAQ,CAAC,CAAC;AA0OxD,iBAAS,cAAc;WAoPT,OAAO,IAA6B;;wBA9aZ,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;;;;;;EAmb/D;AA0BD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;YApfqB,OAAO;eAAS,MAAM;;;;;;;;YAAtB,OAAO;eAAS,MAAM;;;;;;kFA2f9D,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"}
|
|
@@ -2,7 +2,7 @@ import o from "./ApiReferenceLayout.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 f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-93a5ef6c"]]);
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
f as default
|
|
8
8
|
};
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { provideUseId as
|
|
3
|
-
import { LAYOUT_SYMBOL as
|
|
4
|
-
import { WORKSPACE_SYMBOL as
|
|
5
|
-
import { addScalarClassesToHeadless as
|
|
1
|
+
import { defineComponent as ne, computed as h, provide as u, ref as E, onBeforeMount as B, onMounted as k, toValue as N, onUnmounted as ie, useId as se, createElementBlock as y, openBlock as C, Fragment as F, createElementVNode as i, createVNode as c, unref as a, normalizeStyle as le, normalizeClass as de, createCommentVNode as O, withDirectives as ue, renderSlot as s, normalizeProps as l, guardReactiveProps as d, withCtx as m, vShow as ce, createSlots as me, watch as fe } from "vue";
|
|
2
|
+
import { provideUseId as pe } from "@headlessui/vue";
|
|
3
|
+
import { LAYOUT_SYMBOL as ve } from "@scalar/api-client/hooks";
|
|
4
|
+
import { WORKSPACE_SYMBOL as ge, ACTIVE_ENTITIES_SYMBOL as Se } from "@scalar/api-client/store";
|
|
5
|
+
import { addScalarClassesToHeadless as he, ScalarErrorBoundary as be } from "@scalar/components";
|
|
6
|
+
import { sleep as we } from "@scalar/helpers/testing/sleep";
|
|
6
7
|
import { hasObtrusiveScrollbars as ye, getThemeStyles as Ce } from "@scalar/themes";
|
|
7
8
|
import { apiReferenceConfigurationSchema as Te } from "@scalar/types/api-reference";
|
|
8
9
|
import { useToasts as De, ScalarToasts as Ee } from "@scalar/use-toasts";
|
|
9
10
|
import { useMediaQuery as Oe, useResizeObserver as $e, useDebounceFn as Re } from "@vueuse/core";
|
|
10
11
|
import Ie from "./GettingStarted.vue.js";
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import
|
|
21
|
-
import Ue from "./
|
|
22
|
-
import Ye from "
|
|
23
|
-
|
|
24
|
-
const ze = ["innerHTML"], Ge = { class: "references-header" }, Ke = ["aria-label"], Qe = { class: "references-navigation-list" }, We = { class: "references-editor" }, je = { class: "references-editor-textarea" }, qe = ["aria-label"], Je = {
|
|
12
|
+
import { CONFIGURATION_SYMBOL as Me } from "../hooks/useConfig.js";
|
|
13
|
+
import { useNavState as Pe } from "../hooks/useNavState.js";
|
|
14
|
+
import { useSidebar as Le } from "../hooks/useSidebar.js";
|
|
15
|
+
import { downloadEventBus as _, downloadDocument as Ae } from "../libs/download.js";
|
|
16
|
+
import { useHttpClientStore as Be } from "../stores/useHttpClientStore.js";
|
|
17
|
+
import { useDocumentSource as ke } from "../features/DocumentSource/hooks/useDocumentSource.js";
|
|
18
|
+
import { OPENAPI_VERSION_SYMBOL as Ne } from "../features/DownloadLink/openapi-version-symbol.js";
|
|
19
|
+
import { PLUGIN_MANAGER_SYMBOL as Fe } from "../plugins/hooks/usePluginManager.js";
|
|
20
|
+
import { createPluginManager as _e } from "../plugins/plugin-manager.js";
|
|
21
|
+
import He from "./Sidebar/Sidebar.vue.js";
|
|
22
|
+
import Ue from "./Content/Content.vue.js";
|
|
23
|
+
import Ye from "../features/ApiClientModal/ApiClientModal.vue.js";
|
|
24
|
+
const Ve = ["innerHTML"], ze = { class: "references-header" }, Ge = ["aria-label"], Ke = { class: "references-navigation-list" }, Qe = { class: "references-editor" }, We = { class: "references-editor-textarea" }, je = ["aria-label"], qe = {
|
|
25
25
|
key: 0,
|
|
26
26
|
class: "references-footer"
|
|
27
|
-
},
|
|
27
|
+
}, Dt = /* @__PURE__ */ ne({
|
|
28
28
|
inheritAttrs: !1,
|
|
29
29
|
__name: "ApiReferenceLayout",
|
|
30
30
|
props: {
|
|
@@ -47,35 +47,34 @@ const ze = ["innerHTML"], Ge = { class: "references-header" }, Ke = ["aria-label
|
|
|
47
47
|
parsedDocument: D,
|
|
48
48
|
workspaceStore: z,
|
|
49
49
|
activeEntitiesStore: G
|
|
50
|
-
} =
|
|
50
|
+
} = ke({
|
|
51
51
|
configuration: t,
|
|
52
52
|
dereferencedDocument: b.dereferencedDocument,
|
|
53
53
|
originalDocument: b.originalDocument
|
|
54
54
|
});
|
|
55
|
-
u(
|
|
55
|
+
u(Ne, V), u(ge, z), u(Se, G);
|
|
56
56
|
const K = Oe("(min-width: 1150px)"), Q = E("100dvh"), f = E(null);
|
|
57
57
|
$e(f, (e) => {
|
|
58
58
|
Q.value = e[0].contentRect.height + "px";
|
|
59
59
|
});
|
|
60
60
|
const W = h(ye), {
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
defaultOpenAllTags: X,
|
|
61
|
+
collapsedSidebarItems: Je,
|
|
62
|
+
isSidebarOpen: j,
|
|
63
|
+
setCollapsedSidebarItem: Xe,
|
|
64
|
+
hideModels: q,
|
|
65
|
+
defaultOpenAllTags: J,
|
|
67
66
|
// setParsedSpec,
|
|
68
|
-
scrollToOperation:
|
|
69
|
-
} =
|
|
70
|
-
getReferenceId:
|
|
71
|
-
getPathRoutingId:
|
|
72
|
-
getSectionId:
|
|
73
|
-
getTagId:
|
|
74
|
-
hash:
|
|
67
|
+
scrollToOperation: X
|
|
68
|
+
} = Le(), {
|
|
69
|
+
getReferenceId: Z,
|
|
70
|
+
getPathRoutingId: x,
|
|
71
|
+
getSectionId: Ze,
|
|
72
|
+
getTagId: xe,
|
|
73
|
+
hash: et,
|
|
75
74
|
isIntersectionEnabled: $,
|
|
76
75
|
updateHash: R,
|
|
77
|
-
replaceUrlState:
|
|
78
|
-
} =
|
|
76
|
+
replaceUrlState: ee
|
|
77
|
+
} = Pe(t);
|
|
79
78
|
if (t.value.redirect && typeof window < "u") {
|
|
80
79
|
const e = t.value.redirect(
|
|
81
80
|
(t.value.pathRouting ? window.location.pathname : "") + window.location.hash
|
|
@@ -85,9 +84,9 @@ const ze = ["innerHTML"], Ge = { class: "references-header" }, Ke = ["aria-label
|
|
|
85
84
|
B(() => R());
|
|
86
85
|
const I = async (e) => {
|
|
87
86
|
var o;
|
|
88
|
-
$.value = !1, R(), e ?
|
|
87
|
+
$.value = !1, R(), e ? X(e) : (o = f.value) == null || o.scrollTo(0, 0), await we(100), $.value = !0;
|
|
89
88
|
}, M = E(0);
|
|
90
|
-
B(() =>
|
|
89
|
+
B(() => he()), k(() => {
|
|
91
90
|
var r, p, v;
|
|
92
91
|
history.scrollRestoration = "manual";
|
|
93
92
|
const e = (p = (r = f.value) == null ? void 0 : r.parentElement) == null ? void 0 : p.getBoundingClientRect(), o = (v = f.value) == null ? void 0 : v.getBoundingClientRect();
|
|
@@ -96,35 +95,35 @@ const ze = ["innerHTML"], Ge = { class: "references-header" }, Ke = ["aria-label
|
|
|
96
95
|
M.value = g < 2 ? 0 : g;
|
|
97
96
|
}
|
|
98
97
|
window.onhashchange = () => {
|
|
99
|
-
I(
|
|
100
|
-
}, window.onpopstate = () => t.value.pathRouting && I(
|
|
98
|
+
I(Z());
|
|
99
|
+
}, window.onpopstate = () => t.value.pathRouting && I(x(window.location.pathname));
|
|
101
100
|
});
|
|
102
|
-
const
|
|
101
|
+
const te = h(
|
|
103
102
|
() => K.value || !t.value.isEditable
|
|
104
103
|
), P = Re((e) => {
|
|
105
104
|
if ((e.target.scrollTop ?? 0) < 50) {
|
|
106
105
|
const r = t.value.pathRouting ? t.value.pathRouting.basePath : window.location.pathname;
|
|
107
|
-
|
|
106
|
+
ee("", r + window.location.search);
|
|
108
107
|
}
|
|
109
108
|
}), n = h(() => ({
|
|
110
|
-
breadcrumb: j.value,
|
|
111
109
|
spec: D.value
|
|
112
110
|
}));
|
|
113
111
|
k(
|
|
114
|
-
() => _.on(({ filename: e }) => {
|
|
115
|
-
|
|
112
|
+
() => _.on(({ filename: e, format: o }) => {
|
|
113
|
+
Ae(
|
|
116
114
|
N(Y) || N(b.rawSpec) || "",
|
|
117
|
-
e
|
|
115
|
+
e,
|
|
116
|
+
o
|
|
118
117
|
);
|
|
119
118
|
})
|
|
120
|
-
),
|
|
121
|
-
|
|
122
|
-
|
|
119
|
+
), ie(() => _.reset()), pe(() => se()), u(ve, "modal"), u(Me, t), u(
|
|
120
|
+
Fe,
|
|
121
|
+
_e({
|
|
123
122
|
plugins: t.value.plugins
|
|
124
123
|
})
|
|
125
124
|
);
|
|
126
125
|
function L(e, o) {
|
|
127
|
-
|
|
126
|
+
fe(
|
|
128
127
|
() => t.value[e],
|
|
129
128
|
(r) => {
|
|
130
129
|
typeof r < "u" && o(r);
|
|
@@ -132,9 +131,9 @@ const ze = ["innerHTML"], Ge = { class: "references-header" }, Ke = ["aria-label
|
|
|
132
131
|
{ immediate: !0 }
|
|
133
132
|
);
|
|
134
133
|
}
|
|
135
|
-
const { setExcludedClients:
|
|
136
|
-
L("defaultHttpClient",
|
|
137
|
-
const
|
|
134
|
+
const { setExcludedClients: oe, setDefaultHttpClient: ae } = Be();
|
|
135
|
+
L("defaultHttpClient", ae), L("hiddenClients", oe), q.value = t.value.hideModels ?? !1, J.value = t.value.defaultOpenAllTags ?? !1;
|
|
136
|
+
const re = h(
|
|
138
137
|
() => `<style>
|
|
139
138
|
${Ce(t.value.theme, {
|
|
140
139
|
fonts: t.value.withDefaultFonts
|
|
@@ -143,27 +142,27 @@ const ze = ["innerHTML"], Ge = { class: "references-header" }, Ke = ["aria-label
|
|
|
143
142
|
return (e, o) => {
|
|
144
143
|
var r, p, v, g, A;
|
|
145
144
|
return C(), y(F, null, [
|
|
146
|
-
i("div", { innerHTML:
|
|
145
|
+
i("div", { innerHTML: re.value }, null, 8, Ve),
|
|
147
146
|
i("div", {
|
|
148
147
|
ref_key: "documentEl",
|
|
149
148
|
ref: f,
|
|
150
|
-
class:
|
|
149
|
+
class: de(["scalar-app scalar-api-reference references-layout", [
|
|
151
150
|
{
|
|
152
151
|
"scalar-scrollbars-obtrusive": W.value,
|
|
153
152
|
"references-editable": t.value.isEditable,
|
|
154
153
|
"references-sidebar": t.value.showSidebar,
|
|
155
|
-
"references-sidebar-mobile-open": a(
|
|
154
|
+
"references-sidebar-mobile-open": a(j),
|
|
156
155
|
"references-classic": t.value.layout === "classic"
|
|
157
156
|
},
|
|
158
157
|
e.$attrs.class
|
|
159
158
|
]]),
|
|
160
|
-
style:
|
|
159
|
+
style: le({
|
|
161
160
|
"--scalar-y-offset": `var(--scalar-custom-header-height, ${M.value}px)`
|
|
162
161
|
}),
|
|
163
162
|
onScrollPassive: o[4] || (o[4] = //@ts-ignore
|
|
164
163
|
(...w) => a(P) && a(P)(...w))
|
|
165
164
|
}, [
|
|
166
|
-
i("div",
|
|
165
|
+
i("div", ze, [
|
|
167
166
|
s(e.$slots, "header", l(d(n.value)), void 0, !0)
|
|
168
167
|
]),
|
|
169
168
|
t.value.showSidebar ? (C(), y("aside", {
|
|
@@ -171,10 +170,10 @@ const ze = ["innerHTML"], Ge = { class: "references-header" }, Ke = ["aria-label
|
|
|
171
170
|
"aria-label": `Sidebar for ${(p = (r = a(T)) == null ? void 0 : r.info) == null ? void 0 : p.title}`,
|
|
172
171
|
class: "references-navigation t-doc__sidebar"
|
|
173
172
|
}, [
|
|
174
|
-
i("div",
|
|
175
|
-
c(a(
|
|
173
|
+
i("div", Ke, [
|
|
174
|
+
c(a(be), null, {
|
|
176
175
|
default: m(() => [
|
|
177
|
-
c(a(
|
|
176
|
+
c(a(He), {
|
|
178
177
|
operationsSorter: t.value.operationsSorter,
|
|
179
178
|
parsedSpec: a(D),
|
|
180
179
|
tagsSorter: t.value.tagsSorter
|
|
@@ -191,23 +190,23 @@ const ze = ["innerHTML"], Ge = { class: "references-header" }, Ke = ["aria-label
|
|
|
191
190
|
_: 3
|
|
192
191
|
})
|
|
193
192
|
])
|
|
194
|
-
], 8,
|
|
195
|
-
|
|
196
|
-
i("div",
|
|
193
|
+
], 8, Ge)) : O("", !0),
|
|
194
|
+
ue(i("div", Qe, [
|
|
195
|
+
i("div", We, [
|
|
197
196
|
s(e.$slots, "editor", l(d(n.value)), void 0, !0)
|
|
198
197
|
])
|
|
199
198
|
], 512), [
|
|
200
|
-
[
|
|
199
|
+
[ce, t.value.isEditable]
|
|
201
200
|
]),
|
|
202
|
-
|
|
201
|
+
te.value ? (C(), y(F, { key: 1 }, [
|
|
203
202
|
i("main", {
|
|
204
203
|
"aria-label": `Open API Documentation for ${(g = (v = a(T)) == null ? void 0 : v.info) == null ? void 0 : g.title}`,
|
|
205
204
|
class: "references-rendered"
|
|
206
205
|
}, [
|
|
207
|
-
c(a(
|
|
206
|
+
c(a(Ue), {
|
|
208
207
|
layout: t.value.layout,
|
|
209
208
|
parsedSpec: a(D)
|
|
210
|
-
},
|
|
209
|
+
}, me({
|
|
211
210
|
start: m(() => [
|
|
212
211
|
s(e.$slots, "content-start", l(d(n.value)), void 0, !0)
|
|
213
212
|
]),
|
|
@@ -233,12 +232,12 @@ const ze = ["innerHTML"], Ge = { class: "references-header" }, Ke = ["aria-label
|
|
|
233
232
|
key: "0"
|
|
234
233
|
} : void 0
|
|
235
234
|
]), 1032, ["layout", "parsedSpec"])
|
|
236
|
-
], 8,
|
|
237
|
-
e.$slots.footer ? (C(), y("div",
|
|
235
|
+
], 8, je),
|
|
236
|
+
e.$slots.footer ? (C(), y("div", qe, [
|
|
238
237
|
s(e.$slots, "footer", l(d(n.value)), void 0, !0)
|
|
239
238
|
])) : O("", !0)
|
|
240
239
|
], 64)) : O("", !0),
|
|
241
|
-
c(a(
|
|
240
|
+
c(a(Ye), {
|
|
242
241
|
configuration: t.value,
|
|
243
242
|
dereferencedDocument: a(T)
|
|
244
243
|
}, null, 8, ["configuration", "dereferencedDocument"])
|
|
@@ -249,5 +248,5 @@ const ze = ["innerHTML"], Ge = { class: "references-header" }, Ke = ["aria-label
|
|
|
249
248
|
}
|
|
250
249
|
});
|
|
251
250
|
export {
|
|
252
|
-
|
|
251
|
+
Dt as default
|
|
253
252
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Badge.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Badge/Badge.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Badge.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Badge/Badge.vue"],"names":[],"mappings":"AA4BA,iBAAS,cAAc;WAsCT,OAAO,IAA6B;;yBARrB,GAAG;;;;EAa/B;AAOD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,0RAMnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAKpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -7,7 +7,7 @@ function s(e, a) {
|
|
|
7
7
|
r(e.$slots, "default", {}, void 0, !0)
|
|
8
8
|
]);
|
|
9
9
|
}
|
|
10
|
-
const l = /* @__PURE__ */ c(n, [["render", s], ["__scopeId", "data-v-
|
|
10
|
+
const l = /* @__PURE__ */ c(n, [["render", s], ["__scopeId", "data-v-1eb90c5b"]]);
|
|
11
11
|
export {
|
|
12
12
|
l as default
|
|
13
13
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./ClientLibraries.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-714ac357"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
e as default
|
|
7
7
|
};
|
|
@@ -2,7 +2,7 @@ import { defineComponent as K, ref as w, useId as h, watch as P, onMounted as B,
|
|
|
2
2
|
import { TabGroup as M, TabList as O, TabPanels as R, TabPanel as j } from "@headlessui/vue";
|
|
3
3
|
import { useWorkspace as G } from "@scalar/api-client/store";
|
|
4
4
|
import { ScalarMarkdown as J, ScalarCodeBlock as W } from "@scalar/components";
|
|
5
|
-
import { REFERENCE_LS_KEYS as Y } from "
|
|
5
|
+
import { REFERENCE_LS_KEYS as Y } from "@scalar/helpers/object/local-storage";
|
|
6
6
|
import { useHttpClientStore as q } from "../../../stores/useHttpClientStore.js";
|
|
7
7
|
import z from "./ClientSelector.vue.js";
|
|
8
8
|
import { useFeaturedHttpClients as Q } from "./useFeaturedHttpClients.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Description.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Introduction/Description.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Description.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Introduction/Description.vue"],"names":[],"mappings":"AAiIA,KAAK,WAAW,GAAG;IACjB,wBAAwB;IACxB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAC;;AAyKF,wBAMG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./Description.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-2843ffaf"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
a as default
|
|
7
7
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Loading.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Lazy/Loading.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Loading.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Lazy/Loading.vue"],"names":[],"mappings":"AA8QA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAA;AAEzE,OAAO,KAAK,EACV,IAAI,EAGL,MAAM,sBAAsB,CAAA;;gBAuCb,UAAU;aACb,MAAM;aACN,QAAQ,GAAG,SAAS;gBACjB,IAAI;;gBAHJ,UAAU;aACb,MAAM;aACN,QAAQ,GAAG,SAAS;gBACjB,IAAI;;YADP,QAAQ,GAAG,SAAS;;AAlBjC,wBA4UK"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as E, ref as v, watch as H, onMounted as K, withDirectives as M, createElementBlock as f, openBlock as l, normalizeClass as j, createBlock as m, createCommentVNode as b, Fragment as h, renderList as k, unref as r, withCtx as c, createVNode as S, createTextVNode as A, toDisplayString as F, vShow as P } from "vue";
|
|
2
|
+
import { scrollToId as C } from "@scalar/helpers/dom/scroll-to-id";
|
|
2
3
|
import { lazyBus as q } from "./lazyBus.js";
|
|
3
|
-
import { scrollToId as C } from "../../../helpers/scroll-to-id.js";
|
|
4
4
|
import { useNavState as G } from "../../../hooks/useNavState.js";
|
|
5
5
|
import { getModels as y } from "../../../libs/openapi.js";
|
|
6
6
|
import J from "../Tag/TagSection.vue.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SchemaComposition.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaComposition.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SchemaComposition.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaComposition.vue"],"names":[],"mappings":"AAyRA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAA;AAEjE,OAAO,EAEL,KAAK,kBAAkB,EACxB,MAAM,8BAA8B,CAAA;AAKrC,KAAK,WAAW,GAAG;IACjB,WAAW,EAAE,kBAAkB,CAAA;IAC/B,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC1B,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,CAAC;;AAoUF,wBAOG"}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ScalarListbox as
|
|
3
|
-
import { ScalarIconCaretDown as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { hasComposition as
|
|
7
|
-
import
|
|
8
|
-
const
|
|
1
|
+
import { defineComponent as F, ref as M, computed as s, resolveComponent as T, createElementBlock as c, openBlock as r, createCommentVNode as u, createBlock as p, Fragment as N, renderList as j, createVNode as y, createElementVNode as f, unref as v, withCtx as R, toDisplayString as V } from "vue";
|
|
2
|
+
import { ScalarListbox as Z, ScalarMarkdown as $ } from "@scalar/components";
|
|
3
|
+
import { ScalarIconCaretDown as G } from "@scalar/icons";
|
|
4
|
+
import { mergeAllOfSchemas as w } from "./helpers/merge-all-of-schemas.js";
|
|
5
|
+
import { getModelNameFromSchema as J } from "./helpers/schema-name.js";
|
|
6
|
+
import { hasComposition as b } from "./helpers/schema-composition.js";
|
|
7
|
+
import g from "./Schema.vue.js";
|
|
8
|
+
const K = { class: "property-rule" }, P = {
|
|
9
9
|
class: "composition-selector bg-b-1.5 hover:bg-b-2 flex w-full cursor-pointer items-center gap-1 rounded-t-lg border border-b-0 px-2 py-1.25 pr-3 text-left",
|
|
10
10
|
type: "button"
|
|
11
|
-
},
|
|
11
|
+
}, Q = { class: "text-c-2" }, X = { class: "composition-selector-label text-c-1" }, Y = { class: "composition-panel" }, W = {
|
|
12
12
|
key: 0,
|
|
13
13
|
class: "property-description border-x border-t p-2"
|
|
14
|
-
}, te = /* @__PURE__ */
|
|
14
|
+
}, te = /* @__PURE__ */ F({
|
|
15
15
|
__name: "SchemaComposition",
|
|
16
16
|
props: {
|
|
17
17
|
composition: {},
|
|
@@ -22,132 +22,96 @@ const G = { class: "property-rule" }, J = {
|
|
|
22
22
|
compact: { type: Boolean },
|
|
23
23
|
hideHeading: { type: Boolean }
|
|
24
24
|
},
|
|
25
|
-
setup(
|
|
26
|
-
const
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
25
|
+
setup(a) {
|
|
26
|
+
const d = M(0);
|
|
27
|
+
s(() => a.value[a.composition] || []);
|
|
28
|
+
const B = s(() => k.value), C = s(
|
|
29
|
+
() => B.value.map(
|
|
30
|
+
(e, o) => ({
|
|
31
|
+
id: String(o),
|
|
32
|
+
label: J(e, a.schemas) || "Schema"
|
|
33
|
+
})
|
|
34
|
+
)
|
|
31
35
|
), O = s({
|
|
32
36
|
get: () => C.value.find(
|
|
33
|
-
(e) => e.id === String(
|
|
37
|
+
(e) => e.id === String(d.value)
|
|
34
38
|
),
|
|
35
|
-
set: (e) =>
|
|
36
|
-
}),
|
|
37
|
-
var
|
|
38
|
-
const e = ["oneOf", "anyOf"].includes(
|
|
39
|
+
set: (e) => d.value = Number(e.id)
|
|
40
|
+
}), D = s(() => {
|
|
41
|
+
var i;
|
|
42
|
+
const e = ["oneOf", "anyOf"].includes(a.composition), o = a.composition === "allOf" && ((i = a.value[a.composition]) == null ? void 0 : i.some((l) => b(l)));
|
|
39
43
|
return e || o;
|
|
40
|
-
}),
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
if (l.schemas && typeof l.schemas == "object") {
|
|
48
|
-
for (const [o, t] of Object.entries(l.schemas))
|
|
49
|
-
if (j(t) === j(e))
|
|
50
|
-
return o;
|
|
51
|
-
}
|
|
52
|
-
if (e.type === "array" && e.items)
|
|
53
|
-
return `Array of ${e.items.type || "any"}`;
|
|
54
|
-
if (e.type)
|
|
55
|
-
return e.type;
|
|
56
|
-
if (typeof e == "object") {
|
|
57
|
-
const o = Object.keys(e);
|
|
58
|
-
if (o.length > 0)
|
|
59
|
-
return o[0];
|
|
60
|
-
}
|
|
61
|
-
return null;
|
|
62
|
-
}, k = (e) => e.find((o) => g(o)), N = s(() => {
|
|
63
|
-
if (!k(l.value[l.composition]))
|
|
64
|
-
return l.value[l.composition];
|
|
65
|
-
const e = k(l.value[l.composition]);
|
|
66
|
-
return (e.oneOf || e.anyOf || e.allOf).map((t) => {
|
|
67
|
-
if (t.allOf) {
|
|
68
|
-
const n = t.allOf.find((c) => c.title), r = t.allOf.find((c) => !c.title);
|
|
69
|
-
return n && r ? {
|
|
70
|
-
...n,
|
|
71
|
-
properties: {
|
|
72
|
-
...n.properties,
|
|
73
|
-
...r.properties
|
|
74
|
-
},
|
|
75
|
-
required: [
|
|
76
|
-
...n.required || [],
|
|
77
|
-
...r.required || []
|
|
78
|
-
],
|
|
79
|
-
oneOf: r.oneOf,
|
|
80
|
-
anyOf: r.anyOf
|
|
81
|
-
} : n || t;
|
|
82
|
-
}
|
|
83
|
-
return t;
|
|
84
|
-
});
|
|
85
|
-
}), B = (e) => {
|
|
86
|
-
var o, t;
|
|
44
|
+
}), I = (e) => e.find((o) => b(o)), L = (e) => !e.allOf || !Array.isArray(e.allOf) ? !1 : e.allOf.some(
|
|
45
|
+
(o) => o.oneOf || o.anyOf || o.allOf
|
|
46
|
+
), S = (e) => e.allOf && Array.isArray(e.allOf) ? L(e) ? e : w(e.allOf) : e, k = s(() => {
|
|
47
|
+
const e = a.value[a.composition], o = I(e);
|
|
48
|
+
return !o || a.composition !== "allOf" && o.allOf ? e.map(S) : (o.oneOf || o.anyOf || o.allOf).map(S);
|
|
49
|
+
}), U = (e) => {
|
|
50
|
+
var o, i;
|
|
87
51
|
if (e === "allOf") {
|
|
88
|
-
const
|
|
89
|
-
(
|
|
52
|
+
const l = (i = (o = a.value) == null ? void 0 : o[e]) == null ? void 0 : i.find(
|
|
53
|
+
(m) => b(m)
|
|
90
54
|
);
|
|
91
|
-
if (
|
|
55
|
+
if (l != null && l.oneOf)
|
|
92
56
|
return "One of";
|
|
93
|
-
if (
|
|
57
|
+
if (l != null && l.anyOf)
|
|
94
58
|
return "Any of";
|
|
95
59
|
}
|
|
96
|
-
return e.replace(/([A-Z])/g, " $1").replace(/^./, (
|
|
97
|
-
},
|
|
98
|
-
() =>
|
|
60
|
+
return e.replace(/([A-Z])/g, " $1").replace(/^./, (l) => l.toUpperCase()).toLowerCase().replace(/^(\w)/, (l) => l.toUpperCase());
|
|
61
|
+
}, t = s(
|
|
62
|
+
() => k.value[d.value]
|
|
99
63
|
), h = s(() => {
|
|
100
64
|
var e;
|
|
101
|
-
return (e =
|
|
102
|
-
}),
|
|
65
|
+
return (e = t.value) != null && e.oneOf ? "oneOf" : "anyOf";
|
|
66
|
+
}), q = s(() => {
|
|
103
67
|
var o;
|
|
104
68
|
const e = h.value;
|
|
105
|
-
return (o =
|
|
69
|
+
return (o = t.value) == null ? void 0 : o[e];
|
|
106
70
|
}), z = s(() => {
|
|
107
|
-
const e =
|
|
71
|
+
const e = t.value;
|
|
108
72
|
return e ? !!(e.properties || e.type || e.nullable || e.const !== void 0 || e.enum || e.allOf || e.oneOf || e.anyOf || e.items) : !1;
|
|
109
73
|
});
|
|
110
74
|
return (e, o) => {
|
|
111
|
-
var
|
|
112
|
-
const
|
|
113
|
-
return
|
|
114
|
-
e.composition === "allOf" && e.value[e.composition].some((
|
|
115
|
-
(
|
|
116
|
-
), (
|
|
117
|
-
key:
|
|
75
|
+
var l, m, A, H;
|
|
76
|
+
const i = T("SchemaComposition", !0);
|
|
77
|
+
return r(), c("div", K, [
|
|
78
|
+
e.composition === "allOf" && e.value[e.composition].some((n) => n.oneOf || n.anyOf) ? (r(!0), c(N, { key: 0 }, j(e.value[e.composition].filter(
|
|
79
|
+
(n) => !n.oneOf && !n.anyOf
|
|
80
|
+
), (n, E) => (r(), p(g, {
|
|
81
|
+
key: E,
|
|
118
82
|
compact: e.compact,
|
|
119
83
|
level: e.level,
|
|
120
84
|
name: e.name,
|
|
121
85
|
noncollapsible: e.level == 0,
|
|
122
86
|
schemas: e.schemas,
|
|
123
|
-
value:
|
|
124
|
-
}, null, 8, ["compact", "level", "name", "noncollapsible", "schemas", "value"]))), 128)) :
|
|
125
|
-
|
|
126
|
-
|
|
87
|
+
value: n
|
|
88
|
+
}, null, 8, ["compact", "level", "name", "noncollapsible", "schemas", "value"]))), 128)) : u("", !0),
|
|
89
|
+
D.value ? (r(), c(N, { key: 1 }, [
|
|
90
|
+
y(v(Z), {
|
|
127
91
|
modelValue: O.value,
|
|
128
|
-
"onUpdate:modelValue": o[0] || (o[0] = (
|
|
92
|
+
"onUpdate:modelValue": o[0] || (o[0] = (n) => O.value = n),
|
|
129
93
|
options: C.value,
|
|
130
94
|
resize: ""
|
|
131
95
|
}, {
|
|
132
|
-
default:
|
|
133
|
-
var
|
|
96
|
+
default: R(() => {
|
|
97
|
+
var n;
|
|
134
98
|
return [
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
99
|
+
f("button", P, [
|
|
100
|
+
f("span", Q, V(U(e.composition)), 1),
|
|
101
|
+
f("span", X, V(((n = O.value) == null ? void 0 : n.label) || "Schema"), 1),
|
|
102
|
+
y(v(G))
|
|
139
103
|
])
|
|
140
104
|
];
|
|
141
105
|
}),
|
|
142
106
|
_: 1
|
|
143
107
|
}, 8, ["modelValue", "options"]),
|
|
144
|
-
|
|
145
|
-
(
|
|
146
|
-
|
|
147
|
-
value:
|
|
108
|
+
f("div", Y, [
|
|
109
|
+
(l = t.value) != null && l.description ? (r(), c("div", W, [
|
|
110
|
+
y(v($), {
|
|
111
|
+
value: t.value.description
|
|
148
112
|
}, null, 8, ["value"])
|
|
149
|
-
])) :
|
|
150
|
-
z.value ? (
|
|
113
|
+
])) : u("", !0),
|
|
114
|
+
z.value ? (r(), p(g, {
|
|
151
115
|
key: 1,
|
|
152
116
|
compact: e.compact,
|
|
153
117
|
level: e.level + 1,
|
|
@@ -155,13 +119,13 @@ const G = { class: "property-rule" }, J = {
|
|
|
155
119
|
name: e.name,
|
|
156
120
|
noncollapsible: !0,
|
|
157
121
|
schemas: e.schemas,
|
|
158
|
-
value: (
|
|
122
|
+
value: (m = t.value) != null && m.properties ? {
|
|
159
123
|
type: "object",
|
|
160
|
-
properties:
|
|
161
|
-
required:
|
|
162
|
-
} :
|
|
163
|
-
}, null, 8, ["compact", "level", "hideHeading", "name", "schemas", "value"])) :
|
|
164
|
-
(
|
|
124
|
+
properties: t.value.properties,
|
|
125
|
+
required: t.value.required
|
|
126
|
+
} : t.value
|
|
127
|
+
}, null, 8, ["compact", "level", "hideHeading", "name", "schemas", "value"])) : u("", !0),
|
|
128
|
+
(A = t.value) != null && A.oneOf || (H = t.value) != null && H.anyOf ? (r(), p(i, {
|
|
165
129
|
key: 2,
|
|
166
130
|
compact: e.compact,
|
|
167
131
|
composition: h.value,
|
|
@@ -171,18 +135,18 @@ const G = { class: "property-rule" }, J = {
|
|
|
171
135
|
noncollapsible: !0,
|
|
172
136
|
schemas: e.schemas,
|
|
173
137
|
value: {
|
|
174
|
-
[h.value]:
|
|
138
|
+
[h.value]: q.value
|
|
175
139
|
}
|
|
176
|
-
}, null, 8, ["compact", "composition", "hideHeading", "level", "name", "schemas", "value"])) :
|
|
140
|
+
}, null, 8, ["compact", "composition", "hideHeading", "level", "name", "schemas", "value"])) : u("", !0)
|
|
177
141
|
])
|
|
178
|
-
], 64)) : (
|
|
142
|
+
], 64)) : (r(), p(g, {
|
|
179
143
|
key: 2,
|
|
180
144
|
compact: e.compact,
|
|
181
145
|
level: e.level,
|
|
182
146
|
name: e.name,
|
|
183
147
|
noncollapsible: e.level == 0,
|
|
184
148
|
schemas: e.schemas,
|
|
185
|
-
value: v(
|
|
149
|
+
value: v(w)(e.value[e.composition])
|
|
186
150
|
}, null, 8, ["compact", "level", "name", "noncollapsible", "schemas", "value"]))
|
|
187
151
|
]);
|
|
188
152
|
};
|