executable-stories-react 0.12.0 → 0.13.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/interactive.cjs +469 -172
- package/dist/interactive.cjs.map +1 -1
- package/dist/interactive.js +426 -123
- package/dist/interactive.js.map +1 -1
- package/dist/report-island.global.js +64 -54
- package/dist/ssr.cjs +1 -1
- package/dist/ssr.cjs.map +1 -1
- package/dist/ssr.js +1 -1
- package/dist/ssr.js.map +1 -1
- package/dist/tailwind.css +2 -2
- package/package.json +24 -23
package/dist/ssr.cjs
CHANGED
|
@@ -1823,7 +1823,7 @@ function renderReportToHtml(report, options = {}) {
|
|
|
1823
1823
|
const parsed = unwrapReport(report);
|
|
1824
1824
|
const rawReport = parsed.ok ? parsed.data : void 0;
|
|
1825
1825
|
const interactive = islandScript.length > 0 && rawReport !== void 0;
|
|
1826
|
-
const dataScript =
|
|
1826
|
+
const dataScript = rawReport !== void 0 ? `<script type="application/json" id="${DATA_ID}">${escapeJsonForScript(JSON.stringify(rawReport))}</script>` : "";
|
|
1827
1827
|
const historyScript = interactive && scenarioHistory && Object.keys(scenarioHistory).length > 0 ? `<script type="application/json" id="${HISTORY_ID}">${escapeJsonForScript(JSON.stringify(scenarioHistory))}</script>` : "";
|
|
1828
1828
|
const islandTag = interactive ? `<script>${islandScript}</script>` : "";
|
|
1829
1829
|
const cdnBody = interactive ? "" : cdn.body;
|