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.js
CHANGED
|
@@ -1802,7 +1802,7 @@ function renderReportToHtml(report, options = {}) {
|
|
|
1802
1802
|
const parsed = unwrapReport(report);
|
|
1803
1803
|
const rawReport = parsed.ok ? parsed.data : void 0;
|
|
1804
1804
|
const interactive = islandScript.length > 0 && rawReport !== void 0;
|
|
1805
|
-
const dataScript =
|
|
1805
|
+
const dataScript = rawReport !== void 0 ? `<script type="application/json" id="${DATA_ID}">${escapeJsonForScript(JSON.stringify(rawReport))}</script>` : "";
|
|
1806
1806
|
const historyScript = interactive && scenarioHistory && Object.keys(scenarioHistory).length > 0 ? `<script type="application/json" id="${HISTORY_ID}">${escapeJsonForScript(JSON.stringify(scenarioHistory))}</script>` : "";
|
|
1807
1807
|
const islandTag = interactive ? `<script>${islandScript}</script>` : "";
|
|
1808
1808
|
const cdnBody = interactive ? "" : cdn.body;
|