executable-stories-react 0.1.8 → 0.1.9

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
@@ -1,8 +1,8 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
1
+ import * as react from 'react';
2
+ import { ReactNode } from 'react';
2
3
  import * as executable_stories_formatters from 'executable-stories-formatters';
3
4
  import { ReportDocMermaid, ReportDocCode, ReportDocSection, ReportDocCustom, StoryReport, ReportSummary as ReportSummary$1, ReportFeature as ReportFeature$1, ReportScenario as ReportScenario$1, ReportStep, ReportDocEntry, ReportDocNote, ReportDocTag, ReportDocKv, ReportDocTable, ReportDocLink, ReportDocScreenshot } from 'executable-stories-formatters';
4
5
  export { StoryReport, ReportDocEntry as StoryReportDocEntry, ReportFeature as StoryReportFeature, ReportScenario as StoryReportScenario, ReportStep as StoryReportStep, ReportSummary as StoryReportSummary } from 'executable-stories-formatters';
5
- import { ReactNode } from 'react';
6
6
  import { z } from 'zod';
7
7
 
8
8
  /**
@@ -61,7 +61,7 @@ interface ReportProps {
61
61
  /** Optional theme attribute scope. Use to force "light" or "dark". */
62
62
  dataTheme?: "light" | "dark";
63
63
  }
64
- declare function Report(props: ReportProps): react_jsx_runtime.JSX.Element;
64
+ declare function Report(props: ReportProps): react.JSX.Element;
65
65
 
66
66
  interface ReportRootProps {
67
67
  report: StoryReport;
@@ -69,80 +69,80 @@ interface ReportRootProps {
69
69
  renderers?: BuiltinRenderers;
70
70
  children: ReactNode;
71
71
  }
72
- declare function ReportRoot({ report, customRenderers, renderers, children, }: ReportRootProps): react_jsx_runtime.JSX.Element;
72
+ declare function ReportRoot({ report, customRenderers, renderers, children, }: ReportRootProps): react.JSX.Element;
73
73
 
74
74
  interface ReportSummaryProps {
75
75
  className?: string;
76
76
  }
77
- declare function ReportSummary({ className }: ReportSummaryProps): react_jsx_runtime.JSX.Element;
77
+ declare function ReportSummary({ className }: ReportSummaryProps): react.JSX.Element;
78
78
  interface ReportSummaryViewProps {
79
79
  summary: ReportSummary$1;
80
80
  className?: string;
81
81
  ariaLabel?: string;
82
82
  }
83
- declare function ReportSummaryView({ summary, className, ariaLabel }: ReportSummaryViewProps): react_jsx_runtime.JSX.Element;
83
+ declare function ReportSummaryView({ summary, className, ariaLabel }: ReportSummaryViewProps): react.JSX.Element;
84
84
 
85
- declare function ReportFeatureList(): react_jsx_runtime.JSX.Element;
85
+ declare function ReportFeatureList(): react.JSX.Element;
86
86
 
87
87
  interface ReportFeatureProps {
88
88
  feature: ReportFeature$1;
89
89
  }
90
- declare function ReportFeature({ feature }: ReportFeatureProps): react_jsx_runtime.JSX.Element;
90
+ declare function ReportFeature({ feature }: ReportFeatureProps): react.JSX.Element;
91
91
 
92
92
  interface ReportScenarioListProps {
93
93
  feature: ReportFeature$1;
94
94
  }
95
- declare function ReportScenarioList({ feature }: ReportScenarioListProps): react_jsx_runtime.JSX.Element;
95
+ declare function ReportScenarioList({ feature }: ReportScenarioListProps): react.JSX.Element;
96
96
 
97
97
  interface ReportScenarioProps {
98
98
  scenario: ReportScenario$1;
99
99
  }
100
- declare function ReportScenario({ scenario }: ReportScenarioProps): react_jsx_runtime.JSX.Element;
100
+ declare function ReportScenario({ scenario }: ReportScenarioProps): react.JSX.Element;
101
101
 
102
102
  interface ReportStepsProps {
103
103
  scenario: ReportScenario$1;
104
104
  }
105
- declare function ReportSteps({ scenario }: ReportStepsProps): react_jsx_runtime.JSX.Element | null;
105
+ declare function ReportSteps({ scenario }: ReportStepsProps): react.JSX.Element | null;
106
106
  declare function ReportStepItem({ step }: {
107
107
  step: ReportStep;
108
- }): react_jsx_runtime.JSX.Element;
108
+ }): react.JSX.Element;
109
109
 
