@scalar/api-reference 1.20.30 → 1.20.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 +12 -0
- package/dist/browser/standalone.js +2 -2
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/IntersectionObserver.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarElement.vue.d.ts.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.css +1 -1
- package/dist/index.js +21 -15
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -40711,7 +40711,7 @@ const F7 = ["id"], K7 = {
|
|
|
40711
40711
|
], 8, F7);
|
|
40712
40712
|
};
|
|
40713
40713
|
}
|
|
40714
|
-
}), nc = /* @__PURE__ */ ee(r9, [["__scopeId", "data-v-
|
|
40714
|
+
}), nc = /* @__PURE__ */ ee(r9, [["__scopeId", "data-v-ec10b996"]]), s9 = /* @__PURE__ */ G({
|
|
40715
40715
|
__name: "SidebarGroup",
|
|
40716
40716
|
props: {
|
|
40717
40717
|
level: {}
|
|
@@ -41506,25 +41506,31 @@ const Ua = /* @__PURE__ */ ee(gV, [["render", yV], ["__scopeId", "data-v-08c68ac
|
|
|
41506
41506
|
},
|
|
41507
41507
|
emits: ["intersecting"],
|
|
41508
41508
|
setup(n, { emit: e }) {
|
|
41509
|
-
const t = n, r = e, s = de()
|
|
41509
|
+
const t = n, r = e, s = de(), i = (a) => {
|
|
41510
|
+
const l = a.offsetHeight;
|
|
41511
|
+
return `${l / 2}px 0px ${l / 2}px 0px`;
|
|
41512
|
+
}, o = (a) => a.offsetHeight < window.innerHeight ? 0.8 : 0.5;
|
|
41510
41513
|
return Ks(() => {
|
|
41511
|
-
|
|
41512
|
-
|
|
41513
|
-
|
|
41514
|
-
|
|
41515
|
-
}
|
|
41516
|
-
|
|
41517
|
-
|
|
41518
|
-
|
|
41519
|
-
|
|
41520
|
-
|
|
41521
|
-
|
|
41522
|
-
|
|
41514
|
+
if (s.value) {
|
|
41515
|
+
const a = {
|
|
41516
|
+
rootMargin: i(s.value),
|
|
41517
|
+
threshold: o(s.value)
|
|
41518
|
+
};
|
|
41519
|
+
aP(
|
|
41520
|
+
s,
|
|
41521
|
+
([{ isIntersecting: l }]) => {
|
|
41522
|
+
l && t.id && r("intersecting");
|
|
41523
|
+
},
|
|
41524
|
+
a
|
|
41525
|
+
);
|
|
41526
|
+
}
|
|
41527
|
+
}), (a, l) => (k(), q(wr(a.is ?? "div"), {
|
|
41528
|
+
id: a.id,
|
|
41523
41529
|
ref_key: "intersectionObserverRef",
|
|
41524
41530
|
ref: s
|
|
41525
41531
|
}, {
|
|
41526
41532
|
default: C(() => [
|
|
41527
|
-
te(
|
|
41533
|
+
te(a.$slots, "default")
|
|
41528
41534
|
]),
|
|
41529
41535
|
_: 3
|
|
41530
41536
|
}, 8, ["id"]));
|
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"vue",
|
|
16
16
|
"vue3"
|
|
17
17
|
],
|
|
18
|
-
"version": "1.20.
|
|
18
|
+
"version": "1.20.32",
|
|
19
19
|
"engines": {
|
|
20
20
|
"node": ">=18"
|
|
21
21
|
},
|
|
@@ -71,8 +71,8 @@
|
|
|
71
71
|
"vue-sonner": "^1.0.3",
|
|
72
72
|
"@scalar/api-client": "1.1.16",
|
|
73
73
|
"@scalar/components": "0.4.11",
|
|
74
|
-
"@scalar/oas-utils": "0.1.5",
|
|
75
74
|
"@scalar/themes": "0.6.7",
|
|
75
|
+
"@scalar/oas-utils": "0.1.5",
|
|
76
76
|
"@scalar/use-modal": "0.2.10",
|
|
77
77
|
"@scalar/use-tooltip": "0.5.12"
|
|
78
78
|
},
|