@tscircuit/eval 0.0.495 → 0.0.497

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.
@@ -24,6 +24,13 @@ interface WebWorkerConfiguration extends CircuitRunnerConfiguration {
24
24
  * Default: false
25
25
  */
26
26
  enableFetchProxy?: boolean;
27
+ /**
28
+ * Disable npm package resolution from jsDelivr CDN.
29
+ * When true, import statements for npm packages will throw an error instead
30
+ * of being resolved from the CDN.
31
+ * Default: false
32
+ */
33
+ disableCdnLoading?: boolean;
27
34
  }
28
35
  /**
29
36
  * API for the CircuitRunner class, used for eval'ing circuits
@@ -42,6 +49,7 @@ interface CircuitRunnerApi {
42
49
  renderUntilSettled: () => Promise<void>;
43
50
  getCircuitJson: () => Promise<AnyCircuitElement[]>;
44
51
  setSnippetsApiBaseUrl: (baseUrl: string) => Promise<void>;
52
+ setDisableCdnLoading: (disable: boolean) => Promise<void>;
45
53
  setPlatformConfig: (platform: PlatformConfig) => Promise<void>;
46
54
  setProjectConfig: (project: Partial<PlatformConfig>) => Promise<void>;
47
55
  setPlatformConfigProperty: (property: string, value: any) => Promise<void>;
@@ -117,6 +125,7 @@ declare class CircuitRunner implements CircuitRunnerApi {
117
125
  clearEventListeners(): void;
118
126
  kill(): Promise<void>;
119
127
  setSnippetsApiBaseUrl(baseUrl: string): Promise<void>;
128
+ setDisableCdnLoading(disable: boolean): Promise<void>;
120
129
  setPlatformConfig(platform: PlatformConfig): Promise<void>;
121
130
  setPlatformConfigProperty(property: string, value: any): Promise<void>;
122
131
  setProjectConfig(project: Partial<PlatformConfig>): Promise<void>;