@scalar/api-reference 1.48.1 → 1.48.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 +85 -0
- package/dist/browser/standalone.js +2852 -2742
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/AgentScalar/OpenMCPButton.vue.d.ts +21 -0
- package/dist/components/AgentScalar/OpenMCPButton.vue.d.ts.map +1 -0
- package/dist/components/AgentScalar/OpenMCPButton.vue.js +7 -0
- package/dist/components/AgentScalar/OpenMCPButton.vue2.js +191 -0
- package/dist/components/AgentScalar/index.d.ts +1 -0
- package/dist/components/AgentScalar/index.d.ts.map +1 -1
- package/dist/components/ApiReference.vue.d.ts.map +1 -1
- package/dist/components/ApiReference.vue.js +1 -1
- package/dist/components/ApiReference.vue2.js +22 -2
- package/dist/components/Content/Content.vue.js +1 -1
- package/dist/components/Content/Schema/{SchemaEnumValues.vue.d.ts → SchemaEnums.vue.d.ts} +3 -1
- package/dist/components/Content/Schema/SchemaEnums.vue.d.ts.map +1 -0
- package/dist/components/Content/Schema/SchemaEnums.vue.js +7 -0
- package/dist/components/Content/Schema/{SchemaEnumValues.vue2.js → SchemaEnums.vue2.js} +16 -6
- package/dist/components/Content/Schema/SchemaObjectProperties.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaObjectProperties.vue.js +29 -3
- package/dist/components/Content/Schema/SchemaProperty.vue.d.ts +4 -0
- package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaProperty.vue.js +1 -1
- package/dist/components/Content/Schema/SchemaProperty.vue2.js +14 -6
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts +2 -0
- 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 +5 -1
- package/dist/features/Operation/components/ParameterListItem.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/ParameterListItem.vue.js +1 -1
- package/dist/features/Operation/components/ParameterListItem.vue2.js +19 -3
- package/dist/helpers/index.d.ts +1 -1
- package/dist/helpers/index.d.ts.map +1 -1
- package/dist/helpers/index.js +2 -1
- package/dist/style.css +254 -110
- package/package.json +16 -16
- package/dist/components/Content/Schema/SchemaEnumValues.vue.d.ts.map +0 -1
- package/dist/components/Content/Schema/SchemaEnumValues.vue.js +0 -7
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { WorkspaceStore } from '@scalar/workspace-store/client';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
config?: {
|
|
4
|
+
name?: string;
|
|
5
|
+
url?: string;
|
|
6
|
+
};
|
|
7
|
+
url?: string;
|
|
8
|
+
workspace: WorkspaceStore;
|
|
9
|
+
};
|
|
10
|
+
type __VLS_ModelProps = {
|
|
11
|
+
'url'?: string;
|
|
12
|
+
};
|
|
13
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
14
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
15
|
+
"update:url": (value: string | undefined) => any;
|
|
16
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
17
|
+
"onUpdate:url"?: ((value: string | undefined) => any) | undefined;
|
|
18
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
19
|
+
declare const _default: typeof __VLS_export;
|
|
20
|
+
export default _default;
|
|
21
|
+
//# sourceMappingURL=OpenMCPButton.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OpenMCPButton.vue.d.ts","sourceRoot":"","sources":["../../../src/components/AgentScalar/OpenMCPButton.vue"],"names":[],"mappings":"AA6SA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AAMpE,KAAK,WAAW,GAAG;IACjB,MAAM,CAAC,EAAE;QACP,IAAI,CAAC,EAAE,MAAM,CAAA;QACb,GAAG,CAAC,EAAE,MAAM,CAAA;KACb,CAAA;IACD,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,SAAS,EAAE,cAAc,CAAA;CAC1B,CAAC;AAmEF,KAAK,gBAAgB,GAAG;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC;CACd,CAAC;AAKF,KAAK,iBAAiB,GAAG,WAAW,GAAG,gBAAgB,CAAC;AAiOxD,QAAA,MAAM,YAAY;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import _sfc_main from "./OpenMCPButton.vue2.js";
|
|
2
|
+
/* empty css */
|
|
3
|
+
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const OpenMCPButton = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-d7102814"]]);
|
|
5
|
+
export {
|
|
6
|
+
OpenMCPButton as default
|
|
7
|
+
};
|
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
import { defineComponent, mergeModels, useModel, createElementBlock, openBlock, createElementVNode, unref, createTextVNode, createVNode, nextTick } from "vue";
|
|
2
|
+
import { useLoadingState } from "@scalar/components";
|
|
3
|
+
import { ScalarIconArrowUpRight } from "@scalar/icons";
|
|
4
|
+
import { isValidUrl } from "@scalar/oas-utils/helpers";
|
|
5
|
+
import { useClipboard } from "@scalar/use-hooks/useClipboard";
|
|
6
|
+
import { useToasts } from "@scalar/use-toasts";
|
|
7
|
+
import { DASHBOARD_REGISTER_URL } from "../../consts/urls.js";
|
|
8
|
+
import { uploadTempDocument } from "../../helpers/upload-temp-document.js";
|
|
9
|
+
const _hoisted_1 = { class: "scalar-mcp-layer" };
|
|
10
|
+
const _hoisted_2 = ["href", "target"];
|
|
11
|
+
const _hoisted_3 = ["href", "target"];
|
|
12
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
13
|
+
__name: "OpenMCPButton",
|
|
14
|
+
props: /* @__PURE__ */ mergeModels({
|
|
15
|
+
config: {},
|
|
16
|
+
url: {},
|
|
17
|
+
workspace: {}
|
|
18
|
+
}, {
|
|
19
|
+
"url": {},
|
|
20
|
+
"urlModifiers": {}
|
|
21
|
+
}),
|
|
22
|
+
emits: ["update:url"],
|
|
23
|
+
setup(__props) {
|
|
24
|
+
const props = __props;
|
|
25
|
+
const { copyToClipboard } = useClipboard();
|
|
26
|
+
const { toast } = useToasts();
|
|
27
|
+
const loader = useLoadingState();
|
|
28
|
+
const hasConfig = props.config?.name || props.config?.url;
|
|
29
|
+
const encoded = btoa(JSON.stringify(props.config ?? {}));
|
|
30
|
+
const name = encodeURIComponent(props.config?.name ?? "");
|
|
31
|
+
const cursorLink = `cursor://anysphere.cursor-deeplink/mcp/install?name=${name}&config=${encoded}`;
|
|
32
|
+
const vscodeLink = `vscode:mcp/install?${encodeURIComponent(JSON.stringify(props.config ?? {}))}`;
|
|
33
|
+
const docUrl = useModel(__props, "url");
|
|
34
|
+
async function generateRegisterLink() {
|
|
35
|
+
if (loader.isLoading || !props.workspace) {
|
|
36
|
+
return;
|
|
37
|
+
}
|
|
38
|
+
if (docUrl.value && isValidUrl(docUrl.value)) {
|
|
39
|
+
openRegisterLink(docUrl.value);
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
42
|
+
loader.start();
|
|
43
|
+
const document = props.workspace.exportActiveDocument("json");
|
|
44
|
+
if (!document) {
|
|
45
|
+
toast("Unable to export active document", "error");
|
|
46
|
+
await loader.invalidate();
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
49
|
+
try {
|
|
50
|
+
docUrl.value = await uploadTempDocument(document);
|
|
51
|
+
await loader.validate();
|
|
52
|
+
openRegisterLink(docUrl.value);
|
|
53
|
+
await nextTick();
|
|
54
|
+
await loader.clear();
|
|
55
|
+
} catch (error) {
|
|
56
|
+
const message = error instanceof Error ? error.message : "An unknown error occurred";
|
|
57
|
+
toast(message, "error");
|
|
58
|
+
await loader.invalidate();
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
function openRegisterLink(docUrl2) {
|
|
62
|
+
const url = new URL(DASHBOARD_REGISTER_URL);
|
|
63
|
+
url.searchParams.set("url", docUrl2);
|
|
64
|
+
url.searchParams.set("createMcp", "true");
|
|
65
|
+
window.open(url.toString(), "_blank");
|
|
66
|
+
}
|
|
67
|
+
return (_ctx, _cache) => {
|
|
68
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
69
|
+
createElementVNode("a", {
|
|
70
|
+
class: "scalar-mcp-layer-link",
|
|
71
|
+
href: unref(hasConfig) ? vscodeLink : void 0,
|
|
72
|
+
target: unref(hasConfig) ? "_blank" : void 0,
|
|
73
|
+
onClick: _cache[0] || (_cache[0] = (e) => {
|
|
74
|
+
if (!unref(hasConfig)) {
|
|
75
|
+
e.preventDefault();
|
|
76
|
+
generateRegisterLink();
|
|
77
|
+
}
|
|
78
|
+
})
|
|
79
|
+
}, [
|
|
80
|
+
_cache[3] || (_cache[3] = createElementVNode("svg", {
|
|
81
|
+
class: "mcp-logo",
|
|
82
|
+
fill: "currentColor",
|
|
83
|
+
height: "800",
|
|
84
|
+
viewBox: "0 0 32 32",
|
|
85
|
+
width: "800",
|
|
86
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
87
|
+
}, [
|
|
88
|
+
createElementVNode("path", { d: "M30.865 3.448 24.282.281a1.99 1.99 0 0 0-2.276.385L9.397 12.171 3.902 8.004a1.33 1.33 0 0 0-1.703.073L.439 9.681a1.33 1.33 0 0 0-.005 1.969L5.2 15.999.434 20.348a1.33 1.33 0 0 0 .005 1.969l1.76 1.604a1.33 1.33 0 0 0 1.703.073l5.495-4.172 12.615 11.51a1.98 1.98 0 0 0 2.271.385l6.589-3.172a1.99 1.99 0 0 0 1.13-1.802V5.248c0-.766-.443-1.469-1.135-1.802zm-6.86 19.818L14.432 16l9.573-7.266z" })
|
|
89
|
+
], -1)),
|
|
90
|
+
_cache[4] || (_cache[4] = createTextVNode(" VS Code ", -1)),
|
|
91
|
+
createVNode(unref(ScalarIconArrowUpRight), { class: "mcp-nav ml-auto size-4" })
|
|
92
|
+
], 8, _hoisted_2),
|
|
93
|
+
createElementVNode("a", {
|
|
94
|
+
class: "scalar-mcp-layer-link",
|
|
95
|
+
href: unref(hasConfig) ? cursorLink : void 0,
|
|
96
|
+
target: unref(hasConfig) ? "_blank" : void 0,
|
|
97
|
+
onClick: _cache[1] || (_cache[1] = (e) => {
|
|
98
|
+
if (!unref(hasConfig)) {
|
|
99
|
+
e.preventDefault();
|
|
100
|
+
generateRegisterLink();
|
|
101
|
+
}
|
|
102
|
+
})
|
|
103
|
+
}, [
|
|
104
|
+
_cache[5] || (_cache[5] = createElementVNode("svg", {
|
|
105
|
+
class: "mcp-logo",
|
|
106
|
+
viewBox: "0 0 466.73 532.09",
|
|
107
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
108
|
+
}, [
|
|
109
|
+
createElementVNode("path", {
|
|
110
|
+
d: "M457.43 125.94 244.42 2.96a22.13 22.13 0 0 0-22.12 0L9.3 125.94C3.55 129.26 0 135.4 0 142.05v247.99c0 6.65 3.55 12.79 9.3 16.11l213.01 122.98a22.13 22.13 0 0 0 22.12 0l213.01-122.98c5.75-3.32 9.3-9.46 9.3-16.11V142.05c0-6.65-3.55-12.79-9.3-16.11zm-13.38 26.05L238.42 508.15c-1.39 2.4-5.06 1.42-5.06-1.36V273.58c0-4.66-2.49-8.97-6.53-11.31L24.87 145.67c-2.4-1.39-1.42-5.06 1.36-5.06h411.26c5.84 0 9.49 6.33 6.57 11.39h-.01Z",
|
|
111
|
+
style: { "fill": "currentColor" }
|
|
112
|
+
})
|
|
113
|
+
], -1)),
|
|
114
|
+
_cache[6] || (_cache[6] = createTextVNode(" Cursor ", -1)),
|
|
115
|
+
createVNode(unref(ScalarIconArrowUpRight), { class: "mcp-nav ml-auto size-4" })
|
|
116
|
+
], 8, _hoisted_3),
|
|
117
|
+
!unref(hasConfig) ? (openBlock(), createElementBlock("div", {
|
|
118
|
+
key: 0,
|
|
119
|
+
class: "scalar-mcp-layer-link",
|
|
120
|
+
onClick: generateRegisterLink
|
|
121
|
+
}, [
|
|
122
|
+
_cache[7] || (_cache[7] = createElementVNode("svg", {
|
|
123
|
+
class: "mcp-logo",
|
|
124
|
+
fill: "none",
|
|
125
|
+
height: "173",
|
|
126
|
+
viewBox: "0 0 156 173",
|
|
127
|
+
width: "156",
|
|
128
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
129
|
+
}, [
|
|
130
|
+
createElementVNode("path", {
|
|
131
|
+
d: "m6 80.912 67.882-67.883c9.373-9.372 24.569-9.372 33.941 0s9.373 24.569 0 33.942L56.558 98.236",
|
|
132
|
+
stroke: "currentColor",
|
|
133
|
+
"stroke-linecap": "round",
|
|
134
|
+
"stroke-width": "12"
|
|
135
|
+
}),
|
|
136
|
+
createElementVNode("path", {
|
|
137
|
+
d: "m57.265 97.529 50.558-50.558c9.373-9.373 24.569-9.373 33.942 0l.353.353c9.373 9.373 9.373 24.569 0 33.941L80.725 142.66a8 8 0 0 0 0 11.313l12.606 12.607",
|
|
138
|
+
stroke: "currentColor",
|
|
139
|
+
"stroke-linecap": "round",
|
|
140
|
+
"stroke-width": "12"
|
|
141
|
+
}),
|
|
142
|
+
createElementVNode("path", {
|
|
143
|
+
d: "M90.853 30 40.648 80.205c-9.372 9.372-9.372 24.568 0 33.941 9.373 9.372 24.569 9.372 33.941 0l50.205-50.205",
|
|
144
|
+
stroke: "currentColor",
|
|
145
|
+
"stroke-linecap": "round",
|
|
146
|
+
"stroke-width": "12"
|
|
147
|
+
})
|
|
148
|
+
], -1)),
|
|
149
|
+
_cache[8] || (_cache[8] = createTextVNode(" Generate MCP ", -1)),
|
|
150
|
+
createVNode(unref(ScalarIconArrowUpRight), { class: "mcp-nav ml-auto size-4" })
|
|
151
|
+
])) : (openBlock(), createElementBlock("div", {
|
|
152
|
+
key: 1,
|
|
153
|
+
class: "scalar-mcp-layer-link",
|
|
154
|
+
onClick: _cache[2] || (_cache[2] = ($event) => unref(copyToClipboard)(__props.config?.url ?? ""))
|
|
155
|
+
}, [..._cache[9] || (_cache[9] = [
|
|
156
|
+
createTextVNode(" Connect MCP ", -1),
|
|
157
|
+
createElementVNode("svg", {
|
|
158
|
+
class: "mcp-logo ml-auto",
|
|
159
|
+
fill: "none",
|
|
160
|
+
height: "173",
|
|
161
|
+
viewBox: "0 0 156 173",
|
|
162
|
+
width: "156",
|
|
163
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
164
|
+
}, [
|
|
165
|
+
createElementVNode("path", {
|
|
166
|
+
d: "m6 80.912 67.882-67.883c9.373-9.372 24.569-9.372 33.941 0s9.373 24.569 0 33.942L56.558 98.236",
|
|
167
|
+
stroke: "currentColor",
|
|
168
|
+
"stroke-linecap": "round",
|
|
169
|
+
"stroke-width": "12"
|
|
170
|
+
}),
|
|
171
|
+
createElementVNode("path", {
|
|
172
|
+
d: "m57.265 97.529 50.558-50.558c9.373-9.373 24.569-9.373 33.942 0l.353.353c9.373 9.373 9.373 24.569 0 33.941L80.725 142.66a8 8 0 0 0 0 11.313l12.606 12.607",
|
|
173
|
+
stroke: "currentColor",
|
|
174
|
+
"stroke-linecap": "round",
|
|
175
|
+
"stroke-width": "12"
|
|
176
|
+
}),
|
|
177
|
+
createElementVNode("path", {
|
|
178
|
+
d: "M90.853 30 40.648 80.205c-9.372 9.372-9.372 24.568 0 33.941 9.373 9.372 24.569 9.372 33.941 0l50.205-50.205",
|
|
179
|
+
stroke: "currentColor",
|
|
180
|
+
"stroke-linecap": "round",
|
|
181
|
+
"stroke-width": "12"
|
|
182
|
+
})
|
|
183
|
+
], -1)
|
|
184
|
+
])]))
|
|
185
|
+
]);
|
|
186
|
+
};
|
|
187
|
+
}
|
|
188
|
+
});
|
|
189
|
+
export {
|
|
190
|
+
_sfc_main as default
|
|
191
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/AgentScalar/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,yBAAyB,CAAA;AACtE,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,yBAAyB,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/AgentScalar/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,yBAAyB,CAAA;AACtE,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,yBAAyB,CAAA;AACtE,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,qBAAqB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApiReference.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApiReference.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ApiReference.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApiReference.vue"],"names":[],"mappings":"AAmyCA,OAAO,EAEL,KAAK,4BAA4B,EAGlC,MAAM,6BAA6B,CAAA;AAOpC,OAAO,KAAK,EACV,cAAc,EAEf,MAAM,4CAA4C,CAAA;AAsBnD,OAAO,8BAA8B,CAAA;AAkCrC,KAAK,WAAW,GAAG;IACjB;;;OAGG;IACH,aAAa,CAAC,EAAE,4BAA4B,CAAA;CAC7C,CAAC;AAGF,KAAK,WAAW,GAAG;IACjB,eAAe,CAAC,IAAI;QAAE,UAAU,EAAE,MAAM,CAAA;KAAE,CAAA;IAC1C,aAAa,CAAC,IAAI;QAAE,UAAU,EAAE,MAAM,CAAA;KAAE,CAAA;IACxC,eAAe,CAAC,IAAI;QAAE,UAAU,EAAE,MAAM,CAAA;KAAE,CAAA;IAC1C,aAAa,CAAC,IAAI;QAAE,UAAU,EAAE,MAAM,CAAA;KAAE,CAAA;IACxC,oBAAoB,CAAC,IAAI;QAAE,UAAU,EAAE,MAAM,CAAA;KAAE,CAAA;IAC/C,MAAM,CAAC,IAAI;QAAE,UAAU,EAAE,MAAM,CAAA;KAAE,CAAA;CAClC,CAAC;AA83CF,QAAA,MAAM,UAAU;;;;oPAGd,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -4,7 +4,7 @@ import _sfc_main from "./ApiReference.vue2.js";
|
|
|
4
4
|
/* empty css */
|
|
5
5
|
/* empty css */
|
|
6
6
|
import _export_sfc from "../_virtual/_plugin-vue_export-helper.js";
|
|
7
|
-
const ApiReference = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
7
|
+
const ApiReference = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-e8fb8338"]]);
|
|
8
8
|
export {
|
|
9
9
|
ApiReference as default
|
|
10
10
|
};
|
|
@@ -38,6 +38,7 @@ import { persistencePlugin } from "../plugins/persistance-plugin.js";
|
|
|
38
38
|
import { PLUGIN_MANAGER_SYMBOL } from "../plugins/hooks/usePluginManager.js";
|
|
39
39
|
import { createPluginManager } from "../plugins/plugin-manager.js";
|
|
40
40
|
import AgentScalarDrawer from "./AgentScalar/AgentScalarDrawer.vue.js";
|
|
41
|
+
import OpenMCPButton from "./AgentScalar/OpenMCPButton.vue.js";
|
|
41
42
|
import _sfc_main$4 from "./AgentScalar/AgentScalarButton.vue.js";
|
|
42
43
|
import _sfc_main$6 from "../features/developer-tools/DeveloperTools.vue.js";
|
|
43
44
|
const _hoisted_1 = {
|
|
@@ -537,6 +538,18 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
537
538
|
});
|
|
538
539
|
const bodyScrollLocked = useScrollLock(document.body);
|
|
539
540
|
watch(agent.showAgent, () => bodyScrollLocked.value = agent.showAgent.value);
|
|
541
|
+
const showMCPButton = computed(() => {
|
|
542
|
+
if (mergedConfig.value.mcp?.disabled) {
|
|
543
|
+
return false;
|
|
544
|
+
}
|
|
545
|
+
if (typeof window !== "undefined" && isLocalUrl(window.location.href)) {
|
|
546
|
+
return true;
|
|
547
|
+
}
|
|
548
|
+
if (mergedConfig.value.mcp) {
|
|
549
|
+
return true;
|
|
550
|
+
}
|
|
551
|
+
return false;
|
|
552
|
+
});
|
|
540
553
|
return (_ctx, _cache) => {
|
|
541
554
|
return openBlock(), createElementBlock("div", null, [
|
|
542
555
|
(openBlock(), createBlock(resolveDynamicComponent("style"), null, {
|
|
@@ -627,13 +640,20 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
627
640
|
}, null, 8, ["modelValue"])) : (openBlock(), createElementBlock("span", _hoisted_2))
|
|
628
641
|
]),
|
|
629
642
|
default: withCtx(() => [
|
|
630
|
-
!mergedConfig.value.hideClientButton ? (openBlock(), createBlock(unref(OpenApiClientButton), {
|
|
643
|
+
!mergedConfig.value.hideClientButton && !showMCPButton.value ? (openBlock(), createBlock(unref(OpenApiClientButton), {
|
|
631
644
|
key: 0,
|
|
632
645
|
buttonSource: "sidebar",
|
|
633
646
|
integration: mergedConfig.value._integration,
|
|
634
647
|
isDevelopment: unref(isDevelopment),
|
|
635
648
|
url: documentUrl.value
|
|
636
|
-
}, null, 8, ["integration", "isDevelopment", "url"])) : createCommentVNode("", true)
|
|
649
|
+
}, null, 8, ["integration", "isDevelopment", "url"])) : createCommentVNode("", true),
|
|
650
|
+
showMCPButton.value ? (openBlock(), createBlock(unref(OpenMCPButton), {
|
|
651
|
+
key: 1,
|
|
652
|
+
config: mergedConfig.value.mcp,
|
|
653
|
+
isDevelopment: unref(isDevelopment),
|
|
654
|
+
url: documentUrl.value,
|
|
655
|
+
workspace: unref(workspaceStore)
|
|
656
|
+
}, null, 8, ["config", "isDevelopment", "url", "workspace"])) : createCommentVNode("", true)
|
|
637
657
|
]),
|
|
638
658
|
_: 1
|
|
639
659
|
})
|
|
@@ -101,7 +101,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
101
101
|
}),
|
|
102
102
|
createVNode(unref(ScalarErrorBoundary), null, {
|
|
103
103
|
default: withCtx(() => [
|
|
104
|
-
__props.document ? (openBlock(), createBlock(unref(IntroductionCardItem), {
|
|
104
|
+
__props.document && !__props.options.hideTestRequestButton ? (openBlock(), createBlock(unref(IntroductionCardItem), {
|
|
105
105
|
key: 0,
|
|
106
106
|
class: "scalar-reference-intro-auth scalar-client introduction-card-item leading-normal"
|
|
107
107
|
}, {
|
|
@@ -2,8 +2,10 @@ import type { SchemaObject } from '@scalar/workspace-store/schemas/v3.1/strict/o
|
|
|
2
2
|
type __VLS_Props = {
|
|
3
3
|
/** The schema object containing enum values and metadata */
|
|
4
4
|
value: SchemaObject | undefined;
|
|
5
|
+
/** Whether to display the enum for property names */
|
|
6
|
+
propertyNames?: boolean;
|
|
5
7
|
};
|
|
6
8
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
7
9
|
declare const _default: typeof __VLS_export;
|
|
8
10
|
export default _default;
|
|
9
|
-
//# sourceMappingURL=
|
|
11
|
+
//# sourceMappingURL=SchemaEnums.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SchemaEnums.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaEnums.vue"],"names":[],"mappings":"AAsMA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAMhG,KAAK,WAAW,GAAG;IACjB,4DAA4D;IAC5D,KAAK,EAAE,YAAY,GAAG,SAAS,CAAA;IAC/B,qDAAqD;IACrD,aAAa,CAAC,EAAE,OAAO,CAAA;CACxB,CAAC;AAyPF,QAAA,MAAM,YAAY,kSAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import _sfc_main from "./SchemaEnums.vue2.js";
|
|
2
|
+
/* empty css */
|
|
3
|
+
import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const SchemaEnums = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-55c01b89"]]);
|
|
5
|
+
export {
|
|
6
|
+
SchemaEnums as default
|
|
7
|
+
};
|
|
@@ -8,15 +8,24 @@ const _hoisted_1 = {
|
|
|
8
8
|
key: 0,
|
|
9
9
|
class: "property-enum"
|
|
10
10
|
};
|
|
11
|
-
const _hoisted_2 = {
|
|
12
|
-
|
|
11
|
+
const _hoisted_2 = {
|
|
12
|
+
key: 0,
|
|
13
|
+
class: "property-enum-property-names"
|
|
14
|
+
};
|
|
15
|
+
const _hoisted_3 = {
|
|
16
|
+
key: 1,
|
|
17
|
+
class: "property-enum-property-names"
|
|
18
|
+
};
|
|
19
|
+
const _hoisted_4 = { class: "property-enum-values" };
|
|
20
|
+
const _hoisted_5 = { key: 1 };
|
|
13
21
|
const ENUM_DISPLAY_THRESHOLD = 9;
|
|
14
22
|
const INITIAL_VISIBLE_COUNT = 5;
|
|
15
23
|
const THIN_SPACE = " ";
|
|
16
24
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
17
|
-
__name: "
|
|
25
|
+
__name: "SchemaEnums",
|
|
18
26
|
props: {
|
|
19
|
-
value: {}
|
|
27
|
+
value: {},
|
|
28
|
+
propertyNames: { type: Boolean }
|
|
20
29
|
},
|
|
21
30
|
setup(__props) {
|
|
22
31
|
const enumValues = computed(() => {
|
|
@@ -61,7 +70,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
61
70
|
};
|
|
62
71
|
return (_ctx, _cache) => {
|
|
63
72
|
return enumValues.value.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
64
|
-
|
|
73
|
+
__props.propertyNames ? (openBlock(), createElementBlock("div", _hoisted_2, " property names ")) : (openBlock(), createElementBlock("div", _hoisted_3, " values ")),
|
|
74
|
+
createElementVNode("ul", _hoisted_4, [
|
|
65
75
|
(openBlock(true), createElementBlock(Fragment, null, renderList(visibleEnumValues.value, (enumValue, index) => {
|
|
66
76
|
return openBlock(), createBlock(SchemaEnumPropertyItem, {
|
|
67
77
|
key: String(enumValue),
|
|
@@ -76,7 +86,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
76
86
|
label: formatEnumValueWithName(enumValue, initialVisibleCount.value + index)
|
|
77
87
|
}, null, 8, ["description", "label"]);
|
|
78
88
|
}), 128)) : createCommentVNode("", true),
|
|
79
|
-
shouldUseLongListDisplay.value ? (openBlock(), createElementBlock("li",
|
|
89
|
+
shouldUseLongListDisplay.value ? (openBlock(), createElementBlock("li", _hoisted_5, [
|
|
80
90
|
createVNode(unref(ScalarButton), {
|
|
81
91
|
class: "enum-toggle-button my-2 flex h-fit gap-1 rounded-full border py-1.5 pr-2.5 pl-2 leading-none",
|
|
82
92
|
variant: "ghost",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SchemaObjectProperties.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaObjectProperties.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SchemaObjectProperties.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaObjectProperties.vue"],"names":[],"mappings":"AAsMA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAEvE,OAAO,KAAK,EACV,mBAAmB,EACnB,YAAY,EACb,MAAM,8DAA8D,CAAA;AAKrE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAA;AAItE,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,YAAY,CAAA;IACpB,aAAa,CAAC,EAAE,mBAAmB,CAAA;IACnC,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;IACrB,QAAQ,EAAE,iBAAiB,GAAG,IAAI,CAAA;IAClC,OAAO,EAAE,aAAa,CAAA;CACvB,CAAC;AA0PF,QAAA,MAAM,YAAY,kSAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -20,13 +20,35 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
20
20
|
const sortedProperties = computed(
|
|
21
21
|
() => sortPropertyNames(__props.schema, __props.discriminator, __props.options)
|
|
22
22
|
);
|
|
23
|
-
const getAdditionalPropertiesName = (_additionalProperties) => {
|
|
23
|
+
const getAdditionalPropertiesName = (_additionalProperties, _propertyNames) => {
|
|
24
24
|
const additionalProperties = typeof _additionalProperties === "boolean" ? _additionalProperties : resolve.schema(_additionalProperties);
|
|
25
25
|
if (typeof additionalProperties === "object" && typeof additionalProperties["x-additionalPropertiesName"] === "string" && additionalProperties["x-additionalPropertiesName"].trim().length > 0) {
|
|
26
26
|
return `${additionalProperties["x-additionalPropertiesName"].trim()}`;
|
|
27
27
|
}
|
|
28
|
+
if (_propertyNames) {
|
|
29
|
+
const resolved = resolve.schema(_propertyNames);
|
|
30
|
+
if (resolved?.title) {
|
|
31
|
+
return resolved.title;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
28
34
|
return "propertyName";
|
|
29
35
|
};
|
|
36
|
+
const getPropertyNamesEnum = (_propertyNames) => {
|
|
37
|
+
if (!_propertyNames) {
|
|
38
|
+
return void 0;
|
|
39
|
+
}
|
|
40
|
+
const resolved = resolve.schema(_propertyNames);
|
|
41
|
+
if (resolved && "enum" in resolved && Array.isArray(resolved.enum) && resolved.enum.length > 0) {
|
|
42
|
+
return resolved.enum;
|
|
43
|
+
}
|
|
44
|
+
return void 0;
|
|
45
|
+
};
|
|
46
|
+
const additionalPropertiesEnum = computed(() => {
|
|
47
|
+
if (!isTypeObject(__props.schema) || !__props.schema.additionalProperties) {
|
|
48
|
+
return void 0;
|
|
49
|
+
}
|
|
50
|
+
return getPropertyNamesEnum(__props.schema.propertyNames);
|
|
51
|
+
});
|
|
30
52
|
const getAdditionalPropertiesValue = (additionalProperties) => {
|
|
31
53
|
if (additionalProperties === true || typeof additionalProperties === "object" && Object.keys(additionalProperties).length === 0 || typeof additionalProperties !== "object" || !("type" in additionalProperties)) {
|
|
32
54
|
return {
|
|
@@ -79,12 +101,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
79
101
|
hideHeading: __props.hideHeading,
|
|
80
102
|
hideModelNames: __props.hideModelNames,
|
|
81
103
|
level: __props.level,
|
|
82
|
-
name: getAdditionalPropertiesName(
|
|
104
|
+
name: getAdditionalPropertiesName(
|
|
105
|
+
__props.schema.additionalProperties,
|
|
106
|
+
__props.schema.propertyNames
|
|
107
|
+
),
|
|
83
108
|
noncollapsible: "",
|
|
84
109
|
options: __props.options,
|
|
110
|
+
propertyNamesEnum: additionalPropertiesEnum.value,
|
|
85
111
|
schema: getAdditionalPropertiesValue(__props.schema.additionalProperties),
|
|
86
112
|
variant: "additionalProperties"
|
|
87
|
-
}, null, 8, ["breadcrumb", "compact", "discriminator", "eventBus", "hideHeading", "hideModelNames", "level", "name", "options", "schema"])) : createCommentVNode("", true)
|
|
113
|
+
}, null, 8, ["breadcrumb", "compact", "discriminator", "eventBus", "hideHeading", "hideModelNames", "level", "name", "options", "propertyNamesEnum", "schema"])) : createCommentVNode("", true)
|
|
88
114
|
], 64);
|
|
89
115
|
};
|
|
90
116
|
}
|
|
@@ -20,10 +20,14 @@ type __VLS_Props = {
|
|
|
20
20
|
description?: string;
|
|
21
21
|
hideModelNames?: boolean;
|
|
22
22
|
hideHeading?: boolean;
|
|
23
|
+
/** When the root schema was resolved from a $ref, pass the ref name for display (e.g. "Data"). */
|
|
24
|
+
modelName?: string | null;
|
|
23
25
|
variant?: 'additionalProperties' | 'patternProperties';
|
|
24
26
|
breadcrumb?: string[];
|
|
25
27
|
eventBus: WorkspaceEventBus | null;
|
|
26
28
|
options: SchemaOptions;
|
|
29
|
+
/** Enum values for property names (from JSON Schema propertyNames keyword). */
|
|
30
|
+
propertyNamesEnum?: string[];
|
|
27
31
|
};
|
|
28
32
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
29
33
|
level: number;
|
|
@@ -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":"AA0bA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAEvE,OAAO,KAAK,EACV,mBAAmB,EACnB,YAAY,EACb,MAAM,8DAA8D,CAAA;AAErE,OAAO,EAAY,KAAK,SAAS,EAAE,MAAM,KAAK,CAAA;AAI9C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAA;AAetE;;;;;GAKG;AAEH,KAAK,WAAW,GAAG;IACf,EAAE,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IACvB,MAAM,EAAE,YAAY,GAAG,SAAS,CAAA;IAChC,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,aAAa,CAAC,EAAE,mBAAmB,CAAA;IACnC,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,kGAAkG;IAClG,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACzB,OAAO,CAAC,EAAE,sBAAsB,GAAG,mBAAmB,CAAA;IACtD,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;IACrB,QAAQ,EAAE,iBAAiB,GAAG,IAAI,CAAA;IAClC,OAAO,EAAE,aAAa,CAAA;IACtB,+EAA+E;IAC/E,iBAAiB,CAAC,EAAE,MAAM,EAAE,CAAA;CAC7B,CAAC;AAudJ,QAAA,MAAM,YAAY;WAveN,MAAM;cAEH,OAAO;aACR,OAAO;oBAGA,OAAO;6EAoe1B,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _sfc_main from "./SchemaProperty.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const SchemaProperty = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
4
|
+
const SchemaProperty = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-8d72f803"]]);
|
|
5
5
|
export {
|
|
6
6
|
SchemaProperty as default
|
|
7
7
|
};
|
|
@@ -12,7 +12,7 @@ import { shouldDisplayDescription } from "./helpers/should-display-description.j
|
|
|
12
12
|
import { shouldDisplayHeading } from "./helpers/should-display-heading.js";
|
|
13
13
|
import Schema from "./Schema.vue.js";
|
|
14
14
|
import _sfc_main$2 from "./SchemaComposition.vue.js";
|
|
15
|
-
import
|
|
15
|
+
import SchemaEnums from "./SchemaEnums.vue.js";
|
|
16
16
|
import SchemaPropertyHeading from "./SchemaPropertyHeading.vue.js";
|
|
17
17
|
import _sfc_main$1 from "../../Anchor/WithBreadcrumb.vue.js";
|
|
18
18
|
import _sfc_main$3 from "../../../features/specification-extension/SpecificationExtension.vue2.js";
|
|
@@ -29,11 +29,11 @@ const _hoisted_3 = {
|
|
|
29
29
|
class: "property-description"
|
|
30
30
|
};
|
|
31
31
|
const _hoisted_4 = {
|
|
32
|
-
key:
|
|
32
|
+
key: 4,
|
|
33
33
|
class: "children"
|
|
34
34
|
};
|
|
35
35
|
const _hoisted_5 = {
|
|
36
|
-
key:
|
|
36
|
+
key: 5,
|
|
37
37
|
class: "children"
|
|
38
38
|
};
|
|
39
39
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -50,10 +50,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
50
50
|
description: {},
|
|
51
51
|
hideModelNames: { type: Boolean, default: false },
|
|
52
52
|
hideHeading: { type: Boolean },
|
|
53
|
+
modelName: {},
|
|
53
54
|
variant: {},
|
|
54
55
|
breadcrumb: {},
|
|
55
56
|
eventBus: {},
|
|
56
|
-
options: {}
|
|
57
|
+
options: {},
|
|
58
|
+
propertyNamesEnum: {}
|
|
57
59
|
},
|
|
58
60
|
setup(__props) {
|
|
59
61
|
const props = __props;
|
|
@@ -120,6 +122,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
120
122
|
enum: hasEnum.value,
|
|
121
123
|
hideModelNames: __props.hideModelNames,
|
|
122
124
|
isDiscriminator: isDiscriminatorProperty.value,
|
|
125
|
+
modelName: __props.modelName,
|
|
123
126
|
required: __props.required,
|
|
124
127
|
value: optimizedValue.value
|
|
125
128
|
}, createSlots({ _: 2 }, [
|
|
@@ -159,14 +162,19 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
159
162
|
]),
|
|
160
163
|
key: "1"
|
|
161
164
|
} : void 0
|
|
162
|
-
]), 1032, ["enum", "hideModelNames", "isDiscriminator", "required", "value"])) : createCommentVNode("", true),
|
|
165
|
+
]), 1032, ["enum", "hideModelNames", "isDiscriminator", "modelName", "required", "value"])) : createCommentVNode("", true),
|
|
163
166
|
displayDescription.value || propertyDescription.value ? (openBlock(), createElementBlock("div", _hoisted_3, [
|
|
164
167
|
createVNode(unref(ScalarMarkdown), {
|
|
165
168
|
value: displayDescription.value || propertyDescription.value || ""
|
|
166
169
|
}, null, 8, ["value"])
|
|
167
170
|
])) : createCommentVNode("", true),
|
|
168
|
-
|
|
171
|
+
__props.propertyNamesEnum && __props.propertyNamesEnum.length > 0 ? (openBlock(), createBlock(SchemaEnums, {
|
|
169
172
|
key: 2,
|
|
173
|
+
propertyNames: "",
|
|
174
|
+
value: { enum: __props.propertyNamesEnum }
|
|
175
|
+
}, null, 8, ["value"])) : createCommentVNode("", true),
|
|
176
|
+
enumValues.value.length > 0 ? (openBlock(), createBlock(SchemaEnums, {
|
|
177
|
+
key: 3,
|
|
170
178
|
value: optimizedValue.value
|
|
171
179
|
}, null, 8, ["value"])) : createCommentVNode("", true),
|
|
172
180
|
shouldRenderObjectProperties.value ? (openBlock(), createElementBlock("div", _hoisted_4, [
|
|
@@ -7,6 +7,8 @@ type __VLS_Props = {
|
|
|
7
7
|
additional?: boolean;
|
|
8
8
|
withExamples?: boolean;
|
|
9
9
|
hideModelNames?: boolean;
|
|
10
|
+
/** When the schema was resolved from a $ref, pass the ref name so it displays as e.g. "Data" instead of "object". */
|
|
11
|
+
modelName?: string | null;
|
|
10
12
|
};
|
|
11
13
|
declare var __VLS_1: {};
|
|
12
14
|
type __VLS_Slots = {} & {
|
|
@@ -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":"AAwaA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAkBhG,KAAK,WAAW,GAAG;IACf,KAAK,EAAE,YAAY,GAAG,SAAS,CAAA;IAC/B,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,qHAAqH;IACrH,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAC1B,CAAC;AAkfJ,QAAA,IAAI,OAAO,IAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,IAAI,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAK5C,QAAA,MAAM,UAAU;cA/fD,OAAO;oBAGD,OAAO;qBAJN,OAAO;kBAGV,OAAO;6EAggBxB,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AAWzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _sfc_main from "./SchemaPropertyHeading.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const SchemaPropertyHeading = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
4
|
+
const SchemaPropertyHeading = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-881aa734"]]);
|
|
5
5
|
export {
|
|
6
6
|
SchemaPropertyHeading as default
|
|
7
7
|
};
|
|
@@ -48,7 +48,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
48
48
|
required: { type: Boolean, default: false },
|
|
49
49
|
additional: { type: Boolean },
|
|
50
50
|
withExamples: { type: Boolean, default: true },
|
|
51
|
-
hideModelNames: { type: Boolean, default: false }
|
|
51
|
+
hideModelNames: { type: Boolean, default: false },
|
|
52
|
+
modelName: {}
|
|
52
53
|
},
|
|
53
54
|
setup(__props) {
|
|
54
55
|
const props = __props;
|
|
@@ -174,6 +175,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
174
175
|
if (props.hideModelNames) {
|
|
175
176
|
return null;
|
|
176
177
|
}
|
|
178
|
+
if (props.modelName) {
|
|
179
|
+
return props.modelName;
|
|
180
|
+
}
|
|
177
181
|
const modelName = getModelNameFromSchema(props.value);
|
|
178
182
|
if (modelName) {
|
|
179
183
|
return modelName;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ParameterListItem.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/components/ParameterListItem.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ParameterListItem.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/components/ParameterListItem.vue"],"names":[],"mappings":"AAmUA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAEvE,OAAO,KAAK,EACV,eAAe,EACf,cAAc,EAEf,MAAM,8DAA8D,CAAA;AAKrE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAA;AAKxE,KAAK,WAAW,GAAG;IACjB,SAAS,EAAE,eAAe,GAAG,cAAc,CAAA;IAC3C,IAAI,EAAE,MAAM,CAAA;IACZ,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;IACrB,QAAQ,EAAE,iBAAiB,GAAG,IAAI,CAAA;IAClC,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,OAAO,EAAE,IAAI,CACX,cAAc,CAAC,SAAS,CAAC,EACzB,8BAA8B,GAAG,yBAAyB,CAC3D,CAAA;CACF,CAAC;AAkYF,QAAA,MAAM,YAAY,kSAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _sfc_main from "./ParameterListItem.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const ParameterListItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
4
|
+
const ParameterListItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-d03ca136"]]);
|
|
5
5
|
export {
|
|
6
6
|
ParameterListItem as default
|
|
7
7
|
};
|