executable-stories-react 0.8.0 → 0.10.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
@@ -513,6 +513,50 @@ declare function DocCustom({ entry }: {
513
513
  entry: ReportDocCustom;
514
514
  }): react.JSX.Element;
515
515
 
516
+ declare const FILE_TREE_TYPE = "file-tree";
517
+ declare const DATA_MODEL_TYPE = "data-model";
518
+ /** Change annotation shared by both blocks. */
519
+ type ChangeKind = "added" | "modified" | "removed" | "renamed";
520
+ interface FileEntry {
521
+ path: string;
522
+ change?: ChangeKind;
523
+ note?: string;
524
+ }
525
+ interface FileTreeData {
526
+ title?: string;
527
+ authored?: string;
528
+ files: FileEntry[];
529
+ }
530
+ declare function parseFileTree(data: unknown): FileTreeData | undefined;
531
+ declare function FileTreeBlock({ entry }: {
532
+ entry: ReportDocCustom;
533
+ }): react.JSX.Element;
534
+ interface ModelField {
535
+ name: string;
536
+ type?: string;
537
+ note?: string;
538
+ change?: ChangeKind;
539
+ }
540
+ interface DataModelData {
541
+ title?: string;
542
+ authored?: string;
543
+ name?: string;
544
+ fields: ModelField[];
545
+ }
546
+ declare function parseDataModel(data: unknown): DataModelData | undefined;
547
+ declare function DataModelBlock({ entry }: {
548
+ entry: ReportDocCustom;
549
+ }): react.JSX.Element;
550
+ /**
551
+ * The narrative block renderers, ready to spread into `customRenderers`.
552
+ * Consumer-supplied renderers for the same type win, so a project can swap
553
+ * either one out.
554
+ */
555
+ declare const narrativeBlockRenderers: {
556
+ "file-tree": (entry: ReportDocCustom) => react.JSX.Element;
557
+ "data-model": (entry: ReportDocCustom) => react.JSX.Element;
558
+ };
559
+
516
560
  type ExplorerStatus = "passed" | "failed" | "skipped" | "pending";
517
561
  interface ExplorerScenario {
518
562
  id: string;
@@ -647,4 +691,4 @@ declare const STORY_REPORT_SCHEMA_MAJOR: 1;
647
691
 
648
692
  declare const storyReportSchema: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
649
693
 
650
- export { type BuiltinRenderers, type CustomRenderer, type CustomRenderers, DocCode, DocCustom, DocEntry, DocHtml, DocKv, DocLink, DocMermaid, DocNote, DocScreenshot, DocSection, DocTable, DocTag, DocVideo, type ExplorerScenario, type ExplorerStatus, 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, type StoryReport, type ReportDocEntry as StoryReportDocEntry, type ReportFeature$1 as StoryReportFeature, type ReportScenario$1 as StoryReportScenario, type ReportStep as StoryReportStep, type ReportSummary$1 as StoryReportSummary, ciDisplayName, commitUrl, currentStreak, describeRunHistory, err, formatRelativeAge, isReportStale, ok, parseStoryReport, prUrl, reportLastRunMs, storyReportSchema, useBuiltinRenderers, useCustomRenderers, useReport };
694
+ 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, type StoryReport, type ReportDocEntry as StoryReportDocEntry, type ReportFeature$1 as StoryReportFeature, type ReportScenario$1 as StoryReportScenario, type ReportStep as StoryReportStep, type ReportSummary$1 as StoryReportSummary, ciDisplayName, commitUrl, currentStreak, describeRunHistory, err, formatRelativeAge, isReportStale, narrativeBlockRenderers, ok, parseDataModel, parseFileTree, parseStoryReport, prUrl, reportLastRunMs, storyReportSchema, useBuiltinRenderers, useCustomRenderers, useReport };
package/dist/index.d.ts CHANGED
@@ -513,6 +513,50 @@ declare function DocCustom({ entry }: {
513
513
  entry: ReportDocCustom;
514
514
  }): react.JSX.Element;
515
515
 
516
+ declare const FILE_TREE_TYPE = "file-tree";
517
+ declare const DATA_MODEL_TYPE = "data-model";
518
+ /** Change annotation shared by both blocks. */
519
+ type ChangeKind = "added" | "modified" | "removed" | "renamed";
520
+ interface FileEntry {
521
+ path: string;
522
+ change?: ChangeKind;
523
+ note?: string;
524
+ }
525
+ interface FileTreeData {
526
+ title?: string;
527
+ authored?: string;
528
+ files: FileEntry[];
529
+ }
530
+ declare function parseFileTree(data: unknown): FileTreeData | undefined;
531
+ declare function FileTreeBlock({ entry }: {
532
+ entry: ReportDocCustom;
533
+ }): react.JSX.Element;
534
+ interface ModelField {
535
+ name: string;
536
+ type?: string;
537
+ note?: string;
538
+ change?: ChangeKind;
539
+ }
540
+ interface DataModelData {
541
+ title?: string;
542
+ authored?: string;
543
+ name?: string;
544
+ fields: ModelField[];
545
+ }
546
+ declare function parseDataModel(data: unknown): DataModelData | undefined;
547
+ declare function DataModelBlock({ entry }: {
548
+ entry: ReportDocCustom;
549
+ }): react.JSX.Element;
550
+ /**
551
+ * The narrative block renderers, ready to spread into `customRenderers`.
552
+ * Consumer-supplied renderers for the same type win, so a project can swap
553
+ * either one out.
554
+ */
555
+ declare const narrativeBlockRenderers: {
556
+ "file-tree": (entry: ReportDocCustom) => react.JSX.Element;
557
+ "data-model": (entry: ReportDocCustom) => react.JSX.Element;
558
+ };
559
+
516
560
  type ExplorerStatus = "passed" | "failed" | "skipped" | "pending";
517
561
  interface ExplorerScenario {
518
562
  id: string;
@@ -647,4 +691,4 @@ declare const STORY_REPORT_SCHEMA_MAJOR: 1;
647
691
 
648
692
  declare const storyReportSchema: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
649
693
 
650
- export { type BuiltinRenderers, type CustomRenderer, type CustomRenderers, DocCode, DocCustom, DocEntry, DocHtml, DocKv, DocLink, DocMermaid, DocNote, DocScreenshot, DocSection, DocTable, DocTag, DocVideo, type ExplorerScenario, type ExplorerStatus, 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, type StoryReport, type ReportDocEntry as StoryReportDocEntry, type ReportFeature$1 as StoryReportFeature, type ReportScenario$1 as StoryReportScenario, type ReportStep as StoryReportStep, type ReportSummary$1 as StoryReportSummary, ciDisplayName, commitUrl, currentStreak, describeRunHistory, err, formatRelativeAge, isReportStale, ok, parseStoryReport, prUrl, reportLastRunMs, storyReportSchema, useBuiltinRenderers, useCustomRenderers, useReport };
694
+ 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, type StoryReport, type ReportDocEntry as StoryReportDocEntry, type ReportFeature$1 as StoryReportFeature, type ReportScenario$1 as StoryReportScenario, type ReportStep as StoryReportStep, type ReportSummary$1 as StoryReportSummary, ciDisplayName, commitUrl, currentStreak, describeRunHistory, err, formatRelativeAge, isReportStale, narrativeBlockRenderers, ok, parseDataModel, parseFileTree, parseStoryReport, prUrl, reportLastRunMs, storyReportSchema, useBuiltinRenderers, useCustomRenderers, useReport };