executable-stories-react 0.17.0 → 0.17.1
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/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js.map +1 -1
- package/dist/interactive.cjs +2 -8
- package/dist/interactive.cjs.map +1 -1
- package/dist/interactive.d.cts +1 -2
- package/dist/interactive.d.ts +1 -2
- package/dist/interactive.js +2 -8
- package/dist/interactive.js.map +1 -1
- package/dist/report-island.global.js +13 -13
- package/dist/ssr.cjs.map +1 -1
- package/dist/ssr.js.map +1 -1
- package/package.json +2 -2
package/dist/interactive.cjs
CHANGED
|
@@ -2720,7 +2720,7 @@ function ReportShare({
|
|
|
2720
2720
|
"a",
|
|
2721
2721
|
{
|
|
2722
2722
|
className: "text-xs underline underline-offset-2",
|
|
2723
|
-
href: "https://executablestories.com/guides/sharing-reports/",
|
|
2723
|
+
href: "https://docs.executablestories.com/guides/sharing-reports/",
|
|
2724
2724
|
target: "_blank",
|
|
2725
2725
|
rel: "noreferrer",
|
|
2726
2726
|
children: "How sharing works"
|
|
@@ -2917,20 +2917,14 @@ function TocContent({ onNavigate }) {
|
|
|
2917
2917
|
const line = atBottom ? window.innerHeight : window.innerHeight * 0.2;
|
|
2918
2918
|
let active = els[0];
|
|
2919
2919
|
let best = -Infinity;
|
|
2920
|
-
let firstId = null;
|
|
2921
|
-
let firstTop = Infinity;
|
|
2922
2920
|
for (const el of els) {
|
|
2923
2921
|
const top = el.getBoundingClientRect().top;
|
|
2924
2922
|
if (top <= line && top > best) {
|
|
2925
2923
|
best = top;
|
|
2926
2924
|
active = el;
|
|
2927
2925
|
}
|
|
2928
|
-
if (top < firstTop) {
|
|
2929
|
-
firstTop = top;
|
|
2930
|
-
firstId = el.id;
|
|
2931
|
-
}
|
|
2932
2926
|
}
|
|
2933
|
-
setActiveId(
|
|
2927
|
+
setActiveId(active.id);
|
|
2934
2928
|
};
|
|
2935
2929
|
const onScroll = () => {
|
|
2936
2930
|
if (frame === 0) frame = requestAnimationFrame(update);
|