@tscircuit/runframe 0.0.277 → 0.0.279
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/{chunk-TPHHXIJB.js → chunk-FTA6I3F6.js} +2 -4
- package/dist/preview.d.ts +1 -2
- package/dist/preview.js +1 -1
- package/dist/runner.js +2 -6
- package/dist/standalone-preview.min.js +254 -254
- package/dist/standalone.min.js +334 -334
- package/package.json +4 -4
|
@@ -988,7 +988,7 @@ var RenderLogViewer = ({
|
|
|
988
988
|
};
|
|
989
989
|
|
|
990
990
|
// package.json
|
|
991
|
-
var version = "0.0.
|
|
991
|
+
var version = "0.0.278";
|
|
992
992
|
|
|
993
993
|
// lib/components/CircuitJsonPreview/CircuitJsonPreview.tsx
|
|
994
994
|
import { jsx as jsx16, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
@@ -1003,7 +1003,6 @@ var CircuitJsonPreview = ({
|
|
|
1003
1003
|
code,
|
|
1004
1004
|
onRunClicked = void 0,
|
|
1005
1005
|
errorMessage,
|
|
1006
|
-
circuitJsonKey = "",
|
|
1007
1006
|
circuitJson,
|
|
1008
1007
|
autoroutingGraphics,
|
|
1009
1008
|
showRightHeaderContent = true,
|
|
@@ -1208,8 +1207,7 @@ var CircuitJsonPreview = ({
|
|
|
1208
1207
|
editEvents2.forEach((e) => onEditEvent(e));
|
|
1209
1208
|
}
|
|
1210
1209
|
}
|
|
1211
|
-
}
|
|
1212
|
-
circuitJsonKey
|
|
1210
|
+
}
|
|
1213
1211
|
) : /* @__PURE__ */ jsx16(PreviewEmptyState_default, { onRunClicked })
|
|
1214
1212
|
}
|
|
1215
1213
|
)
|
package/dist/preview.d.ts
CHANGED
|
@@ -28,7 +28,6 @@ interface PreviewContentProps {
|
|
|
28
28
|
errorMessage?: string | null;
|
|
29
29
|
autoroutingGraphics?: any;
|
|
30
30
|
circuitJson: any;
|
|
31
|
-
circuitJsonKey?: string;
|
|
32
31
|
className?: string;
|
|
33
32
|
showCodeTab?: boolean;
|
|
34
33
|
showRenderLogTab?: boolean;
|
|
@@ -68,6 +67,6 @@ interface PreviewContentProps {
|
|
|
68
67
|
}) => void;
|
|
69
68
|
}
|
|
70
69
|
|
|
71
|
-
declare const CircuitJsonPreview: ({ code, onRunClicked, errorMessage,
|
|
70
|
+
declare const CircuitJsonPreview: ({ code, onRunClicked, errorMessage, circuitJson, autoroutingGraphics, showRightHeaderContent, showCodeTab, codeTabContent, showJsonTab, showRenderLogTab, onActiveTabChange, renderLog, showImportAndFormatButtons, className, headerClassName, leftHeaderContent, readOnly, isStreaming, autoroutingLog, onReportAutoroutingLog, isRunningCode, hasCodeChangedSinceLastRun, onEditEvent, editEvents, defaultActiveTab, autoRotate3dViewerDisabled, showSchematicDebugGrid, showToggleFullScreen, defaultToFullScreen, }: PreviewContentProps) => react_jsx_runtime.JSX.Element;
|
|
72
71
|
|
|
73
72
|
export { CircuitJsonPreview, type PreviewContentProps, type TabId };
|
package/dist/preview.js
CHANGED
package/dist/runner.js
CHANGED
|
@@ -14,11 +14,11 @@ import {
|
|
|
14
14
|
TabsTrigger,
|
|
15
15
|
buttonVariants,
|
|
16
16
|
cn
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-FTA6I3F6.js";
|
|
18
18
|
|
|
19
19
|
// lib/components/RunFrame/RunFrame.tsx
|
|
20
20
|
import { createCircuitWebWorker } from "@tscircuit/eval/worker";
|
|
21
|
-
import { useEffect,
|
|
21
|
+
import { useEffect, useReducer, useRef as useRef2, useState } from "react";
|
|
22
22
|
import Debug2 from "debug";
|
|
23
23
|
import { Loader2, Play, Square } from "lucide-react";
|
|
24
24
|
|
|
@@ -493,9 +493,6 @@ var RunFrame = (props) => {
|
|
|
493
493
|
};
|
|
494
494
|
runMutex.runWithMutex(runWorker);
|
|
495
495
|
}, [props.fsMap, props.entrypoint, runCountTrigger, props.evalVersion]);
|
|
496
|
-
const circuitJsonKey = useMemo(() => {
|
|
497
|
-
return `cj-${Math.random().toString(36).substring(2, 15)}`;
|
|
498
|
-
}, [circuitJson]);
|
|
499
496
|
const lastEditEventRef = useRef2(null);
|
|
500
497
|
const dragTimeout = useRef2(null);
|
|
501
498
|
const handleEditEvent = (event) => {
|
|
@@ -571,7 +568,6 @@ var RunFrame = (props) => {
|
|
|
571
568
|
] }),
|
|
572
569
|
onActiveTabChange: setActiveTab,
|
|
573
570
|
circuitJson,
|
|
574
|
-
circuitJsonKey,
|
|
575
571
|
renderLog,
|
|
576
572
|
isRunningCode: isRunning,
|
|
577
573
|
errorMessage: error?.error,
|