@tscircuit/runframe 0.0.1149 → 0.0.1151
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-BPKSLQGA.js → chunk-HINKYJ3S.js} +2 -2
- package/dist/preview.js +1 -1
- package/dist/runner.d.ts +9 -1
- package/dist/runner.js +9 -3
- package/dist/standalone-preview.min.js +459 -459
- package/dist/standalone.min.js +474 -474
- package/package.json +2 -2
|
@@ -1454,7 +1454,7 @@ var useErrorTelemetry = ({
|
|
|
1454
1454
|
};
|
|
1455
1455
|
|
|
1456
1456
|
// package.json
|
|
1457
|
-
var version = "0.0.
|
|
1457
|
+
var version = "0.0.1150";
|
|
1458
1458
|
var package_default = {
|
|
1459
1459
|
name: "@tscircuit/runframe",
|
|
1460
1460
|
main: "dist/preview.js",
|
|
@@ -1510,7 +1510,7 @@ var package_default = {
|
|
|
1510
1510
|
"@tscircuit/file-server": "^0.0.32",
|
|
1511
1511
|
"@tscircuit/footprinter": "^0.0.236",
|
|
1512
1512
|
"@tscircuit/math-utils": "^0.0.25",
|
|
1513
|
-
"@tscircuit/pcb-viewer": "1.11.
|
|
1513
|
+
"@tscircuit/pcb-viewer": "1.11.238",
|
|
1514
1514
|
"@tscircuit/props": "^0.0.365",
|
|
1515
1515
|
"@tscircuit/schematic-trace-solver": "^0.0.40",
|
|
1516
1516
|
"@tscircuit/schematic-viewer": "2.0.45",
|
package/dist/preview.js
CHANGED
package/dist/runner.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ export { CadViewer } from '@tscircuit/3d-viewer';
|
|
|
4
4
|
export { PCBViewer as PcbViewer } from '@tscircuit/pcb-viewer';
|
|
5
5
|
export { SchematicViewer } from '@tscircuit/schematic-viewer';
|
|
6
6
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
7
|
-
import { ManualEditEvent } from '@tscircuit/props';
|
|
7
|
+
import { ManualEditEvent, PlatformConfig } from '@tscircuit/props';
|
|
8
8
|
import { Package } from '@tscircuit/fake-snippets/schema';
|
|
9
9
|
import { CircuitJson } from 'circuit-json';
|
|
10
10
|
import 'three';
|
|
@@ -112,6 +112,14 @@ interface RunFrameProps {
|
|
|
112
112
|
* reporting autorouting bugs
|
|
113
113
|
*/
|
|
114
114
|
projectUrl?: string;
|
|
115
|
+
/**
|
|
116
|
+
* Base URL for the project, used in webworker platform config
|
|
117
|
+
*/
|
|
118
|
+
projectBaseUrl?: string;
|
|
119
|
+
/**
|
|
120
|
+
* Platform config for the eval webworker
|
|
121
|
+
*/
|
|
122
|
+
platformConfig?: PlatformConfig;
|
|
115
123
|
onReportAutoroutingLog?: (name: string, data: {
|
|
116
124
|
simpleRouteJson: any;
|
|
117
125
|
}) => void;
|
package/dist/runner.js
CHANGED
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
useRunFrameStore,
|
|
33
33
|
useRunnerStore,
|
|
34
34
|
useStyles
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-HINKYJ3S.js";
|
|
36
36
|
|
|
37
37
|
// lib/components/RunFrame/RunFrame.tsx
|
|
38
38
|
import { createCircuitWebWorker } from "@tscircuit/eval/worker";
|
|
@@ -231,7 +231,10 @@ var RunFrame = (props) => {
|
|
|
231
231
|
evalVersion,
|
|
232
232
|
webWorkerBlobUrl: props.evalWebWorkerBlobUrl,
|
|
233
233
|
projectConfig: {
|
|
234
|
-
projectBaseUrl: `${API_BASE}/files/static`
|
|
234
|
+
projectBaseUrl: props.projectBaseUrl || `${API_BASE}/files/static`
|
|
235
|
+
},
|
|
236
|
+
...props.platformConfig && {
|
|
237
|
+
platformConfig: props.platformConfig
|
|
235
238
|
},
|
|
236
239
|
verbose: true,
|
|
237
240
|
...props.enableFetchProxy && {
|
|
@@ -320,7 +323,10 @@ var RunFrame = (props) => {
|
|
|
320
323
|
webWorkerBlobUrl: props.evalWebWorkerBlobUrl,
|
|
321
324
|
verbose: true,
|
|
322
325
|
projectConfig: {
|
|
323
|
-
projectBaseUrl: `${API_BASE}/files/static`
|
|
326
|
+
projectBaseUrl: props.projectBaseUrl || `${API_BASE}/files/static`
|
|
327
|
+
},
|
|
328
|
+
...props.platformConfig && {
|
|
329
|
+
platformConfig: props.platformConfig
|
|
324
330
|
},
|
|
325
331
|
...props.enableFetchProxy && {
|
|
326
332
|
enableFetchProxy: props.enableFetchProxy
|