110
110
  interface ReportDocEntriesProps {
111
111
  entries: readonly ReportDocEntry[];
112
112
  }
113
- declare function ReportDocEntries({ entries }: ReportDocEntriesProps): react_jsx_runtime.JSX.Element | null;
113
+ declare function ReportDocEntries({ entries }: ReportDocEntriesProps): react.JSX.Element | null;
114
114
 
115
115
  declare function DocEntry({ entry }: {
116
116
  entry: ReportDocEntry;
117
- }): react_jsx_runtime.JSX.Element | undefined;
117
+ }): react.JSX.Element | undefined;
118
118
 
119
119
  declare function DocNote({ entry }: {
120
120
  entry: ReportDocNote;
121
- }): react_jsx_runtime.JSX.Element;
121
+ }): react.JSX.Element;
122
122
 
123
123
  declare function DocTag({ entry }: {
124
124
  entry: ReportDocTag;
125
- }): react_jsx_runtime.JSX.Element;
125
+ }): react.JSX.Element;
126
126
 
127
127
  declare function DocKv({ entry }: {
128
128
  entry: ReportDocKv;
129
- }): react_jsx_runtime.JSX.Element;
129
+ }): react.JSX.Element;
130
130
 
131
131
  declare function DocCode({ entry }: {
132
132
  entry: ReportDocCode;
133
- }): react_jsx_runtime.JSX.Element;
133
+ }): react.JSX.Element;
134
134
 
135
135
  declare function DocTable({ entry }: {
136
136
  entry: ReportDocTable;
137
- }): react_jsx_runtime.JSX.Element;
137
+ }): react.JSX.Element;
138
138
 
139
139
  declare function DocLink({ entry }: {
140
140
  entry: ReportDocLink;
141
- }): react_jsx_runtime.JSX.Element;
141
+ }): react.JSX.Element;
142
142
 
143
143
  declare function DocSection({ entry }: {
144
144
  entry: ReportDocSection;
145
- }): react_jsx_runtime.JSX.Element;
145
+ }): react.JSX.Element;
146
146
 
147
147
  /**
148
148
  * Renders mermaid source as a semantic <pre data-mermaid> by default.
@@ -153,15 +153,15 @@ declare function DocSection({ entry }: {
153
153
  */
154
154
  declare function DocMermaid({ entry }: {
155
155
  entry: ReportDocMermaid;
156
- }): react_jsx_runtime.JSX.Element;
156
+ }): react.JSX.Element;
157
157
 
158
158
  declare function DocScreenshot({ entry }: {
159
159
  entry: ReportDocScreenshot;
160
- }): react_jsx_runtime.JSX.Element;
160
+ }): react.JSX.Element;
161
161
 
162
162
  declare function DocCustom({ entry }: {
163
163
  entry: ReportDocCustom;
164
- }): react_jsx_runtime.JSX.Element;
164
+ }): react.JSX.Element;
165
165
 
166
166
  declare function useCustomRenderers(): CustomRenderers;
167
167
  declare function useBuiltinRenderers(): BuiltinRenderers;
@@ -169,12 +169,12 @@ declare function useBuiltinRenderers(): BuiltinRenderers;
169
169
  interface ReportEmptyProps {
170
170
  message?: string;
171
171
  }
