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.d.cts
CHANGED
|
@@ -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
|
|
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/`. */
|
package/dist/interactive.d.ts
CHANGED
|
@@ -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
|
|
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/`. */
|
package/dist/interactive.js
CHANGED
|
@@ -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(
|
|
2894
|
+
setActiveId(active.id);
|
|
2901
2895
|
};
|
|
2902
2896
|
const onScroll = () => {
|
|
2903
2897
|
if (frame === 0) frame = requestAnimationFrame(update);
|