@scalar/api-reference 1.31.15 → 1.31.18
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 +47 -0
- package/dist/browser/standalone.js +15688 -15636
- 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 +23 -23
- package/dist/components/ClassicHeader.vue.d.ts.map +1 -1
- package/dist/components/ClassicHeader.vue.js +11 -9
- package/dist/components/DocumentSelector/DocumentSelector.vue.d.ts.map +1 -1
- package/dist/components/DocumentSelector/DocumentSelector.vue.js +19 -22
- package/dist/components/Sidebar/Sidebar.vue.js +2 -2
- package/dist/components/Sidebar/SidebarElement.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarElement.vue.js +1 -1
- package/dist/components/Sidebar/SidebarGroup.vue.js +1 -1
- package/dist/features/DocumentSource/hooks/useDocumentSource.d.ts.map +1 -1
- package/dist/features/DocumentSource/hooks/useDocumentSource.js +35 -31
- package/dist/features/DownloadLink/DownloadLink.vue.d.ts.map +1 -1
- package/dist/features/DownloadLink/DownloadLink.vue.js +3 -3
- package/dist/features/DownloadLink/DownloadLink.vue2.js +35 -31
- package/dist/features/ExampleResponses/ExampleResponses.vue.js +1 -1
- package/dist/features/Search/SearchButton.vue.d.ts.map +1 -1
- package/dist/features/Search/SearchButton.vue.js +61 -5
- package/dist/features/Search/SearchButton.vue2.js +2 -70
- package/dist/helpers/parse.js +7 -7
- package/dist/index.js +1 -1
- package/dist/libs/openapi.js +15 -15
- package/dist/style.css +1 -1
- package/package.json +12 -12
- package/dist/legacy/fixtures/httpRequestMethods.d.ts +0 -10
- package/dist/legacy/fixtures/httpRequestMethods.d.ts.map +0 -1
- package/dist/legacy/fixtures/index.d.ts +0 -2
- package/dist/legacy/fixtures/index.d.ts.map +0 -1
package/dist/libs/openapi.js
CHANGED
|
@@ -14,8 +14,8 @@ function d(e) {
|
|
|
14
14
|
t.push(p(n, e.schema));
|
|
15
15
|
const s = r[n];
|
|
16
16
|
s.type === "object" && !!s.properties && s.properties && Object.keys(s.properties).forEach((u) => {
|
|
17
|
-
var
|
|
18
|
-
t.push(`${u} ${(
|
|
17
|
+
var f, a;
|
|
18
|
+
t.push(`${u} ${(a = (f = s.properties) == null ? void 0 : f[u]) == null ? void 0 : a.type}`);
|
|
19
19
|
});
|
|
20
20
|
}), t;
|
|
21
21
|
}
|
|
@@ -30,7 +30,7 @@ function O(e) {
|
|
|
30
30
|
return !1;
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
|
-
function
|
|
33
|
+
function m(e) {
|
|
34
34
|
var r, i;
|
|
35
35
|
if (!e)
|
|
36
36
|
return {};
|
|
@@ -46,13 +46,13 @@ function y(e) {
|
|
|
46
46
|
(((s = t[n]) == null ? void 0 : s["x-internal"]) === !0 || ((c = t[n]) == null ? void 0 : c["x-scalar-ignore"]) === !0) && delete t[n];
|
|
47
47
|
}), t;
|
|
48
48
|
}
|
|
49
|
-
const x = (e) => e ? !!Object.keys(
|
|
49
|
+
const x = (e) => e ? !!Object.keys(m(e) ?? {}).length : !1;
|
|
50
50
|
function l(e, t) {
|
|
51
51
|
for (const [r, i] of Object.entries(e))
|
|
52
|
-
i !== null && typeof i == "object" ? (t[r]
|
|
52
|
+
i !== null && typeof i == "object" ? (t[r] ?? (t[r] = new i.__proto__.constructor()), l(i, t[r])) : typeof i < "u" && (t[r] = i);
|
|
53
53
|
return t;
|
|
54
54
|
}
|
|
55
|
-
function
|
|
55
|
+
function b(e) {
|
|
56
56
|
return l(e ?? {}, {
|
|
57
57
|
info: {
|
|
58
58
|
title: "",
|
|
@@ -71,24 +71,24 @@ function g(e) {
|
|
|
71
71
|
tags: []
|
|
72
72
|
});
|
|
73
73
|
}
|
|
74
|
-
function
|
|
74
|
+
function E(e) {
|
|
75
75
|
return e.deprecated !== void 0 ? e.deprecated : !!(e["x-scalar-stability"] && e["x-scalar-stability"] === o.Deprecated);
|
|
76
76
|
}
|
|
77
|
-
function
|
|
77
|
+
function y(e) {
|
|
78
78
|
return e.deprecated ? o.Deprecated : e["x-scalar-stability"];
|
|
79
79
|
}
|
|
80
|
-
function
|
|
81
|
-
const t =
|
|
80
|
+
function S(e) {
|
|
81
|
+
const t = y(e);
|
|
82
82
|
return t === o.Deprecated ? "text-red" : t === o.Experimental ? "text-orange" : t === o.Stable ? "text-green" : "";
|
|
83
83
|
}
|
|
84
84
|
export {
|
|
85
|
-
|
|
85
|
+
b as createEmptySpecification,
|
|
86
86
|
l as deepMerge,
|
|
87
87
|
O as extractRequestBody,
|
|
88
88
|
p as formatProperty,
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
89
|
+
m as getModels,
|
|
90
|
+
y as getOperationStability,
|
|
91
|
+
S as getOperationStabilityColor,
|
|
92
92
|
x as hasModels,
|
|
93
|
-
|
|
93
|
+
E as isOperationDeprecated
|
|
94
94
|
};
|