172
- declare function ReportEmpty({ message }: ReportEmptyProps): react_jsx_runtime.JSX.Element;
172
+ declare function ReportEmpty({ message }: ReportEmptyProps): react.JSX.Element;
173
173
 
174
174
  interface ReportSchemaErrorProps {
175
175
  error: ReportParseError;
176
176
  }
177
- declare function ReportSchemaError({ error }: ReportSchemaErrorProps): react_jsx_runtime.JSX.Element;
177
+ declare function ReportSchemaError({ error }: ReportSchemaErrorProps): react.JSX.Element;
178
178
 
179
179
  declare function useReport(): executable_stories_formatters.StoryReport;
180
180
 
package/dist/index.d.ts CHANGED
@@ -1,8 +1,8 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
1
+ import * as react from 'react';
2
+ import { ReactNode } from 'react';
2
3
  import * as executable_stories_formatters from 'executable-stories-formatters';
3
4
  import { ReportDocMermaid, ReportDocCode, ReportDocSection, ReportDocCustom, StoryReport, ReportSummary as ReportSummary$1, ReportFeature as ReportFeature$1, ReportScenario as ReportScenario$1, ReportStep, ReportDocEntry, ReportDocNote, ReportDocTag, ReportDocKv, ReportDocTable, ReportDocLink, ReportDocScreenshot } from 'executable-stories-formatters';
4
5
  export { StoryReport, ReportDocEntry as StoryReportDocEntry, ReportFeature as StoryReportFeature, ReportScenario as StoryReportScenario, ReportStep as StoryReportStep, ReportSummary as StoryReportSummary } from 'executable-stories-formatters';
5
- import { ReactNode } from 'react';
6
6
  import { z } from 'zod';
7
7
 
8
8
  /**
@@ -61,7 +61,7 @@ interface ReportProps {
61
61
  /** Optional theme attribute scope. Use to force "light" or "dark". */
62
62
  dataTheme?: "light" | "dark";
63
63
  }
64
- declare function Report(props: ReportProps): react_jsx_runtime.JSX.Element;
64
+ declare function Report(props: ReportProps): react.JSX.Element;
65
65
 
66
66
  interface ReportRootProps {
67
67
  report: StoryReport;
@@ -69,80 +69,80 @@ interface ReportRootProps {
69
69
  renderers?: BuiltinRenderers;
70
70
  children: ReactNode;
71
71
  }
72
- declare function ReportRoot({ report, customRenderers, renderers, children, }: ReportRootProps): react_jsx_runtime.JSX.Element;
72
+ declare function ReportRoot({ report, customRenderers, renderers, children, }: ReportRootProps): react.JSX.Element;
73
73
 
74
74
  interface ReportSummaryProps {
75
75
  className?: string;
76
76
  }
77
- declare function ReportSummary({ className }: ReportSummaryProps): react_jsx_runtime.JSX.Element;
77
+ declare function ReportSummary({ className }: ReportSummaryProps): react.JSX.Element;
78
78
  interface ReportSummaryViewProps {
79
79
  summary: ReportSummary$1;
80
80
  className?: string;
81
81
  ariaLabel?: string;
82
82
  }
83
- declare function ReportSummaryView({ summary, className, ariaLabel }: ReportSummaryViewProps): react_jsx_runtime.JSX.Element;
83
+ declare function ReportSummaryView({ summary, className, ariaLabel }: ReportSummaryViewProps): react.JSX.Element;
84
84
 
85
- declare function ReportFeatureList(): react_jsx_runtime.JSX.Element;
85
+ declare function ReportFeatureList(): react.JSX.Element;
86
86
 
87
87
  interface ReportFeatureProps {
88
88
  feature: ReportFeature$1;
89
89
  }
90
- declare function ReportFeature({ feature }: ReportFeatureProps): react_jsx_runtime.JSX.Element;
90
+ declare function ReportFeature({ feature }: ReportFeatureProps): react.JSX.Element;
91
91
 
92
92
  interface ReportScenarioListProps {
93
93
  feature: ReportFeature$1;
94
94
  }
95
- declare function ReportScenarioList({ feature }: ReportScenarioListProps): react_jsx_runtime.JSX.Element;
95
+ declare function ReportScenarioList({ feature }: ReportScenarioListProps): react.JSX.Element;
96
96
 
97
97
  interface ReportScenarioProps {
98
98
  scenario: ReportScenario$1;
99
99
  }
100
- declare function ReportScenario({ scenario }: ReportScenarioProps): react_jsx_runtime.JSX.Element;
100
+ declare function ReportScenario({ scenario }: ReportScenarioProps): react.JSX.Element;
101
101
 
102
102
  interface ReportStepsProps {
103
103
  scenario: ReportScenario$1;
104
104
  }
105
- declare function ReportSteps({ scenario }: ReportStepsProps): react_jsx_runtime.JSX.Element | null;
105
+ declare function ReportSteps({ scenario }: ReportStepsProps): react.JSX.Element | null;
106
106
  declare function ReportStepItem({ step }: {
107
107
  step: ReportStep;
108
- }): react_jsx_runtime.JSX.Element;
108
+ }): react.JSX.Element;
109
109
 
