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.
@@ -95,8 +95,7 @@ interface ReportInteractiveProps {
95
95
  share?: boolean;
96
96
  /**
97
97
  * Draw the "Architecture, as it ran" section (default false). Only an
98
- * instrumented suite has anything to draw, and the span picture is a
99
- * specialist view. `--html-architecture` turns it on.
98
+ * instrumented suite has anything to draw. `--html-architecture` turns it on.
100
99
  */
101
100
  architecture?: boolean;
102
101
  /** Command the share dialog hands over. Default: `npx executable-stories share reports/`. */
@@ -95,8 +95,7 @@ interface ReportInteractiveProps {
95
95
  share?: boolean;
96
96
  /**
97
97
  * Draw the "Architecture, as it ran" section (default false). Only an
98
- * instrumented suite has anything to draw, and the span picture is a
99
- * specialist view. `--html-architecture` turns it on.
98
+ * instrumented suite has anything to draw. `--html-architecture` turns it on.
100
99
  */
101
100
  architecture?: boolean;
102
101
  /** Command the share dialog hands over. Default: `npx executable-stories share reports/`. */
@@ -2687,7 +2687,7 @@ function ReportShare({
2687
2687
  "a",
2688
2688
  {
2689
2689
  className: "text-xs underline underline-offset-2",
2690
- href: "https://executablestories.com/guides/sharing-reports/",
2690
+ href: "https://docs.executablestories.com/guides/sharing-reports/",
2691
2691
  target: "_blank",
2692
2692
  rel: "noreferrer",
2693
2693
  children: "How sharing works"
@@ -2884,20 +2884,14 @@ function TocContent({ onNavigate }) {
2884
2884
  const line = atBottom ? window.innerHeight : window.innerHeight * 0.2;
2885
2885
  let active = els[0];
2886
2886
  let best = -Infinity;
2887
- let firstId = null;
2888
- let firstTop = Infinity;
2889
2887
  for (const el of els) {
2890
2888
  const top = el.getBoundingClientRect().top;
2891
2889
  if (top <= line && top > best) {
2892
2890
  best = top;
2893
2891
  active = el;
2894
2892
  }
2895
- if (top < firstTop) {
2896
- firstTop = top;
2897
- firstId = el.id;
2898
- }
2899
2893
  }
2900
- setActiveId(best === -Infinity ? firstId : active.id);
2894
+ setActiveId(active.id);
2901
2895
  };
2902
2896
  const onScroll = () => {
2903
2897
  if (frame === 0) frame = requestAnimationFrame(update);