@tscircuit/eval 0.0.797 → 0.0.798
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/blob-url.js +1 -1
- package/dist/eval/index.d.ts +11 -0
- package/dist/eval/index.js +196 -75
- package/dist/lib/index.d.ts +14 -1
- package/dist/lib/index.js +199 -75
- package/dist/platform-config/getPlatformConfig.d.ts +4 -1
- package/dist/platform-config/getPlatformConfig.js +187 -74
- package/dist/webworker/entrypoint.js +2 -2
- package/dist/worker.d.ts +6 -0
- package/dist/worker.js +4 -1
- package/package.json +2 -2
package/dist/eval/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { AnyCircuitElement } from 'circuit-json';
|
|
2
2
|
import { RootCircuitEventName as RootCircuitEventName$1, RootCircuit } from '@tscircuit/core';
|
|
3
3
|
import { PlatformConfig } from '@tscircuit/props';
|
|
4
|
+
import { EasyEdaProxyConfig } from '@tscircuit/parts-engine';
|
|
4
5
|
import * as zod from 'zod';
|
|
5
6
|
|
|
6
7
|
type RootCircuitEventName = RootCircuitEventName$1 | "debug:logOutput";
|
|
@@ -15,6 +16,11 @@ interface CircuitRunnerConfiguration {
|
|
|
15
16
|
* Used to fetch private @tsci/* packages from npm.tscircuit.com
|
|
16
17
|
*/
|
|
17
18
|
tscircuitSessionToken?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Configuration for proxying EasyEDA API requests, used by the parts engine
|
|
21
|
+
* when fetching part circuit JSON (e.g. for connector footprints).
|
|
22
|
+
*/
|
|
23
|
+
easyEdaProxyConfig?: EasyEdaProxyConfig;
|
|
18
24
|
}
|
|
19
25
|
interface WebWorkerConfiguration extends CircuitRunnerConfiguration {
|
|
20
26
|
evalVersion?: string;
|
|
@@ -61,6 +67,7 @@ interface CircuitRunnerApi {
|
|
|
61
67
|
setPlatformConfigProperty: (property: string, value: any) => Promise<void>;
|
|
62
68
|
setProjectConfigProperty: (property: string, value: any) => Promise<void>;
|
|
63
69
|
setTscircuitSessionToken: (token: string) => Promise<void>;
|
|
70
|
+
setEasyEdaProxyConfig: (config: EasyEdaProxyConfig) => Promise<void>;
|
|
64
71
|
enableDebug: (namespace: string) => Promise<void>;
|
|
65
72
|
on: (event: RootCircuitEventName, callback: (...args: any[]) => void) => void;
|
|
66
73
|
clearEventListeners: () => void;
|
|
@@ -138,6 +145,10 @@ declare class CircuitRunner implements CircuitRunnerApi {
|
|
|
138
145
|
setProjectConfig(project: Partial<PlatformConfig>): Promise<void>;
|
|
139
146
|
setProjectConfigProperty(property: string, value: any): Promise<void>;
|
|
140
147
|
setTscircuitSessionToken(token: string): Promise<void>;
|
|
148
|
+
setEasyEdaProxyConfig(config: {
|
|
149
|
+
proxyEndpointUrl: string;
|
|
150
|
+
headers?: Record<string, string>;
|
|
151
|
+
}): Promise<void>;
|
|
141
152
|
enableDebug(namespace: string): Promise<void>;
|
|
142
153
|
private _bindEventListeners;
|
|
143
154
|
}
|