110
110
  interface ReportDocEntriesProps {
111
111
  entries: readonly ReportDocEntry[];
112
112
  }
113
- declare function ReportDocEntries({ entries }: ReportDocEntriesProps): react_jsx_runtime.JSX.Element | null;
113
+ declare function ReportDocEntries({ entries }: ReportDocEntriesProps): react.JSX.Element | null;
114
114
 
115
115
  declare function DocEntry({ entry }: {
116
116
  entry: ReportDocEntry;
117
- }): react_jsx_runtime.JSX.Element | undefined;
117
+ }): react.JSX.Element | undefined;
118
118
 
119
119
  declare function DocNote({ entry }: {
120
120
  entry: ReportDocNote;
121
- }): react_jsx_runtime.JSX.Element;
121
+ }): react.JSX.Element;
122
122
 
123
123
  declare function DocTag({ entry }: {
124
124
  entry: ReportDocTag;
125
- }): react_jsx_runtime.JSX.Element;
125
+ }): react.JSX.Element;
126
126
 
127
127
  declare function DocKv({ entry }: {
128
128
  entry: ReportDocKv;
129
- }): react_jsx_runtime.JSX.Element;
129
+ }): react.JSX.Element;
130
130
 
131
131
  declare function DocCode({ entry }: {
132
132
  entry: ReportDocCode;
133
- }): react_jsx_runtime.JSX.Element;
133
+ }): react.JSX.Element;
134
134
 
135
135
  declare function DocTable({ entry }: {
136
136
  entry: ReportDocTable;
137
- }): react_jsx_runtime.JSX.Element;
137
+ }): react.JSX.Element;
138
138
 
139
139
  declare function DocLink({ entry }: {
140
140
  entry: ReportDocLink;
141
- }): react_jsx_runtime.JSX.Element;
141
+ }): react.JSX.Element;
142
142
 
143
143
  declare function DocSection({ entry }: {
144
144
  entry: ReportDocSection;
145
- }): react_jsx_runtime.JSX.Element;
145
+ }): react.JSX.Element;
146
146
 
147
147
  /**
148
148
  * Renders mermaid source as a semantic <pre data-mermaid> by default.
@@ -153,15 +153,15 @@ declare function DocSection({ entry }: {
153
153
  */
154
154
  declare function DocMermaid({ entry }: {
155
155
  entry: ReportDocMermaid;
156
- }): react_jsx_runtime.JSX.Element;
156
+ }): react.JSX.Element;
157
157
 
