@tscircuit/runframe 0.0.229 → 0.0.231
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-ODJJXLES.js → chunk-QZZ7JNFJ.js} +1 -1
- package/dist/preview.js +1 -1
- package/dist/runner.d.ts +1 -0
- package/dist/runner.js +17 -2
- package/dist/standalone-preview.min.js +960 -966
- package/dist/standalone.min.js +959 -965
- package/package.json +2 -2
package/dist/preview.js
CHANGED
package/dist/runner.d.ts
CHANGED
package/dist/runner.js
CHANGED
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
DropdownMenuTrigger,
|
|
12
12
|
buttonVariants,
|
|
13
13
|
cn
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-QZZ7JNFJ.js";
|
|
15
15
|
|
|
16
16
|
// lib/components/RunFrame/RunFrame.tsx
|
|
17
17
|
import { createCircuitWebWorker } from "@tscircuit/eval";
|
|
@@ -341,8 +341,23 @@ var RunFrame = (props) => {
|
|
|
341
341
|
debug3("running render worker");
|
|
342
342
|
setError(null);
|
|
343
343
|
const renderLog2 = { progress: 0 };
|
|
344
|
+
let evalVersion = props.evalVersion ?? "latest";
|
|
345
|
+
if (!globalThis.runFrameWorker && props.forceLatestEvalVersion) {
|
|
346
|
+
try {
|
|
347
|
+
const response = await fetch(
|
|
348
|
+
"https://data.jsdelivr.com/v1/package/npm/@tscircuit/eval"
|
|
349
|
+
);
|
|
350
|
+
if (response.ok) {
|
|
351
|
+
const data = await response.json();
|
|
352
|
+
if (data.tags?.latest) {
|
|
353
|
+
evalVersion = data.tags.latest;
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
} catch (err) {
|
|
357
|
+
}
|
|
358
|
+
}
|
|
344
359
|
const worker = globalThis.runFrameWorker ?? await createCircuitWebWorker({
|
|
345
|
-
evalVersion
|
|
360
|
+
evalVersion,
|
|
346
361
|
webWorkerBlobUrl: props.evalWebWorkerBlobUrl,
|
|
347
362
|
verbose: true
|
|
348
363
|
});
|