executable-stories-react 0.4.1 → 0.5.0

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.
@@ -297,6 +297,13 @@ interface ReportInteractiveProps {
297
297
  * Starlight, where Starlight renders the page `<h1>`.
298
298
  */
299
299
  hideHeader?: boolean;
300
+ /**
301
+ * Drop the report's in-content scenario table-of-contents sidebar and render
302
+ * the scenarios full-width. Use when the surrounding page already provides
303
+ * scenario navigation — e.g. the Astro stories index, where the feature/
304
+ * scenario tree lives in Starlight's own sidebar. Avoids a second nav rail.
305
+ */
306
+ hideToc?: boolean;
300
307
  /**
301
308
  * Days before the report is flagged as stale (warning banner instead of the
302
309
  * "Verified N ago" line). 0 disables the stale warning. Default 7.
@@ -315,6 +322,8 @@ interface ReportInteractiveIslandProps {
315
322
  title?: string;
316
323
  className?: string;
317
324
  hideHeader?: boolean;
325
+ /** Drop the in-content scenario TOC sidebar (host provides scenario nav). */
326
+ hideToc?: boolean;
318
327
  /** Render code blocks with CDN highlight.js (default true). */
319
328
  syntaxHighlighting?: boolean;
320
329
  /** Render `story.mermaid(...)` blocks as CDN-loaded SVG diagrams (default true). */
@@ -332,7 +341,7 @@ interface ReportInteractiveIslandProps {
332
341
  * enhancements live inside the React tree and survive every re-render. The
333
342
  * heavy libraries load from a CDN at runtime, so the host bundle stays lean.
334
343
  */
335
- declare function ReportInteractiveIsland({ report, title, className, hideHeader, syntaxHighlighting, mermaid, }: ReportInteractiveIslandProps): react.JSX.Element;
344
+ declare function ReportInteractiveIsland({ report, title, className, hideHeader, hideToc, syntaxHighlighting, mermaid, }: ReportInteractiveIslandProps): react.JSX.Element;
336
345
 
337
346
  interface IslandRendererOptions {
338
347
  syntaxHighlighting: boolean;
@@ -297,6 +297,13 @@ interface ReportInteractiveProps {
297
297
  * Starlight, where Starlight renders the page `<h1>`.
298
298
  */
299
299
  hideHeader?: boolean;
300
+ /**
301
+ * Drop the report's in-content scenario table-of-contents sidebar and render
302
+ * the scenarios full-width. Use when the surrounding page already provides
303
+ * scenario navigation — e.g. the Astro stories index, where the feature/
304
+ * scenario tree lives in Starlight's own sidebar. Avoids a second nav rail.
305
+ */
306
+ hideToc?: boolean;
300
307
  /**
301
308
  * Days before the report is flagged as stale (warning banner instead of the
302
309
  * "Verified N ago" line). 0 disables the stale warning. Default 7.
@@ -315,6 +322,8 @@ interface ReportInteractiveIslandProps {
315
322
  title?: string;
316
323
  className?: string;
317
324
  hideHeader?: boolean;
325
+ /** Drop the in-content scenario TOC sidebar (host provides scenario nav). */
326
+ hideToc?: boolean;
318
327
  /** Render code blocks with CDN highlight.js (default true). */
319
328
  syntaxHighlighting?: boolean;
320
329
  /** Render `story.mermaid(...)` blocks as CDN-loaded SVG diagrams (default true). */
@@ -332,7 +341,7 @@ interface ReportInteractiveIslandProps {
332
341
  * enhancements live inside the React tree and survive every re-render. The
333
342
  * heavy libraries load from a CDN at runtime, so the host bundle stays lean.
334
343
  */
335
- declare function ReportInteractiveIsland({ report, title, className, hideHeader, syntaxHighlighting, mermaid, }: ReportInteractiveIslandProps): react.JSX.Element;
344
+ declare function ReportInteractiveIsland({ report, title, className, hideHeader, hideToc, syntaxHighlighting, mermaid, }: ReportInteractiveIslandProps): react.JSX.Element;
336
345
 
337
346
  interface IslandRendererOptions {
338
347
  syntaxHighlighting: boolean;