@tscircuit/eval 0.0.288 → 0.0.289

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.
Files changed (38) hide show
  1. package/.github/workflows/bun-test.yml +20 -2
  2. package/dist/blob-url.js +1 -1
  3. package/dist/eval/index.d.ts +52 -8
  4. package/dist/lib/index.d.ts +52 -8
  5. package/dist/webworker/entrypoint.js +352 -349
  6. package/package.json +9 -7
  7. package/scripts/validate-test-matrix.js +148 -0
  8. package/tests/{example1-readme-example.test.tsx → examples/example01-readme-example.test.tsx} +1 -1
  9. package/tests/{example2-multiple-files.test.tsx → examples/example02-multiple-files.test.tsx} +1 -1
  10. package/tests/{example3-encoded-url.test.tsx → examples/example03-encoded-url.test.tsx} +1 -1
  11. package/tests/{example4-root-child-issue.test.tsx → examples/example04-root-child-issue.test.tsx} +1 -1
  12. package/tests/{example5-event-recording.test.tsx → examples/example05-event-recording.test.tsx} +1 -1
  13. package/tests/{example7-import-default-and-namespace.test.tsx → examples/example07-import-default-and-namespace.test.tsx} +2 -2
  14. package/tests/{example8-footprinter-to220.test.tsx → examples/example08-footprinter-to220.test.tsx} +1 -1
  15. package/tests/{example9-not-defined-component.test.tsx → examples/example09-not-defined-component.test.tsx} +1 -1
  16. package/tests/{example13-webworker-without-entrypoint.test.tsx → examples/example13-webworker-without-entrypoint.test.tsx} +1 -1
  17. package/tests/{example16-parts-engine.test.tsx → examples/example16-parts-engine.test.tsx} +1 -1
  18. package/tests/{example17-parse-tscircuit-config.test.tsx → examples/example17-parse-tscircuit-config.test.tsx} +1 -1
  19. package/tests/{circuit-event-forwarding.test.tsx → features/circuit-event-forwarding.test.tsx} +1 -1
  20. package/tests/{fetch-override.test.ts → features/fetch-proxy/fetch-override.test.ts} +3 -3
  21. package/tests/{fetch-proxy-validation.test.ts → features/fetch-proxy/fetch-proxy-validation.test.ts} +5 -7
  22. package/tests/{kill.test.ts → features/kill.test.ts} +5 -3
  23. package/tests/{manual-edits.test.tsx → features/manual-edits.test.tsx} +2 -2
  24. package/tests/fixtures/resourcePaths.ts +3 -0
  25. package/webworker/entrypoint.ts +1 -1
  26. /package/tests/{example6-dynamic-load-blob-url.test.tsx → examples/example06-dynamic-load-blob-url.test.tsx} +0 -0
  27. /package/tests/{example10-run-tscircuit-code.test.tsx → examples/example10-run-tscircuit-code.test.tsx} +0 -0
  28. /package/tests/{example11-flexible-import-extensions.test.tsx → examples/example11-flexible-import-extensions.test.tsx} +0 -0
  29. /package/tests/{example12-import-from-subdirectory.test.tsx → examples/example12-import-from-subdirectory.test.tsx} +0 -0
  30. /package/tests/{example14-run-tscircuit-module.test.tsx → examples/example14-run-tscircuit-module.test.tsx} +0 -0
  31. /package/tests/{example15-run-tscircuit-module-with-props.test.tsx → examples/example15-run-tscircuit-module-with-props.test.tsx} +0 -0
  32. /package/tests/{parent-directory-import.test.tsx → features/parent-directory-import.test.tsx} +0 -0
  33. /package/tests/{platform-config.test.tsx → features/platform-config.test.tsx} +0 -0
  34. /package/tests/{prioritize-default-export.test.tsx → features/prioritize-default-export.test.tsx} +0 -0
  35. /package/tests/{group-wrapper.test.tsx → repros/group-wrapper.test.tsx} +0 -0
  36. /package/tests/{nine-keyboard-default-export.test.tsx → repros/nine-keyboard-default-export.test.tsx} +0 -0
  37. /package/tests/{get-imports-from-code.test.tsx → util-fns/get-imports-from-code.test.tsx} +0 -0
  38. /package/tests/{getPossibleEntrypointComponentPaths.test.ts → util-fns/getPossibleEntrypointComponentPaths.test.ts} +0 -0
