@tscircuit/eval 0.0.277 → 0.0.279

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.
@@ -46,14 +46,6 @@ export const setupDefaultEntrypointIfNeeded = (opts: {
46
46
  `Main component path "${opts.mainComponentPath}" not found in fsMap. Available paths: ${Object.keys(opts.fsMap).join(", ")}`,
47
47
  )
48
48
  }
49
-
50
- const hasExplicitBoard = mainComponentCode.includes("<board")
51
- const hasTsciImport =
52
- mainComponentCode.includes("@tsci/") ||
53
- mainComponentCode.includes('from "@tsci')
54
- const hasGroup = mainComponentCode.includes("<group")
55
- const shouldWrapInBoard = !hasExplicitBoard && !hasTsciImport && !hasGroup
56
-
57
49
  opts.fsMap[opts.entrypoint] = `
58
50
  import * as UserComponents from "./${opts.mainComponentPath}";
59
51
 
@@ -76,18 +68,8 @@ export const setupDefaultEntrypointIfNeeded = (opts: {
76
68
  : ""
77
69
  }
78
70
 
79
- circuit.add(
80
- ${
81
- shouldWrapInBoard
82
- ? `
83
- <board>
84
- <ComponentToRender name="U1" ${opts.mainComponentProps ? `{...${JSON.stringify(opts.mainComponentProps, null, 2)}}` : ""} />
85
- </board>
86
- `
87
- : `
88
- <ComponentToRender ${opts.mainComponentProps ? `{...${JSON.stringify(opts.mainComponentProps, null, 2)}}` : ""} />
89
- `
90
- }
71
+ circuit.add(
72
+ <ComponentToRender ${opts.mainComponentProps ? `{...${JSON.stringify(opts.mainComponentProps, null, 2)}}` : ""} />
91
73
  );
92
74
  `
93
75
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tscircuit/eval",
3
3
  "main": "dist/lib/index.js",
4
- "version": "0.0.277",
4
+ "version": "0.0.279",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "build": "bun run build:lib && bun run build:webworker && bun run build:blob-url && bun run build:runner && bun run build:worker-wrapper",
@@ -53,7 +53,7 @@
53
53
  "@biomejs/biome": "^1.8.3",
54
54
  "@playwright/test": "^1.50.1",
55
55
  "@tscircuit/capacity-autorouter": "^0.0.100",
56
- "@tscircuit/core": "^0.0.615",
56
+ "@tscircuit/core": "^0.0.616",
57
57
  "@tscircuit/math-utils": "^0.0.18",
58
58
  "@tscircuit/parts-engine": "^0.0.8",
59
59
  "@types/babel__standalone": "^7.1.9",
@@ -11,23 +11,27 @@ const example4 = {
11
11
  },
12
12
  }
13
13
 
14
- test("example4-root-child-issue", async () => {
15
- const circuitWebWorker = await createCircuitWebWorker({
16
- webWorkerUrl: new URL("../webworker/entrypoint.ts", import.meta.url),
17
- })
14
+ test(
15
+ "example4-root-child-issue",
16
+ async () => {
17
+ const circuitWebWorker = await createCircuitWebWorker({
18
+ webWorkerUrl: new URL("../webworker/entrypoint.ts", import.meta.url),
19
+ })
18
20
 
19
- await circuitWebWorker.executeWithFsMap({
20
- fsMap: example4.fsMap,
21
- entrypoint: example4.entrypoint,
22
- })
21
+ await circuitWebWorker.executeWithFsMap({
22
+ fsMap: example4.fsMap,
23
+ entrypoint: example4.entrypoint,
24
+ })
23
25
 
24
- await circuitWebWorker.renderUntilSettled()
26
+ await circuitWebWorker.renderUntilSettled()
25
27
 
26
- const circuitJson = await circuitWebWorker.getCircuitJson()
28
+ const circuitJson = await circuitWebWorker.getCircuitJson()
27
29
 
28
- const led = circuitJson.find((el: any) => el.name === "LED")
29
- expect(led).toBeDefined()
30
- expect(led?.type).toBe("source_component")
30
+ const led = circuitJson.find((el: any) => el.name === "LED")
31
+ expect(led).toBeDefined()
32
+ expect(led?.type).toBe("source_component")
31
33
 
32
- await circuitWebWorker.kill()
33
- })
34
+ await circuitWebWorker.kill()
35
+ },
36
+ 30 * 1000,
37
+ )