@tscircuit/runframe 0.0.537 → 0.0.539
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.
|
@@ -1093,7 +1093,7 @@ var RenderLogViewer = ({
|
|
|
1093
1093
|
};
|
|
1094
1094
|
|
|
1095
1095
|
// package.json
|
|
1096
|
-
var version = "0.0.
|
|
1096
|
+
var version = "0.0.538";
|
|
1097
1097
|
|
|
1098
1098
|
// lib/components/CircuitJsonPreview/CircuitJsonPreview.tsx
|
|
1099
1099
|
import { jsx as jsx16, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
@@ -1199,7 +1199,7 @@ var CircuitJsonPreview = ({
|
|
|
1199
1199
|
leftHeaderContent && /* @__PURE__ */ jsx16("div", { className: "rf-flex-grow" }),
|
|
1200
1200
|
!leftHeaderContent && isRunningCode && /* @__PURE__ */ jsx16(Loader2, { className: "rf-w-4 rf-h-4 rf-animate-spin" }),
|
|
1201
1201
|
!leftHeaderContent && /* @__PURE__ */ jsx16("div", { className: "rf-flex-grow" }),
|
|
1202
|
-
renderLog && renderLog.progress !== 1 && /* @__PURE__ */ jsxs12("div", { className: "rf-flex rf-items-center rf-gap-2", children: [
|
|
1202
|
+
renderLog && renderLog.progress !== 1 && !errorMessage && /* @__PURE__ */ jsxs12("div", { className: "rf-flex rf-items-center rf-gap-2", children: [
|
|
1203
1203
|
renderLog.lastRenderEvent && /* @__PURE__ */ jsx16("div", { className: "rf-text-xs rf-text-gray-500", children: renderLog.lastRenderEvent?.phase ?? "" }),
|
|
1204
1204
|
/* @__PURE__ */ jsx16("div", { className: "rf-w-4 rf-h-4 rf-bg-blue-500 rf-opacity-50 rf-rounded-full rf-text-white", children: /* @__PURE__ */ jsx16(LoaderCircleIcon, { className: "rf-w-4 rf-h-4 rf-animate-spin" }) }),
|
|
1205
1205
|
/* @__PURE__ */ jsxs12("div", { className: "rf-text-xs rf-font-bold rf-text-gray-700 rf-tabular-nums", children: [
|
package/dist/preview.js
CHANGED
package/dist/runner.js
CHANGED
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
useOrderDialog,
|
|
28
28
|
useOrderDialogCli,
|
|
29
29
|
useRunFrameStore
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-ILR5DTA6.js";
|
|
31
31
|
|
|
32
32
|
// lib/components/RunFrame/RunFrame.tsx
|
|
33
33
|
import { createCircuitWebWorker } from "@tscircuit/eval/worker";
|
|
@@ -300,6 +300,7 @@ var RunFrame = (props) => {
|
|
|
300
300
|
const message = e.message.replace("Error: ", "");
|
|
301
301
|
props.onError?.(e);
|
|
302
302
|
setError({ error: message, stack: e.stack });
|
|
303
|
+
setRenderLog(null);
|
|
303
304
|
console.error(e);
|
|
304
305
|
return { success: false };
|
|
305
306
|
});
|
|
@@ -313,6 +314,7 @@ var RunFrame = (props) => {
|
|
|
313
314
|
debug("error getting initial circuit json", e);
|
|
314
315
|
props.onError?.(e);
|
|
315
316
|
setError({ error: e.message, stack: e.stack });
|
|
317
|
+
setRenderLog(null);
|
|
316
318
|
setIsRunning(false);
|
|
317
319
|
return null;
|
|
318
320
|
});
|