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.cjs +482 -451
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +14 -2
- package/dist/index.d.ts +14 -2
- package/dist/index.js +440 -407
- package/dist/index.js.map +1 -1
- package/dist/interactive.cjs +1430 -1246
- package/dist/interactive.cjs.map +1 -1
- package/dist/interactive.d.cts +32 -32
- package/dist/interactive.d.ts +32 -32
- package/dist/interactive.js +1473 -1286
- package/dist/interactive.js.map +1 -1
- package/dist/parse.cjs +65 -139
- package/dist/parse.cjs.map +1 -1
- package/dist/parse.js +65 -139
- package/dist/parse.js.map +1 -1
- package/dist/report-island.global.js +30 -28
- package/dist/ssr.cjs +367 -254
- package/dist/ssr.cjs.map +1 -1
- package/dist/ssr.js +325 -209
- package/dist/ssr.js.map +1 -1
- package/dist/tailwind.css +1 -1
- package/package.json +2 -2
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 };
|