@tscircuit/core 0.0.398 → 0.0.400

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/index.d.ts CHANGED
@@ -156,7 +156,7 @@ interface SimpleRouteJson {
156
156
  traces?: SimplifiedPcbTrace[];
157
157
  }
158
158
 
159
- type RootCircuitEventName = "asyncEffect:start" | "asyncEffect:end" | "renderable:renderLifecycle:anyEvent" | `renderable:renderLifecycle:${RenderPhase}:start` | `renderable:renderLifecycle:${RenderPhase}:end` | "external:evalError" | "autorouting:start" | "autorouting:end" | "autorouting:error" | "autorouting:progress" | "renderComplete";
159
+ type RootCircuitEventName = "asyncEffect:start" | "asyncEffect:end" | "renderable:renderLifecycle:anyEvent" | `renderable:renderLifecycle:${RenderPhase}:start` | `renderable:renderLifecycle:${RenderPhase}:end` | `board:renderPhaseStarted` | "external:evalError" | "autorouting:start" | "autorouting:end" | "autorouting:error" | "autorouting:progress" | "renderComplete";
160
160
  interface AutoroutingStartEvent {
161
161
  type: "autorouting:start";
162
162
  subcircuit_id: string;
@@ -1686,6 +1686,7 @@ declare class Board extends Group<typeof boardProps> {
1686
1686
  _computePcbGlobalTransformBeforeLayout(): Matrix;
1687
1687
  doInitialPcbDesignRuleChecks(): void;
1688
1688
  updatePcbDesignRuleChecks(): void;
1689
+ _emitRenderLifecycleEvent(phase: RenderPhase, startOrEnd: "start" | "end"): void;
1689
1690
  }
1690
1691
 
1691
1692
  declare class Capacitor extends NormalComponent<typeof capacitorProps, PassivePorts> {
package/dist/index.js CHANGED
@@ -6938,6 +6938,15 @@ var Board = class extends Group {
6938
6938
  db.pcb_trace_error.insert(error);
6939
6939
  }
6940
6940
  }
6941
+ _emitRenderLifecycleEvent(phase, startOrEnd) {
6942
+ super._emitRenderLifecycleEvent(phase, startOrEnd);
6943
+ if (startOrEnd === "start") {
6944
+ this.root?.emit("board:renderPhaseStarted", {
6945
+ renderId: this._renderId,
6946
+ phase
6947
+ });
6948
+ }
6949
+ }
6941
6950
  };
6942
6951
 
6943
6952
  // lib/components/normal-components/Capacitor.ts
