@scalar/api-reference 1.31.10 → 1.31.11
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 +8 -0
- package/dist/browser/standalone.js +1884 -1884
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
- package/dist/components/ApiReferenceLayout.vue.js +1 -1
- package/dist/components/ApiReferenceLayout.vue2.js +125 -118
- package/dist/components/Content/ClientLibraries/ClientLibraries.vue.d.ts.map +1 -1
- package/dist/components/Content/ClientLibraries/ClientLibraries.vue.js +2 -2
- package/dist/components/Content/ClientLibraries/ClientLibraries.vue2.js +38 -38
- package/dist/components/Content/Schema/helpers/optimizeValueForDisplay.d.ts.map +1 -1
- package/dist/components/Content/Schema/helpers/optimizeValueForDisplay.js +21 -13
- package/dist/components/MobileHeader.vue.d.ts +4 -1
- package/dist/components/MobileHeader.vue.d.ts.map +1 -1
- package/dist/components/MobileHeader.vue.js +3 -3
- package/dist/components/MobileHeader.vue2.js +18 -19
- package/dist/index.js +1 -1
- package/dist/style.css +1 -1
- package/dist/types.d.ts +1 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +8 -8
|
@@ -1,22 +1,30 @@
|
|
|
1
|
-
import { mergeAllOfSchemas as
|
|
2
|
-
const
|
|
3
|
-
function
|
|
4
|
-
var
|
|
1
|
+
import { mergeAllOfSchemas as y } from "./merge-all-of-schemas.js";
|
|
2
|
+
const m = ["oneOf", "anyOf", "allOf", "not"];
|
|
3
|
+
function O(i) {
|
|
4
|
+
var p;
|
|
5
5
|
if (!i || typeof i != "object")
|
|
6
6
|
return i;
|
|
7
7
|
let r = { ...i };
|
|
8
|
-
const o =
|
|
8
|
+
const o = m.find((t) => r == null ? void 0 : r[t]);
|
|
9
9
|
if (!o || o === "not")
|
|
10
10
|
return r;
|
|
11
|
-
const
|
|
12
|
-
if (!Array.isArray(
|
|
11
|
+
const c = r == null ? void 0 : r[o];
|
|
12
|
+
if (!Array.isArray(c))
|
|
13
13
|
return r;
|
|
14
|
-
const
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
const l = c.map((t) => {
|
|
15
|
+
if (t.allOf && Array.isArray(t.allOf)) {
|
|
16
|
+
const s = y(t.allOf);
|
|
17
|
+
return Object.keys(t).forEach((f) => {
|
|
18
|
+
!m.includes(f) && !(f in s) && (s[f] = t[f]);
|
|
19
|
+
}), s;
|
|
20
|
+
}
|
|
21
|
+
return t;
|
|
22
|
+
});
|
|
23
|
+
l.some((t) => t.type === "null") && (r.nullable = !0);
|
|
24
|
+
const n = l.filter((t) => t.type !== "null");
|
|
25
|
+
return n.length === 1 && (r != null && r[o]) ? (r = { ...r, ...n[0] }, r == null || delete r[o], r) : (Array.isArray(r == null ? void 0 : r[o]) && ((p = r == null ? void 0 : r[o]) == null ? void 0 : p.length) > 1 && (r[o] = n), r);
|
|
18
26
|
}
|
|
19
27
|
export {
|
|
20
|
-
|
|
21
|
-
|
|
28
|
+
m as compositions,
|
|
29
|
+
O as optimizeValueForDisplay
|
|
22
30
|
};
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
breadcrumb: string;
|
|
3
|
+
};
|
|
1
4
|
declare function __VLS_template(): {
|
|
2
5
|
attrs: Partial<{}>;
|
|
3
6
|
slots: {
|
|
@@ -7,7 +10,7 @@ declare function __VLS_template(): {
|
|
|
7
10
|
rootEl: HTMLDivElement;
|
|
8
11
|
};
|
|
9
12
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
10
|
-
declare const __VLS_component: import("vue").DefineComponent<
|
|
13
|
+
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>;
|
|
11
14
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
12
15
|
export default _default;
|
|
13
16
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MobileHeader.vue.d.ts","sourceRoot":"","sources":["../../src/components/MobileHeader.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"MobileHeader.vue.d.ts","sourceRoot":"","sources":["../../src/components/MobileHeader.vue"],"names":[],"mappings":"AAuEA,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,MAAM,CAAA;CACnB,CAAC;AAQF,iBAAS,cAAc;WAsET,OAAO,IAA6B;;yBARrB,GAAG;;;;EAa/B;AAUD,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 "./MobileHeader.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const
|
|
3
|
+
import a from "../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const f = /* @__PURE__ */ a(o, [["__scopeId", "data-v-fa8b013a"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
f as default
|
|
7
7
|
};
|
|
@@ -1,28 +1,27 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ScalarIconButton as
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
const S = { class: "references-mobile-header t-doc__header" }, h = { class: "references-mobile-breadcrumbs" }, C = { class: "references-mobile-header-actions" }, I = /* @__PURE__ */ i({
|
|
1
|
+
import { defineComponent as t, createElementBlock as a, openBlock as i, createVNode as l, createElementVNode as s, unref as o, toDisplayString as c, renderSlot as d } from "vue";
|
|
2
|
+
import { ScalarIconButton as m } from "@scalar/components";
|
|
3
|
+
import { useSidebar as u } from "../features/sidebar/hooks/useSidebar.js";
|
|
4
|
+
const p = { class: "references-mobile-header t-doc__header" }, b = { class: "references-mobile-breadcrumbs" }, _ = { class: "references-mobile-header-actions" }, M = /* @__PURE__ */ t({
|
|
6
5
|
__name: "MobileHeader",
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
});
|
|
12
|
-
return (
|
|
13
|
-
|
|
14
|
-
icon:
|
|
15
|
-
label:
|
|
6
|
+
props: {
|
|
7
|
+
breadcrumb: {}
|
|
8
|
+
},
|
|
9
|
+
setup(f) {
|
|
10
|
+
const { isSidebarOpen: e } = u();
|
|
11
|
+
return (r, n) => (i(), a("div", p, [
|
|
12
|
+
l(o(m), {
|
|
13
|
+
icon: o(e) ? "Close" : "Menu",
|
|
14
|
+
label: o(e) ? "Close Menu" : "Open Menu",
|
|
16
15
|
size: "md",
|
|
17
|
-
onClick:
|
|
16
|
+
onClick: n[0] || (n[0] = (h) => e.value = !o(e))
|
|
18
17
|
}, null, 8, ["icon", "label"]),
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
18
|
+
s("span", b, c(r.breadcrumb), 1),
|
|
19
|
+
s("div", _, [
|
|
20
|
+
d(r.$slots, "actions", {}, void 0, !0)
|
|
22
21
|
])
|
|
23
22
|
]));
|
|
24
23
|
}
|
|
25
24
|
});
|
|
26
25
|
export {
|
|
27
|
-
|
|
26
|
+
M as default
|
|
28
27
|
};
|