executable-stories-react 0.10.1 → 0.12.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.
package/dist/index.d.cts CHANGED
@@ -145,8 +145,9 @@ interface ReportStepsProps {
145
145
  scenario: ReportScenario$1;
146
146
  }
147
147
  declare function ReportSteps({ scenario }: ReportStepsProps): react.JSX.Element | null;
148
- declare function ReportStepItem({ step }: {
148
+ declare function ReportStepItem({ step, unasserted, }: {
149
149
  step: ReportStep;
150
+ unasserted?: boolean;
150
151
  }): react.JSX.Element;
151
152
 
152
153
  interface ReportStoryboardProps {
@@ -364,6 +365,17 @@ type ReportCI = NonNullable<StoryReport["ci"]>;
364
365
  * that only stamp a start time.
365
366
  */
366
367
  declare function reportLastRunMs(report: Pick<StoryReport, "startedAtMs" | "finishedAtMs">): number | undefined;
368
+ /**
369
+ * Epoch ms of the run that produced one scenario.
370
+ *
371
+ * A report assembled from accumulated runs holds scenarios that last ran at
372
+ * different times, so the run-level timestamp overstates how fresh most of them
373
+ * are. Falls back to the report for scenarios recorded before stamping, and for
374
+ * reports rendered straight from a single run.
375
+ */
376
+ declare function scenarioLastRunMs(scenario: {
377
+ lastRunAtMs?: number;
378
+ }, report: Pick<StoryReport, "startedAtMs" | "finishedAtMs">): number | undefined;
367
379
  /**
368
380
  * Human-readable age like "just now", "5 minutes ago", "3 hours ago",
369
381
  * "12 days ago". Clock skew (thenMs in the future) reads as "just now".
@@ -462,4 +474,4 @@ declare const STORY_REPORT_SCHEMA_MAJOR: 1;
462
474
 
463
475
  declare const storyReportSchema: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
464
476
 
465
- export { type BuiltinRenderers, type CustomRenderer, type CustomRenderers, DATA_MODEL_TYPE, DataModelBlock, type DataModelData, DocCode, DocCustom, DocEntry, DocHtml, DocKv, DocLink, DocMermaid, DocNote, DocScreenshot, DocSection, DocTable, DocTag, DocVideo, type ExplorerScenario, type ExplorerStatus, FILE_TREE_TYPE, FileTreeBlock, type FileTreeData, MermaidDiagram, MermaidSource, Report, ReportAttachments, ReportDocEntries, type ReportDocEntriesProps, ReportEmpty, type ReportEmptyProps, ReportFeature, ReportFeatureList, type ReportFeatureProps, ReportMeta, type ReportParseError, type ReportParseErrorCode, type ReportProps, ReportRoot, type ReportRootProps, ReportScenario, ReportScenarioList, type ReportScenarioListProps, type ReportScenarioProps, ReportSchemaError, type ReportSchemaErrorProps, ReportStepItem, ReportSteps, type ReportStepsProps, ReportStoryboard, type ReportStoryboardProps, ReportSummary, type ReportSummaryProps, ReportSummaryView, type ReportSummaryViewProps, ReportTrace, type Result, type RunStreak, STORY_REPORT_SCHEMA_MAJOR, ScenarioExplorer, type ScenarioExplorerProps, type ScenarioHistoryMap, type ScenarioRunEvent, ScenarioRunHistory, type ScenarioRunStatus, ciDisplayName, commitUrl, currentStreak, describeRunHistory, err, formatRelativeAge, isReportStale, narrativeBlockRenderers, ok, parseDataModel, parseFileTree, parseStoryReport, prUrl, reportLastRunMs, storyReportSchema, useBuiltinRenderers, useCustomRenderers, useReport };
477
+ export { type BuiltinRenderers, type CustomRenderer, type CustomRenderers, DATA_MODEL_TYPE, DataModelBlock, type DataModelData, DocCode, DocCustom, DocEntry, DocHtml, DocKv, DocLink, DocMermaid, DocNote, DocScreenshot, DocSection, DocTable, DocTag, DocVideo, type ExplorerScenario, type ExplorerStatus, FILE_TREE_TYPE, FileTreeBlock, type FileTreeData, MermaidDiagram, MermaidSource, Report, ReportAttachments, ReportDocEntries, type ReportDocEntriesProps, ReportEmpty, type ReportEmptyProps, ReportFeature, ReportFeatureList, type ReportFeatureProps, ReportMeta, type ReportParseError, type ReportParseErrorCode, type ReportProps, ReportRoot, type ReportRootProps, ReportScenario, ReportScenarioList, type ReportScenarioListProps, type ReportScenarioProps, ReportSchemaError, type ReportSchemaErrorProps, ReportStepItem, ReportSteps, type ReportStepsProps, ReportStoryboard, type ReportStoryboardProps, ReportSummary, type ReportSummaryProps, ReportSummaryView, type ReportSummaryViewProps, ReportTrace, type Result, type RunStreak, STORY_REPORT_SCHEMA_MAJOR, ScenarioExplorer, type ScenarioExplorerProps, type ScenarioHistoryMap, type ScenarioRunEvent, ScenarioRunHistory, type ScenarioRunStatus, ciDisplayName, commitUrl, currentStreak, describeRunHistory, err, formatRelativeAge, isReportStale, narrativeBlockRenderers, ok, parseDataModel, parseFileTree, parseStoryReport, prUrl, reportLastRunMs, scenarioLastRunMs, storyReportSchema, useBuiltinRenderers, useCustomRenderers, useReport };
package/dist/index.d.ts CHANGED
@@ -145,8 +145,9 @@ interface ReportStepsProps {
145
145
  scenario: ReportScenario$1;
146
146
  }
147
147
  declare function ReportSteps({ scenario }: ReportStepsProps): react.JSX.Element | null;
148
- declare function ReportStepItem({ step }: {
148
+ declare function ReportStepItem({ step, unasserted, }: {
149
149
  step: ReportStep;
150
+ unasserted?: boolean;
150
151
  }): react.JSX.Element;
151
152
 
152
153
  interface ReportStoryboardProps {
@@ -364,6 +365,17 @@ type ReportCI = NonNullable<StoryReport["ci"]>;
364
365
  * that only stamp a start time.
365
366
  */
366
367
  declare function reportLastRunMs(report: Pick<StoryReport, "startedAtMs" | "finishedAtMs">): number | undefined;
368
+ /**
369
+ * Epoch ms of the run that produced one scenario.
370
+ *
371
+ * A report assembled from accumulated runs holds scenarios that last ran at
372
+ * different times, so the run-level timestamp overstates how fresh most of them
373
+ * are. Falls back to the report for scenarios recorded before stamping, and for
374
+ * reports rendered straight from a single run.
375
+ */
376
+ declare function scenarioLastRunMs(scenario: {
377
+ lastRunAtMs?: number;
378
+ }, report: Pick<StoryReport, "startedAtMs" | "finishedAtMs">): number | undefined;
367
379
  /**
368
380
  * Human-readable age like "just now", "5 minutes ago", "3 hours ago",
369
381
  * "12 days ago". Clock skew (thenMs in the future) reads as "just now".
@@ -462,4 +474,4 @@ declare const STORY_REPORT_SCHEMA_MAJOR: 1;
462
474
 
463
475
  declare const storyReportSchema: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
464
476
 
465
- export { type BuiltinRenderers, type CustomRenderer, type CustomRenderers, DATA_MODEL_TYPE, DataModelBlock, type DataModelData, DocCode, DocCustom, DocEntry, DocHtml, DocKv, DocLink, DocMermaid, DocNote, DocScreenshot, DocSection, DocTable, DocTag, DocVideo, type ExplorerScenario, type ExplorerStatus, FILE_TREE_TYPE, FileTreeBlock, type FileTreeData, MermaidDiagram, MermaidSource, Report, ReportAttachments, ReportDocEntries, type ReportDocEntriesProps, ReportEmpty, type ReportEmptyProps, ReportFeature, ReportFeatureList, type ReportFeatureProps, ReportMeta, type ReportParseError, type ReportParseErrorCode, type ReportProps, ReportRoot, type ReportRootProps, ReportScenario, ReportScenarioList, type ReportScenarioListProps, type ReportScenarioProps, ReportSchemaError, type ReportSchemaErrorProps, ReportStepItem, ReportSteps, type ReportStepsProps, ReportStoryboard, type ReportStoryboardProps, ReportSummary, type ReportSummaryProps, ReportSummaryView, type ReportSummaryViewProps, ReportTrace, type Result, type RunStreak, STORY_REPORT_SCHEMA_MAJOR, ScenarioExplorer, type ScenarioExplorerProps, type ScenarioHistoryMap, type ScenarioRunEvent, ScenarioRunHistory, type ScenarioRunStatus, ciDisplayName, commitUrl, currentStreak, describeRunHistory, err, formatRelativeAge, isReportStale, narrativeBlockRenderers, ok, parseDataModel, parseFileTree, parseStoryReport, prUrl, reportLastRunMs, storyReportSchema, useBuiltinRenderers, useCustomRenderers, useReport };
477
+ export { type BuiltinRenderers, type CustomRenderer, type CustomRenderers, DATA_MODEL_TYPE, DataModelBlock, type DataModelData, DocCode, DocCustom, DocEntry, DocHtml, DocKv, DocLink, DocMermaid, DocNote, DocScreenshot, DocSection, DocTable, DocTag, DocVideo, type ExplorerScenario, type ExplorerStatus, FILE_TREE_TYPE, FileTreeBlock, type FileTreeData, MermaidDiagram, MermaidSource, Report, ReportAttachments, ReportDocEntries, type ReportDocEntriesProps, ReportEmpty, type ReportEmptyProps, ReportFeature, ReportFeatureList, type ReportFeatureProps, ReportMeta, type ReportParseError, type ReportParseErrorCode, type ReportProps, ReportRoot, type ReportRootProps, ReportScenario, ReportScenarioList, type ReportScenarioListProps, type ReportScenarioProps, ReportSchemaError, type ReportSchemaErrorProps, ReportStepItem, ReportSteps, type ReportStepsProps, ReportStoryboard, type ReportStoryboardProps, ReportSummary, type ReportSummaryProps, ReportSummaryView, type ReportSummaryViewProps, ReportTrace, type Result, type RunStreak, STORY_REPORT_SCHEMA_MAJOR, ScenarioExplorer, type ScenarioExplorerProps, type ScenarioHistoryMap, type ScenarioRunEvent, ScenarioRunHistory, type ScenarioRunStatus, ciDisplayName, commitUrl, currentStreak, describeRunHistory, err, formatRelativeAge, isReportStale, narrativeBlockRenderers, ok, parseDataModel, parseFileTree, parseStoryReport, prUrl, reportLastRunMs, scenarioLastRunMs, storyReportSchema, useBuiltinRenderers, useCustomRenderers, useReport };