@@ -8157,7 +8166,7 @@ import { identity as identity4 } from "transformation-matrix";
8157
8166
  var package_default = {
8158
8167
  name: "@tscircuit/core",
8159
8168
  type: "module",
8160
- version: "0.0.397",
8169
+ version: "0.0.399",
8161
8170
  types: "dist/index.d.ts",
8162
8171
  main: "dist/index.js",
8163
8172
  module: "dist/index.js",
@@ -8202,30 +8211,40 @@ var package_default = {
8202
8211
  react: "^19.0.0",
8203
8212
  "react-dom": "^19.0.0",
8204
8213
  "ts-expect": "^1.3.0",
8205
- tsup: "^8.2.4"
8206
- },
8207
- peerDependencies: {
8208
- "@tscircuit/footprinter": "*",
8209
- typescript: "^5.0.0"
8210
- },
8211
- dependencies: {
8212
- "@lume/kiwi": "^0.4.3",
8214
+ tsup: "^8.2.4",
8213
8215
  "@tscircuit/capacity-autorouter": "^0.0.52",
8214
8216
  "@tscircuit/checks": "^0.0.46",
8215
8217
  "@tscircuit/circuit-json-util": "^0.0.47",
8216
8218
  "@tscircuit/infgrid-ijump-astar": "^0.0.33",
8217
- "@tscircuit/math-utils": "^0.0.14",
8219
+ "@tscircuit/math-utils": "^0.0.18",
8218
8220
  "@tscircuit/props": "^0.0.178",
8219
8221
  "@tscircuit/schematic-autolayout": "^0.0.6",
8220
8222
  "circuit-json-to-connectivity-map": "^0.0.22",
8221
8223
  "circuit-json": "0.0.170",
8224
+ "schematic-symbols": "^0.0.132"
8225
+ },
8226
+ peerDependencies: {
8227
+ typescript: "^5.0.0",
8228
+ "@tscircuit/footprinter": "*",
8229
+ "@tscircuit/capacity-autorouter": "*",
8230
+ "@tscircuit/checks": "*",
8231
+ "@tscircuit/circuit-json-util": "*",
8232
+ "@tscircuit/infgrid-ijump-astar": "*",
8233
+ "@tscircuit/math-utils": "*",
8234
+ "@tscircuit/props": "*",
8235
+ "@tscircuit/schematic-autolayout": "*",
8236
+ "circuit-json-to-connectivity-map": "*",
8237
+ "circuit-json": "*",
8238
+ "schematic-symbols": "*"
8239
+ },
8240
+ dependencies: {
8241
+ "@lume/kiwi": "^0.4.3",
8222
8242
  "css-select": "^5.1.0",
8223
8243
  "format-si-unit": "^0.0.3",
8224
8244
  nanoid: "^5.0.7",
8225
8245
  "performance-now": "^2.1.0",
8226
8246
  "react-reconciler": "^0.31.0",
8227
8247
  "react-reconciler-18": "npm:react-reconciler@0.29.2",
8228
- "schematic-symbols": "^0.0.132",
8229
8248
  "transformation-matrix": "^2.16.1",
8230
8249
  zod: "^3.23.8"
8231
8250
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tscircuit/core",
3
3
  "type": "module",
4
- "version": "0.0.398",
4
+ "version": "0.0.400",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",
@@ -46,30 +46,40 @@
46
46
  "react": "^19.0.0",
47
47
  "react-dom": "^19.0.0",
48
48
  "ts-expect": "^1.3.0",
49
- "tsup": "^8.2.4"
50
- },
51
- "peerDependencies": {
52
- "@tscircuit/footprinter": "*",
53
- "typescript": "^5.0.0"
54
- },
55
- "dependencies": {
56
- "@lume/kiwi": "^0.4.3",
49
+ "tsup": "^8.2.4",
57
50
  "@tscircuit/capacity-autorouter": "^0.0.52",
58
51
  "@tscircuit/checks": "^0.0.46",
59
52
  "@tscircuit/circuit-json-util": "^0.0.47",
60
53
  "@tscircuit/infgrid-ijump-astar": "^0.0.33",
61
- "@tscircuit/math-utils": "^0.0.14",
54
+ "@tscircuit/math-utils": "^0.0.18",
62
55
  "@tscircuit/props": "^0.0.178",
63
56
  "@tscircuit/schematic-autolayout": "^0.0.6",
64
57
  "circuit-json-to-connectivity-map": "^0.0.22",
65
58
  "circuit-json": "0.0.170",
59
+ "schematic-symbols": "^0.0.132"
60
+ },
61
+ "peerDependencies": {
62
+ "typescript": "^5.0.0",
63
+ "@tscircuit/footprinter": "*",
64
+ "@tscircuit/capacity-autorouter": "*",
65
+ "@tscircuit/checks": "*",
66
+ "@tscircuit/circuit-json-util": "*",
67
+ "@tscircuit/infgrid-ijump-astar": "*",
68
+ "@tscircuit/math-utils": "*",
69
+ "@tscircuit/props": "*",
70
+ "@tscircuit/schematic-autolayout": "*",
71
+ "circuit-json-to-connectivity-map": "*",
72
+ "circuit-json": "*",
73
+ "schematic-symbols": "*"
74
+ },
75
+ "dependencies": {
76
+ "@lume/kiwi": "^0.4.3",
66
77
  "css-select": "^5.1.0",
67
78
  "format-si-unit": "^0.0.3",
68
79
  "nanoid": "^5.0.7",
69
80
  "performance-now": "^2.1.0",
70
81
  "react-reconciler": "^0.31.0",
71
82
  "react-reconciler-18": "npm:react-reconciler@0.29.2",
72
- "schematic-symbols": "^0.0.132",
73
83
  "transformation-matrix": "^2.16.1",
74
84
  "zod": "^3.23.8"
75
85
  }