158
158
  declare function DocScreenshot({ entry }: {
159
159
  entry: ReportDocScreenshot;
160
- }): react_jsx_runtime.JSX.Element;
160
+ }): react.JSX.Element;
161
161
 
162
162
  declare function DocCustom({ entry }: {
163
163
  entry: ReportDocCustom;
164
- }): react_jsx_runtime.JSX.Element;
164
+ }): react.JSX.Element;
165
165
 
166
166
  declare function useCustomRenderers(): CustomRenderers;
167
167
  declare function useBuiltinRenderers(): BuiltinRenderers;
@@ -169,12 +169,12 @@ declare function useBuiltinRenderers(): BuiltinRenderers;
169
169
  interface ReportEmptyProps {
170
170
  message?: string;
171
171
  }
172
- declare function ReportEmpty({ message }: ReportEmptyProps): react_jsx_runtime.JSX.Element;
172
+ declare function ReportEmpty({ message }: ReportEmptyProps): react.JSX.Element;
173
173
 
174
174
  interface ReportSchemaErrorProps {
175
175
  error: ReportParseError;
176
176
  }
177
- declare function ReportSchemaError({ error }: ReportSchemaErrorProps): react_jsx_runtime.JSX.Element;
177
+ declare function ReportSchemaError({ error }: ReportSchemaErrorProps): react.JSX.Element;
178
178
 
179
179
  declare function useReport(): executable_stories_formatters.StoryReport;
180
180
 
@@ -1,7 +1,6 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { ReportDocCustom, ReportDocMermaid, ReportDocCode, ReportDocSection, StoryReport } from 'executable-stories-formatters';
3
1
  import * as react from 'react';
4
2
  import { ReactNode } from 'react';
3
+ import { ReportDocCustom, ReportDocMermaid, ReportDocCode, ReportDocSection, StoryReport } from 'executable-stories-formatters';
5
4
 
