@tscircuit/runframe 0.0.346 → 0.0.347

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.
@@ -988,7 +988,7 @@ var RenderLogViewer = ({
988
988
  };
989
989
 
990
990
  // package.json
991
- var version = "0.0.345";
991
+ var version = "0.0.346";
992
992
 
993
993
  // lib/components/CircuitJsonPreview/CircuitJsonPreview.tsx
994
994
  import { jsx as jsx16, jsxs as jsxs12 } from "react/jsx-runtime";
@@ -1031,6 +1031,7 @@ var CircuitJsonPreview = ({
1031
1031
  defaultToFullScreen = false
1032
1032
  }) => {
1033
1033
  useStyles();
1034
+ const [schematicEditEvents, setSchematicEditEvents] = useState4([...editEvents ?? []]);
1034
1035
  const [activeTab, setActiveTabState] = useState4(defaultActiveTab ?? "pcb");
1035
1036
  const [isFullScreen, setIsFullScreen] = useState4(defaultToFullScreen);
1036
1037
  const setActiveTab = useCallback(
@@ -1254,8 +1255,11 @@ var CircuitJsonPreview = ({
1254
1255
  height: "100%"
1255
1256
  },
1256
1257
  editingEnabled: true,
1257
- onEditEvent: (ee) => onEditEvent?.(ee),
1258
- editEvents,
1258
+ onEditEvent: (ee) => {
1259
+ setSchematicEditEvents((prev) => [...prev, ee]);
1260
+ onEditEvent?.(ee);
1261
+ },
1262
+ editEvents: schematicEditEvents,
1259
1263
  debugGrid: showSchematicDebugGrid
1260
1264
  }
1261
1265
  ) : /* @__PURE__ */ jsx16(PreviewEmptyState_default, { onRunClicked })
package/dist/preview.js CHANGED
@@ -6,7 +6,7 @@ import {
6
6
  PcbViewerWithContainerHeight,
7
7
  SchematicViewer,
8
8
  linkify
9
- } from "./chunk-ODEVX3CY.js";
9
+ } from "./chunk-LUCJ23PW.js";
10
10
  export {
11
11
  BomTable,
12
12
  CadViewer,
package/dist/runner.js CHANGED
@@ -20,7 +20,7 @@ import {
20
20
  buttonVariants,
21
21
  cn,
22
22
  linkify
23
- } from "./chunk-ODEVX3CY.js";
23
+ } from "./chunk-LUCJ23PW.js";
24
24
 
25
25
  // lib/components/RunFrame/RunFrame.tsx
26
26
  import { createCircuitWebWorker } from "@tscircuit/eval/worker";