@@ -1218,6 +1218,14 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
1218
1218
  pcb_component_ids: string[];
1219
1219
  pcb_error_id: string;
1220
1220
  subcircuit_id?: string | undefined;
1221
+ } | {
1222
+ message: string;
1223
+ type: "pcb_port_not_connected_error";
1224
+ error_type: "pcb_port_not_connected_error";
1225
+ pcb_component_ids: string[];
1226
+ pcb_port_ids: string[];
1227
+ pcb_port_not_connected_error_id: string;
1228
+ subcircuit_id?: string | undefined;
1221
1229
  } | {
1222
1230
  type: "pcb_fabrication_note_path";
1223
1231
  pcb_component_id: string;
@@ -1628,10 +1636,24 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
1628
1636
  type: "simulation_voltage_source";
1629
1637
  voltage: number;
1630
1638
  simulation_voltage_source_id: string;
1631
- positive_source_port_id: string;
1632
- negative_source_port_id: string;
1633
- positive_source_net_id: string;
1634
- negative_source_net_id: string;
1639
+ is_dc_source: true;
1640
+ positive_source_port_id?: string | undefined;
1641
+ negative_source_port_id?: string | undefined;
1642
+ positive_source_net_id?: string | undefined;
1643
+ negative_source_net_id?: string | undefined;
1644
+ } | {
1645
+ type: "simulation_voltage_source";
1646
+ simulation_voltage_source_id: string;
1647
+ is_dc_source: false;
1648
+ voltage?: number | undefined;
1649
+ frequency?: number | undefined;
1650
+ terminal1_source_port_id?: string | undefined;
1651
+ terminal2_source_port_id?: string | undefined;
1652
+ terminal1_source_net_id?: string | undefined;
1653
+ terminal2_source_net_id?: string | undefined;
1654
+ peak_to_peak_voltage?: number | undefined;
1655
+ wave_shape?: "square" | "sinewave" | "triangle" | "sawtooth" | undefined;
1656
+ phase?: number | undefined;
1635
1657
  })[]>;
1636
1658
 
