@tscircuit/runframe 0.0.1163 → 0.0.1165
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-2UKQR2BG.js → chunk-FDARUQFH.js} +7 -5
- package/dist/preview.js +1 -1
- package/dist/runner.d.ts +2 -1
- package/dist/runner.js +1 -1
- package/dist/standalone-preview.min.js +349 -349
- package/dist/standalone.min.js +313 -313
- 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.1164";
|
|
1458
1458
|
var package_default = {
|
|
1459
1459
|
name: "@tscircuit/runframe",
|
|
1460
1460
|
main: "dist/preview.js",
|
|
@@ -1505,7 +1505,7 @@ var package_default = {
|
|
|
1505
1505
|
"@tscircuit/assembly-viewer": "^0.0.5",
|
|
1506
1506
|
"@tscircuit/checks": "^0.0.78",
|
|
1507
1507
|
"@tscircuit/create-snippet-url": "^0.0.9",
|
|
1508
|
-
"@tscircuit/eval": "^0.0.
|
|
1508
|
+
"@tscircuit/eval": "^0.0.435",
|
|
1509
1509
|
"@tscircuit/fake-snippets": "^0.0.122",
|
|
1510
1510
|
"@tscircuit/file-server": "^0.0.32",
|
|
1511
1511
|
"@tscircuit/footprinter": "^0.0.236",
|
|
@@ -2218,7 +2218,7 @@ var mapJlcpcbComponentToSummary = (component) => ({
|
|
|
2218
2218
|
var loadJlcpcbComponentTsx = async (partNumber, opts) => {
|
|
2219
2219
|
const component = await fetchEasyEDAComponent(partNumber, {
|
|
2220
2220
|
// @ts-ignore
|
|
2221
|
-
fetch: (url, options) => fetch(`${API_BASE}/proxy`, {
|
|
2221
|
+
fetch: (url, options) => fetch(`${opts?.apiBase ?? API_BASE}/proxy`, {
|
|
2222
2222
|
...options,
|
|
2223
2223
|
headers: {
|
|
2224
2224
|
...options?.headers,
|
|
@@ -2805,7 +2805,8 @@ var ImportComponentDialog2 = ({
|
|
|
2805
2805
|
jlcpcbProxyRequestHeaders,
|
|
2806
2806
|
onKicadStringSelected,
|
|
2807
2807
|
onTscircuitPackageSelected,
|
|
2808
|
-
onJlcpcbComponentTsxLoaded
|
|
2808
|
+
onJlcpcbComponentTsxLoaded,
|
|
2809
|
+
jlcpcbProxyApiBase
|
|
2809
2810
|
}) => {
|
|
2810
2811
|
useStyles();
|
|
2811
2812
|
const availableSources = React11.useMemo(
|
|
@@ -2932,7 +2933,8 @@ var ImportComponentDialog2 = ({
|
|
|
2932
2933
|
throw new Error("JLCPCB handler not provided");
|
|
2933
2934
|
}
|
|
2934
2935
|
const tsx = await loadJlcpcbComponentTsx(result.component.partNumber, {
|
|
2935
|
-
headers: jlcpcbProxyRequestHeaders
|
|
2936
|
+
headers: jlcpcbProxyRequestHeaders,
|
|
2937
|
+
apiBase: jlcpcbProxyApiBase
|
|
2936
2938
|
});
|
|
2937
2939
|
await onJlcpcbComponentTsxLoaded({ result, tsx });
|
|
2938
2940
|
} else if (result.source === "tscircuit.com") {
|
package/dist/preview.js
CHANGED
package/dist/runner.d.ts
CHANGED
|
@@ -280,6 +280,7 @@ interface ImportComponentDialog2Props {
|
|
|
280
280
|
isOpen: boolean;
|
|
281
281
|
onClose: () => void;
|
|
282
282
|
jlcpcbProxyRequestHeaders?: Record<string, string>;
|
|
283
|
+
jlcpcbProxyApiBase?: string;
|
|
283
284
|
onKicadStringSelected?: (payload: KicadStringSelectedPayload) => void | Promise<void>;
|
|
284
285
|
onTscircuitPackageSelected?: (payload: TscircuitPackageSelectedPayload) => void | Promise<void>;
|
|
285
286
|
onJlcpcbComponentTsxLoaded?: (payload: JlcpcbComponentTsxLoadedPayload) => void | Promise<void>;
|
|
@@ -298,7 +299,7 @@ interface JlcpcbComponentTsxLoadedPayload {
|
|
|
298
299
|
tsx: string;
|
|
299
300
|
}
|
|
300
301
|
|
|
301
|
-
declare const ImportComponentDialog2: ({ isOpen, onClose, jlcpcbProxyRequestHeaders, onKicadStringSelected, onTscircuitPackageSelected, onJlcpcbComponentTsxLoaded, }: ImportComponentDialog2Props) => react_jsx_runtime.JSX.Element;
|
|
302
|
+
declare const ImportComponentDialog2: ({ isOpen, onClose, jlcpcbProxyRequestHeaders, onKicadStringSelected, onTscircuitPackageSelected, onJlcpcbComponentTsxLoaded, jlcpcbProxyApiBase, }: ImportComponentDialog2Props) => react_jsx_runtime.JSX.Element;
|
|
302
303
|
|
|
303
304
|
type CliImportDialogProps = Omit<ImportComponentDialog2Props, "onKicadStringSelected" | "onTscircuitPackageSelected" | "onJlcpcbComponentTsxLoaded">;
|
|
304
305
|
declare const ImportComponentDialogForCli: {
|
package/dist/runner.js
CHANGED