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.
@@ -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(best === -Infinity ? firstId : active.id);
2927
+ setActiveId(active.id);
2934
2928
  };
2935
2929
  const onScroll = () => {
2936
2930
  if (frame === 0) frame = requestAnimationFrame(update);