1637
1659
  declare const runTscircuitModule: (module: string, opts?: {
@@ -2772,6 +2794,14 @@ declare const runTscircuitModule: (module: string, opts?: {
2772
2794
  pcb_component_ids: string[];
2773
2795
  pcb_error_id: string;
2774
2796
  subcircuit_id?: string | undefined;
2797
+ } | {
2798
+ message: string;
2799
+ type: "pcb_port_not_connected_error";
2800
+ error_type: "pcb_port_not_connected_error";
2801
+ pcb_component_ids: string[];
2802
+ pcb_port_ids: string[];
2803
+ pcb_port_not_connected_error_id: string;
2804
+ subcircuit_id?: string | undefined;
2775
2805
  } | {
2776
2806
  type: "pcb_fabrication_note_path";
2777
2807
  pcb_component_id: string;
@@ -3182,10 +3212,24 @@ declare const runTscircuitModule: (module: string, opts?: {
3182
3212
  type: "simulation_voltage_source";
3183
3213
  voltage: number;
3184
3214
  simulation_voltage_source_id: string;
3185
- positive_source_port_id: string;
3186
- negative_source_port_id: string;
3187
- positive_source_net_id: string;
3188
- negative_source_net_id: string;
3215
+ is_dc_source: true;
3216
+ positive_source_port_id?: string | undefined;
3217
+ negative_source_port_id?: string | undefined;
3218
+ positive_source_net_id?: string | undefined;
3219
+ negative_source_net_id?: string | undefined;
3220
+ } | {
3221
+ type: "simulation_voltage_source";
3222
+ simulation_voltage_source_id: string;
3223
+ is_dc_source: false;
3224
+ voltage?: number | undefined;
3225
+ frequency?: number | undefined;
3226
+ terminal1_source_port_id?: string | undefined;
3227
+ terminal2_source_port_id?: string | undefined;
3228
+ terminal1_source_net_id?: string | undefined;
3229
+ terminal2_source_net_id?: string | undefined;
3230
+ peak_to_peak_voltage?: number | undefined;
3231
+ wave_shape?: "square" | "sinewave" | "triangle" | "sawtooth" | undefined;
3232
+ phase?: number | undefined;
3189
3233
  })[]>;
3190
3234
 
3191
3235
  export { CircuitRunner, runTscircuitCode, runTscircuitModule };
@@ -1232,6 +1232,14 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
1232
1232
  pcb_component_ids: string[];
1233
1233
  pcb_error_id: string;
1234
1234
  subcircuit_id?: string | undefined;
1235
+ } | {
1236
+ message: string;
1237
+ type: "pcb_port_not_connected_error";
1238
+ error_type: "pcb_port_not_connected_error";
1239
+ pcb_component_ids: string[];
1240
+ pcb_port_ids: string[];
1241
+ pcb_port_not_connected_error_id: string;
1242
+ subcircuit_id?: string | undefined;
1235
1243
  } | {
1236
1244
  type: "pcb_fabrication_note_path";
1237
1245
  pcb_component_id: string;
@@ -1642,10 +1650,24 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
1642
1650
  type: "simulation_voltage_source";
1643
1651
  voltage: number;
1644
1652
  simulation_voltage_source_id: string;
1645
- positive_source_port_id: string;
1646
- negative_source_port_id: string;
1647
- positive_source_net_id: string;
1648
- negative_source_net_id: string;
1653
+ is_dc_source: true;
1654
+ positive_source_port_id?: string | undefined;
1655
+ negative_source_port_id?: string | undefined;
1656
+ positive_source_net_id?: string | undefined;
1657
+ negative_source_net_id?: string | undefined;
1658
+ } | {
1659
+ type: "simulation_voltage_source";
1660
+ simulation_voltage_source_id: string;
1661
+ is_dc_source: false;
1662
+ voltage?: number | undefined;
1663
+ frequency?: number | undefined;
1664
+ terminal1_source_port_id?: string | undefined;
1665
+ terminal2_source_port_id?: string | undefined;
1666
+ terminal1_source_net_id?: string | undefined;
1667
+ terminal2_source_net_id?: string | undefined;
1668
+ peak_to_peak_voltage?: number | undefined;
1669
+ wave_shape?: "square" | "sinewave" | "triangle" | "sawtooth" | undefined;
1670
+ phase?: number | undefined;
1649
1671
  })[]>;
1650
1672
 
1651
1673
  declare const runTscircuitModule: (module: string, opts?: {
@@ -2786,6 +2808,14 @@ declare const runTscircuitModule: (module: string, opts?: {
2786
2808
  pcb_component_ids: string[];
2787
2809
  pcb_error_id: string;
2788
2810
  subcircuit_id?: string | undefined;
2811
+ } | {
2812
+ message: string;
2813
+ type: "pcb_port_not_connected_error";
2814
+ error_type: "pcb_port_not_connected_error";
2815
+ pcb_component_ids: string[];
2816
+ pcb_port_ids: string[];
2817
+ pcb_port_not_connected_error_id: string;
2818
+ subcircuit_id?: string | undefined;
2789
2819
  } | {
2790
2820
  type: "pcb_fabrication_note_path";
2791
2821
  pcb_component_id: string;
@@ -3196,10 +3226,24 @@ declare const runTscircuitModule: (module: string, opts?: {
3196
3226
  type: "simulation_voltage_source";
3197
3227
  voltage: number;
3198
3228
  simulation_voltage_source_id: string;
3199
- positive_source_port_id: string;
3200
- negative_source_port_id: string;
3201
- positive_source_net_id: string;
3202
- negative_source_net_id: string;
3229
+ is_dc_source: true;
3230
+ positive_source_port_id?: string | undefined;
3231
+ negative_source_port_id?: string | undefined;
3232
+ positive_source_net_id?: string | undefined;
3233
+ negative_source_net_id?: string | undefined;
3234
+ } | {
3235
+ type: "simulation_voltage_source";
3236
+ simulation_voltage_source_id: string;
3237
+ is_dc_source: false;
3238
+ voltage?: number | undefined;
3239
+ frequency?: number | undefined;
3240
+ terminal1_source_port_id?: string | undefined;
3241
+ terminal2_source_port_id?: string | undefined;
3242
+ terminal1_source_net_id?: string | undefined;
3243
+ terminal2_source_net_id?: string | undefined;
3244
+ peak_to_peak_voltage?: number | undefined;
3245
+ wave_shape?: "square" | "sinewave" | "triangle" | "sawtooth" | undefined;
3246
+ phase?: number | undefined;
3203
3247
  })[]>;
3204
3248
 
3205
3249
  declare const getImportsFromCode: (code: string) => string[];