@tscircuit/core 0.0.1642 → 0.0.1644

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 (2) hide show
  1. package/dist/index.js +10 -2
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -10461,6 +10461,12 @@ var Port = class extends PrimitiveComponent2 {
10461
10461
  _getGlobalSchematicPositionBeforeLayout() {
10462
10462
  const { schX, schY } = this._parsedProps;
10463
10463
  if (schX !== void 0 && schY !== void 0) {
10464
+ if (this._getSymbolAncestor()) {
10465
+ return applyToPoint23(this.computeSchematicGlobalTransform(), {
10466
+ x: 0,
10467
+ y: 0
10468
+ });
10469
+ }
10464
10470
  return { x: schX, y: schY };
10465
10471
  }
10466
10472
  const parentNormalComponent = this.getParentNormalComponent();
@@ -14456,6 +14462,8 @@ var NormalComponent3 = class extends PrimitiveComponent2 {
14456
14462
  *
14457
14463
  */
14458
14464
  initPorts(opts = {}) {
14465
+ const hasPendingReactSymbol = isValidElement(this.props.symbol) && !this.children.some((child) => child.componentName === "Symbol");
14466
+ if (hasPendingReactSymbol) return;
14459
14467
  this._inferredInternallyConnectedPinNames = [];
14460
14468
  const { config } = this;
14461
14469
  const portsToCreate = [];
@@ -31453,7 +31461,7 @@ function Group_getRoutingPhasePlans(group) {
31453
31461
  var package_default = {
31454
31462
  name: "@tscircuit/core",
31455
31463
  type: "module",
31456
- version: "0.0.1641",
31464
+ version: "0.0.1643",
31457
31465
  types: "dist/index.d.ts",
31458
31466
  main: "dist/index.js",
31459
31467
  module: "dist/index.js",
@@ -31487,7 +31495,7 @@ var package_default = {
31487
31495
  "@tsci/tscircuit.ti": "github:tscircuit/ti#57e314be4b2b06bc546d4def7453e619604d1157",
31488
31496
  "@tscircuit/alphabet": "0.0.25",
31489
31497
  "@tscircuit/breakout-point-solver": "github:tscircuit/breakout-point-solver#bac9629",
31490
- "@tscircuit/capacity-autorouter": "^0.0.782",
31498
+ "@tscircuit/capacity-autorouter": "^0.0.783",
31491
31499
  "@tscircuit/checks": "0.0.152",
31492
31500
  "@tscircuit/circuit-json-util": "^0.0.106",
31493
31501
  "@tscircuit/common": "^0.0.20",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tscircuit/core",
3
3
  "type": "module",
4
- "version": "0.0.1642",
4
+ "version": "0.0.1644",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",
@@ -35,7 +35,7 @@
35
35
  "@tsci/tscircuit.ti": "github:tscircuit/ti#57e314be4b2b06bc546d4def7453e619604d1157",
36
36
  "@tscircuit/alphabet": "0.0.25",
37
37
  "@tscircuit/breakout-point-solver": "github:tscircuit/breakout-point-solver#bac9629",
38
- "@tscircuit/capacity-autorouter": "^0.0.782",
38
+ "@tscircuit/capacity-autorouter": "^0.0.783",
39
39
  "@tscircuit/checks": "0.0.152",
40
40
  "@tscircuit/circuit-json-util": "^0.0.106",
41
41
  "@tscircuit/common": "^0.0.20",