6
5
  /**
7
6
  * Result<T> — explicit success/error type matching the cookbook convention.
@@ -54,7 +53,7 @@ interface ReportInteractiveProps {
54
53
  title?: string;
55
54
  dataTheme?: "light" | "dark";
56
55
  }
57
- declare function ReportInteractive(props: ReportInteractiveProps): react_jsx_runtime.JSX.Element;
56
+ declare function ReportInteractive(props: ReportInteractiveProps): react.JSX.Element;
58
57
 
59
58
  interface ReportSearchProps {
60
59
  value: string;
@@ -84,13 +83,13 @@ declare function listFailures(report: StoryReport): FailureRef[];
84
83
  interface ReportFailureBannerProps {
85
84
  failures: readonly FailureRef[];
86
85
  }
87
- declare function ReportFailureBanner({ failures }: ReportFailureBannerProps): react_jsx_runtime.JSX.Element | null;
86
+ declare function ReportFailureBanner({ failures }: ReportFailureBannerProps): react.JSX.Element | null;
88
87
 
89
88
  interface ReportShortcutsHelpProps {
90
89
  open: boolean;
91
90
  onClose: () => void;
92
91
  }
93
- declare function ReportShortcutsHelp({ open, onClose }: ReportShortcutsHelpProps): react_jsx_runtime.JSX.Element;
92
+ declare function ReportShortcutsHelp({ open, onClose }: ReportShortcutsHelpProps): react.JSX.Element;
94
93
 
95
94
  interface KeyboardShortcutHandlers {
96
95
  onFocusSearch?: () => void;
@@ -1,7 +1,6 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { ReportDocCustom, ReportDocMermaid, ReportDocCode, ReportDocSection, StoryReport } from 'executable-stories-formatters';
3
1
  import * as react from 'react';
4
2
  import { ReactNode } from 'react';
3
+ import { ReportDocCustom, ReportDocMermaid, ReportDocCode, ReportDocSection, StoryReport } from 'executable-stories-formatters';
5
4
 
6
5
  /**
7
6
  * Result<T> — explicit success/error type matching the cookbook convention.
@@ -54,7 +53,7 @@ interface ReportInteractiveProps {
54
53
  title?: string;
55
54
  dataTheme?: "light" | "dark";
56
55
  }
57
- declare function ReportInteractive(props: ReportInteractiveProps): react_jsx_runtime.JSX.Element;
56
+ declare function ReportInteractive(props: ReportInteractiveProps): react.JSX.Element;
58
57
 
59
58
  interface ReportSearchProps {
60
59
  value: string;
@@ -84,13 +83,13 @@ declare function listFailures(report: StoryReport): FailureRef[];
84
83
  interface ReportFailureBannerProps {
85
84
  failures: readonly FailureRef[];
86
85
  }
87
- declare function ReportFailureBanner({ failures }: ReportFailureBannerProps): react_jsx_runtime.JSX.Element | null;
86
+ declare function ReportFailureBanner({ failures }: ReportFailureBannerProps): react.JSX.Element | null;
88
87
 
89
88
  interface ReportShortcutsHelpProps {
90
89
  open: boolean;
91
90
  onClose: () => void;
92
91
  }
93
- declare function ReportShortcutsHelp({ open, onClose }: ReportShortcutsHelpProps): react_jsx_runtime.JSX.Element;
92
+ declare function ReportShortcutsHelp({ open, onClose }: ReportShortcutsHelpProps): react.JSX.Element;
94
93
 
95
94
  interface KeyboardShortcutHandlers {
96
95
  onFocusSearch?: () => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "executable-stories-react",
3
- "version": "0.1.8",
3
+ "version": "0.1.9",
4
4
  "description": "React components for rendering executable-stories StoryReport JSON. Semantic, SSR-safe, themeable via CSS variables.",
5
5
  "author": "Jag Reehal <jag@jagreehal.com>",
6
6
  "homepage": "https://github.com/jagreehal/executable-stories#readme",
@@ -44,28 +44,28 @@
44
44
  "README.md"
45
45
  ],
46
46
  "peerDependencies": {
47
- "react": ">=18.0.0",
48
- "react-dom": ">=18.0.0"
47
+ "react": ">=19.2.7",
48
+ "react-dom": ">=19.2.7"
49
49
  },
50
50
  "dependencies": {
51
- "marked": "^15.0.7",
52
- "zod": "^4.0.0",
53
- "executable-stories-formatters": "0.11.3"
51
+ "marked": "^18.0.5",
52
+ "zod": "^4.4.3",
53
+ "executable-stories-formatters": "0.11.4"
54
54
  },
55
55
  "devDependencies": {
56
- "@testing-library/jest-dom": "^6.4.0",
57
- "@testing-library/react": "^16.0.0",
58
- "@types/node": "^25.6.0",
59
- "@types/react": "^19.0.0",
60
- "@types/react-dom": "^19.0.0",
61
- "@vitejs/plugin-react": "^4.3.4",
62
- "eslint-plugin-react-hooks": "^7.1.0",
63
- "jsdom": "^25.0.0",
56
+ "@testing-library/jest-dom": "^6.9.1",
57
+ "@testing-library/react": "^16.3.2",
58
+ "@types/node": "^25.9.2",
59
+ "@types/react": "^19.2.17",
60
+ "@types/react-dom": "^19.2.3",
61
+ "@vitejs/plugin-react": "^6.0.2",
62
+ "eslint-plugin-react-hooks": "^7.1.1",
63
+ "jsdom": "^29.1.1",
64
64
  "react": "^19.0.0",
65
65
  "react-dom": "^19.0.0",
66
66
  "tsup": "^8.5.1",
67
67
  "typescript": "^6.0.3",
68
- "vitest": "^4.1.4",
68
+ "vitest": "^4.1.8",
69
69
  "eslint-config-executable-stories": "0.2.0"
70
70
  },
71
71
  "keywords": [