@tscircuit/runframe 0.0.827 → 0.0.829
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.
|
@@ -1333,7 +1333,7 @@ var useErrorTelemetry = ({
|
|
|
1333
1333
|
};
|
|
1334
1334
|
|
|
1335
1335
|
// package.json
|
|
1336
|
-
var version = "0.0.
|
|
1336
|
+
var version = "0.0.828";
|
|
1337
1337
|
|
|
1338
1338
|
// lib/hooks/use-eval-versions.ts
|
|
1339
1339
|
import { useEffect as useEffect5, useMemo as useMemo2, useState as useState6 } from "react";
|
package/dist/preview.js
CHANGED
package/dist/runner.d.ts
CHANGED
|
@@ -115,6 +115,10 @@ interface RunFrameProps {
|
|
|
115
115
|
onReportAutoroutingLog?: (name: string, data: {
|
|
116
116
|
simpleRouteJson: any;
|
|
117
117
|
}) => void;
|
|
118
|
+
/**
|
|
119
|
+
* Enable fetch proxy for the web worker (useful for standalone bundles)
|
|
120
|
+
*/
|
|
121
|
+
enableFetchProxy?: boolean;
|
|
118
122
|
}
|
|
119
123
|
|
|
120
124
|
declare global {
|
|
@@ -140,6 +144,10 @@ interface RunFrameWithApiProps {
|
|
|
140
144
|
workerBlobUrl?: string;
|
|
141
145
|
evalWebWorkerBlobUrl?: string;
|
|
142
146
|
showFileMenu?: boolean;
|
|
147
|
+
/**
|
|
148
|
+
* Enable fetch proxy for the web worker (useful for standalone bundles)
|
|
149
|
+
*/
|
|
150
|
+
enableFetchProxy?: boolean;
|
|
143
151
|
}
|
|
144
152
|
declare const RunFrameWithApi: (props: RunFrameWithApiProps) => react_jsx_runtime.JSX.Element;
|
|
145
153
|
|
|
@@ -147,6 +155,7 @@ declare const RunFrameForCli: (props: {
|
|
|
147
155
|
debug?: boolean;
|
|
148
156
|
scenarioSelectorContent?: React.ReactNode;
|
|
149
157
|
workerBlobUrl?: string;
|
|
158
|
+
enableFetchProxy?: boolean;
|
|
150
159
|
}) => react_jsx_runtime.JSX.Element;
|
|
151
160
|
|
|
152
161
|
interface ComponentSearchResult {
|
package/dist/runner.js
CHANGED
|
@@ -40,7 +40,7 @@ import {
|
|
|
40
40
|
useRunFrameStore,
|
|
41
41
|
useRunnerStore,
|
|
42
42
|
useStyles
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-GWIPSRBG.js";
|
|
44
44
|
|
|
45
45
|
// lib/components/RunFrame/RunFrame.tsx
|
|
46
46
|
import { createCircuitWebWorker } from "@tscircuit/eval/worker";
|
|
@@ -1548,7 +1548,10 @@ var RunFrame = (props) => {
|
|
|
1548
1548
|
const worker = await createCircuitWebWorker({
|
|
1549
1549
|
evalVersion,
|
|
1550
1550
|
webWorkerBlobUrl: props.evalWebWorkerBlobUrl,
|
|
1551
|
-
verbose: true
|
|
1551
|
+
verbose: true,
|
|
1552
|
+
...props.enableFetchProxy && {
|
|
1553
|
+
enableFetchProxy: props.enableFetchProxy
|
|
1554
|
+
}
|
|
1552
1555
|
});
|
|
1553
1556
|
if (cancelled) return;
|
|
1554
1557
|
globalThis.runFrameWorker = worker;
|
|
@@ -1630,7 +1633,10 @@ var RunFrame = (props) => {
|
|
|
1630
1633
|
const worker = globalThis.runFrameWorker ?? await createCircuitWebWorker({
|
|
1631
1634
|
evalVersion: resolvedEvalVersion,
|
|
1632
1635
|
webWorkerBlobUrl: props.evalWebWorkerBlobUrl,
|
|
1633
|
-
verbose: true
|
|
1636
|
+
verbose: true,
|
|
1637
|
+
...props.enableFetchProxy && {
|
|
1638
|
+
enableFetchProxy: props.enableFetchProxy
|
|
1639
|
+
}
|
|
1634
1640
|
});
|
|
1635
1641
|
globalThis.runFrameWorker = worker;
|
|
1636
1642
|
setLastRunEvalVersion(resolvedEvalVersion);
|
|
@@ -2274,6 +2280,7 @@ var RunFrameWithApi = (props) => {
|
|
|
2274
2280
|
evalVersion: props.evalVersion,
|
|
2275
2281
|
forceLatestEvalVersion: props.forceLatestEvalVersion,
|
|
2276
2282
|
evalWebWorkerBlobUrl: props.evalWebWorkerBlobUrl ?? props.workerBlobUrl,
|
|
2283
|
+
enableFetchProxy: props.enableFetchProxy,
|
|
2277
2284
|
leftHeaderContent: /* @__PURE__ */ jsxs11("div", { className: "rf-flex rf-items-center rf-justify-between rf-w-full", children: [
|
|
2278
2285
|
props.leftHeaderContent,
|
|
2279
2286
|
props.showFilesSwitch && /* @__PURE__ */ jsx13("div", { className: "rf-absolute rf-left-1/2 rf-transform rf--translate-x-1/2", children: /* @__PURE__ */ jsx13(
|
|
@@ -2352,6 +2359,7 @@ var RunFrameForCli = (props) => {
|
|
|
2352
2359
|
workerBlobUrl: props.workerBlobUrl,
|
|
2353
2360
|
showFilesSwitch: true,
|
|
2354
2361
|
showFileMenu: false,
|
|
2362
|
+
enableFetchProxy: props.enableFetchProxy,
|
|
2355
2363
|
leftHeaderContent: /* @__PURE__ */ jsxs12("div", { className: "rf-flex rf-items-center rf-justify-between", children: [
|
|
2356
2364
|
/* @__PURE__ */ jsx14(
|
|
2357
2365
|
FileMenuLeftHeader,
|