@tscircuit/eval 0.0.796 → 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 +6 -6
- package/dist/worker.d.ts +6 -0
- package/dist/worker.js +4 -1
- package/package.json +3 -3
package/dist/lib/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;
|
|
@@ -154,6 +161,10 @@ declare class CircuitRunner implements CircuitRunnerApi {
|
|
|
154
161
|
setProjectConfig(project: Partial<PlatformConfig>): Promise<void>;
|
|
155
162
|
setProjectConfigProperty(property: string, value: any): Promise<void>;
|
|
156
163
|
setTscircuitSessionToken(token: string): Promise<void>;
|
|
164
|
+
setEasyEdaProxyConfig(config: {
|
|
165
|
+
proxyEndpointUrl: string;
|
|
166
|
+
headers?: Record<string, string>;
|
|
167
|
+
}): Promise<void>;
|
|
157
168
|
enableDebug(namespace: string): Promise<void>;
|
|
158
169
|
private _bindEventListeners;
|
|
159
170
|
}
|
|
@@ -8857,6 +8868,8 @@ declare const createCircuitWebWorker: (configuration: Partial<WebWorkerConfigura
|
|
|
8857
8868
|
|
|
8858
8869
|
declare const getPossibleEntrypointComponentPaths: (fsMap: Record<string, string>) => string[];
|
|
8859
8870
|
|
|
8860
|
-
declare const getPlatformConfig: (overrides?: Partial<PlatformConfig
|
|
8871
|
+
declare const getPlatformConfig: (overrides?: Partial<PlatformConfig>, options?: {
|
|
8872
|
+
easyEdaProxyConfig?: EasyEdaProxyConfig;
|
|
8873
|
+
}) => PlatformConfig;
|
|
8861
8874
|
|
|
8862
8875
|
export { CircuitRunner, type CircuitWebWorker, STATIC_ASSET_EXTENSIONS, type WebWorkerConfiguration, createCircuitWebWorker, getImportsFromCode, getPlatformConfig, getPossibleEntrypointComponentPaths, isStaticAssetPath, runTscircuitCode, runTscircuitModule };
|