@tscircuit/runframe 0.0.1955 → 0.0.1957

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.
@@ -1821,7 +1821,7 @@ var useErrorTelemetry = ({
1821
1821
  };
1822
1822
 
1823
1823
  // package.json
1824
- var version = "0.0.1954";
1824
+ var version = "0.0.1956";
1825
1825
  var package_default = {
1826
1826
  name: "@tscircuit/runframe",
1827
1827
  main: "dist/preview.js",
@@ -1876,7 +1876,7 @@ var package_default = {
1876
1876
  "@tscircuit/fake-snippets": "^0.0.163",
1877
1877
  "@tscircuit/file-server": "^0.0.32",
1878
1878
  "@tscircuit/internal-dynamic-import": "^0.0.0",
1879
- "@tscircuit/pcb-viewer": "1.11.369",
1879
+ "@tscircuit/pcb-viewer": "1.11.370",
1880
1880
  "@tscircuit/schematic-viewer": "^2.0.61",
1881
1881
  "@types/bun": "latest",
1882
1882
  "@types/debug": "^4.1.12",
@@ -5666,7 +5666,8 @@ var CircuitJsonPreview = ({
5666
5666
  isWebEmbedded = false,
5667
5667
  projectName,
5668
5668
  onRerunWithDebug,
5669
- solverEvents
5669
+ solverEvents,
5670
+ onPcbBoundsSelected
5670
5671
  }) => {
5671
5672
  useStyles();
5672
5673
  const {
@@ -5982,6 +5983,7 @@ var CircuitJsonPreview = ({
5982
5983
  focusOnHover: false,
5983
5984
  circuitJson,
5984
5985
  debugGraphics: autoroutingGraphics,
5986
+ onBoundsSelected: onPcbBoundsSelected,
5985
5987
  containerClassName: cn(
5986
5988
  "rf-h-full rf-w-full",
5987
5989
  isFullScreen ? "rf-min-h-[calc(100vh-240px)]" : "rf-min-h-[620px]"
package/dist/preview.d.ts CHANGED
@@ -93,6 +93,12 @@ interface PreviewContentProps {
93
93
  activeEffectName?: string;
94
94
  onEditEvent?: (editEvent: ManualEditEvent) => void;
95
95
  editEvents?: ManualEditEvent[];
96
+ onPcbBoundsSelected?: (bounds: {
97
+ minX: number;
98
+ minY: number;
99
+ maxX: number;
100
+ maxY: number;
101
+ }) => void;
96
102
  onActiveTabChange?: (tab: TabId) => any;
97
103
  autoRotate3dViewerDisabled?: boolean;
98
104
  showSchematicDebugGrid?: boolean;
@@ -134,7 +140,7 @@ declare global {
134
140
  }
135
141
  }
136
142
 
137
- declare const CircuitJsonPreview: ({ code, fsMap, onRunClicked, errorMessage, errorStack, circuitJson, autoroutingGraphics, showRightHeaderContent, showCodeTab, codeTabContent, showJsonTab, showRenderLogTab, onActiveTabChange, renderLog, showImportAndFormatButtons, className, headerClassName, leftHeaderContent, readOnly, isStreaming, autoroutingLog, onReportAutoroutingLog, isRunningCode, hasCodeChangedSinceLastRun, onEditEvent, editEvents, defaultActiveTab, defaultTab, availableTabs, autoRotate3dViewerDisabled, showSchematicDebugGrid: showSchematicDebugGridProp, showSchematicPorts: showSchematicPortsProp, onChangeShowSchematicDebugGrid, onChangeShowSchematicPorts, showToggleFullScreen, defaultToFullScreen, activeEffectName, allowSelectingVersion, showFileMenu, isWebEmbedded, projectName, onRerunWithDebug, solverEvents, }: PreviewContentProps) => react_jsx_runtime.JSX.Element;
143
+ declare const CircuitJsonPreview: ({ code, fsMap, onRunClicked, errorMessage, errorStack, circuitJson, autoroutingGraphics, showRightHeaderContent, showCodeTab, codeTabContent, showJsonTab, showRenderLogTab, onActiveTabChange, renderLog, showImportAndFormatButtons, className, headerClassName, leftHeaderContent, readOnly, isStreaming, autoroutingLog, onReportAutoroutingLog, isRunningCode, hasCodeChangedSinceLastRun, onEditEvent, editEvents, defaultActiveTab, defaultTab, availableTabs, autoRotate3dViewerDisabled, showSchematicDebugGrid: showSchematicDebugGridProp, showSchematicPorts: showSchematicPortsProp, onChangeShowSchematicDebugGrid, onChangeShowSchematicPorts, showToggleFullScreen, defaultToFullScreen, activeEffectName, allowSelectingVersion, showFileMenu, isWebEmbedded, projectName, onRerunWithDebug, solverEvents, onPcbBoundsSelected, }: PreviewContentProps) => react_jsx_runtime.JSX.Element;
138
144
 
139
145
  interface BomTableProps {
140
146
  circuitJson: AnyCircuitElement[];
package/dist/preview.js CHANGED
@@ -7,7 +7,7 @@ import {
7
7
  SchematicViewer,
8
8
  useOrderDialog,
9
9
  useOrderDialogCli
10
- } from "./chunk-RFIZVATN.js";
10
+ } from "./chunk-EFZNLWPS.js";
11
11
  export {
12
12
  BomTable,
13
13
  CadViewer,
package/dist/runner.d.ts CHANGED
@@ -100,6 +100,12 @@ interface RunFrameProps {
100
100
  * Any edit events that have occurred and should be applied
101
101
  */
102
102
  editEvents?: ManualEditEvent[];
103
+ onPcbBoundsSelected?: (bounds: {
104
+ minX: number;
105
+ minY: number;
106
+ maxX: number;
107
+ maxY: number;
108
+ }) => void;
103
109
  /**
104
110
  * If true, turns on debug logging
105
111
  */
package/dist/runner.js CHANGED
@@ -33,7 +33,7 @@ import {
33
33
  useRunFrameStore,
34
34
  useRunnerStore,
35
35
  useStyles
36
- } from "./chunk-RFIZVATN.js";
36
+ } from "./chunk-EFZNLWPS.js";
37
37
 
38
38
  // lib/components/RunFrame/RunFrame.tsx
39
39
  import { createCircuitWebWorker } from "@tscircuit/eval/worker";
@@ -847,6 +847,7 @@ var RunFrame = (props) => {
847
847
  errorStack: error?.stack,
848
848
  onEditEvent: handleEditEvent,
849
849
  editEvents: props.editEvents,
850
+ onPcbBoundsSelected: props.onPcbBoundsSelected,
850
851
  defaultToFullScreen: props.defaultToFullScreen,
851
852
  onRerunWithDebug: (debugOption) => {
852
853
  setCurrentDebugOption(debugOption || "");