@tscircuit/runframe 0.0.2432 → 0.0.2434

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.
@@ -2183,7 +2183,7 @@ var usePostHogActivity = (properties) => {
2183
2183
  };
2184
2184
 
2185
2185
  // package.json
2186
- var version = "0.0.2431";
2186
+ var version = "0.0.2433";
2187
2187
  var package_default = {
2188
2188
  name: "@tscircuit/runframe",
2189
2189
  main: "dist/preview.js",
@@ -2232,7 +2232,7 @@ var package_default = {
2232
2232
  "@radix-ui/react-tooltip": "^1.2.8",
2233
2233
  "@react-hook/resize-observer": "^2.0.2",
2234
2234
  "@resvg/resvg-wasm": "^2.6.2",
2235
- "@tscircuit/3d-viewer": "^0.0.588",
2235
+ "@tscircuit/3d-viewer": "^0.0.589",
2236
2236
  "@tscircuit/assembly-viewer": "^0.0.6",
2237
2237
  "@tscircuit/create-snippet-url": "^0.0.9",
2238
2238
  "@tscircuit/fake-snippets": "^0.0.163",
package/dist/preview.js CHANGED
@@ -7,7 +7,7 @@ import {
7
7
  SchematicViewer,
8
8
  useOrderDialog,
9
9
  useOrderDialogCli
10
- } from "./chunk-A6GEADL4.js";
10
+ } from "./chunk-UTC5PE3F.js";
11
11
  export {
12
12
  BomTable,
13
13
  CadViewer,
package/dist/runner.d.ts CHANGED
@@ -129,6 +129,8 @@ interface RunFrameProps {
129
129
  evalWebWorkerBlobUrl?: string;
130
130
  evalVersion?: string;
131
131
  forceLatestEvalVersion?: boolean;
132
+ shouldLoadLatestEval?: boolean;
133
+ onChangeShouldLoadLatestEval?: (shouldLoadLatestEval: boolean) => void;
132
134
  /**
133
135
  * Optional project URL whose pathname will be used when
134
136
  * reporting autorouting bugs
@@ -187,6 +189,8 @@ interface RunFrameWithApiProps {
187
189
  forceLatestEvalVersion?: boolean;
188
190
  debug?: boolean;
189
191
  leftHeaderContent?: React.ReactNode;
192
+ shouldLoadLatestEval?: boolean;
193
+ onChangeShouldLoadLatestEval?: (shouldLoadLatestEval: boolean) => void;
190
194
  defaultToFullScreen?: boolean;
191
195
  showToggleFullScreen?: boolean;
192
196
  showFilesSwitch?: boolean;
package/dist/runner.js CHANGED
@@ -39,7 +39,7 @@ import {
39
39
  useRunFrameStore,
40
40
  useRunnerStore,
41
41
  useStyles
42
- } from "./chunk-A6GEADL4.js";
42
+ } from "./chunk-UTC5PE3F.js";
43
43
 
44
44
  // lib/components/RunFrame/RunFrame.tsx
45
45
  import { createCircuitWebWorker } from "@tscircuit/eval/worker";
@@ -863,7 +863,9 @@ var RunFrame = (props) => {
863
863
  showSchematicPorts,
864
864
  onChangeShowSchematicPorts: setShowSchematicPorts,
865
865
  autoroutingLog,
866
- onReportAutoroutingLog: props.onReportAutoroutingLog || handleReportAutoroutingLog
866
+ onReportAutoroutingLog: props.onReportAutoroutingLog || handleReportAutoroutingLog,
867
+ shouldLoadLatestEval: props.shouldLoadLatestEval,
868
+ onChangeShouldLoadLatestEval: props.onChangeShouldLoadLatestEval
867
869
  }
868
870
  ),
869
871
  props.leftHeaderContent
@@ -1956,6 +1958,8 @@ var RunFrameWithApi = (props) => {
1956
1958
  {
1957
1959
  fsMap,
1958
1960
  showFileMenu: props.showFileMenu,
1961
+ shouldLoadLatestEval: props.shouldLoadLatestEval,
1962
+ onChangeShouldLoadLatestEval: props.onChangeShouldLoadLatestEval,
1959
1963
  isCli: props.isCli,
1960
1964
  schematicSvgOptions: props.schematicSvgOptions,
1961
1965
  isLoadingFiles,
@@ -2301,26 +2305,16 @@ var RunFrameForCli = (props) => {
2301
2305
  platformConfig,
2302
2306
  isCli: true,
2303
2307
  showFilesSwitch: true,
2304
- showFileMenu: false,
2305
2308
  enableFetchProxy: props.enableFetchProxy,
2306
2309
  initialMainComponentPath,
2307
2310
  onLoginRequired: openLoginDialog,
2308
2311
  onMainComponentPathChange: updateMainComponentHash,
2309
- leftHeaderContent: /* @__PURE__ */ jsxs8("div", { className: "rf-flex rf-items-center rf-justify-between", children: [
2310
- /* @__PURE__ */ jsx9(
2311
- FileMenuLeftHeader,
2312
- {
2313
- isWebEmbedded: false,
2314
- shouldLoadLatestEval: !evalWebWorkerBlobUrl && shouldLoadLatestEval,
2315
- onChangeShouldLoadLatestEval: (newShouldLoadLatestEval) => {
2316
- setLoadLatestEval(newShouldLoadLatestEval);
2317
- globalThis.runFrameWorker = null;
2318
- },
2319
- onLoginRequired: openLoginDialog
2320
- }
2321
- ),
2322
- props.scenarioSelectorContent
2323
- ] })
2312
+ shouldLoadLatestEval: !evalWebWorkerBlobUrl && shouldLoadLatestEval,
2313
+ onChangeShouldLoadLatestEval: (newShouldLoadLatestEval) => {
2314
+ setLoadLatestEval(newShouldLoadLatestEval);
2315
+ globalThis.runFrameWorker = null;
2316
+ },
2317
+ leftHeaderContent: /* @__PURE__ */ jsx9("div", { className: "rf-flex rf-items-center rf-justify-between", children: props.scenarioSelectorContent })
2324
2318
  }
2325
2319
  )
2326
2320
  ] });