@tscircuit/core 0.0.2141 → 0.0.2142

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 +23 -26
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -17860,31 +17860,28 @@ var NormalComponent = class extends PrimitiveComponent2 {
17860
17860
  }
17861
17861
  this.addAll(portsToCreate);
17862
17862
  }
17863
- if (!this._getSchematicPortArrangement()) {
17864
- const hasReactSymbol = isValidElement(this.props.symbol);
17865
- const hasCircuitJsonSymbolProp = isCircuitJsonSymbol(this.props.symbol);
17866
- if (hasReactSymbol || hasCircuitJsonSymbolProp) {
17867
- } else {
17868
- const portsFromFootprint = this.getPortsFromFootprint({
17869
- ...opts,
17870
- allowImplicitPinNumbers: !pinLabelsFromProps,
17871
- collectInferredInternallyConnectedPins: true
17872
- });
17873
- const existingPorts = this._getAllPortsFromChildren();
17874
- for (const port of portsFromFootprint) {
17875
- if (!port._isPrimaryPort) {
17876
- portsToCreate.push(port);
17877
- continue;
17878
- }
17879
- const matchingPort = existingPorts.find((p2) => canMergePortDefinitions(p2, port)) ?? portsToCreate.find((p2) => canMergePortDefinitions(p2, port));
17880
- if (matchingPort) {
17881
- const mergedAliases = port.getNameAndAliases().filter(
17882
- (alias) => !matchingPort.getNameAndAliases().includes(alias)
17883
- );
17884
- matchingPort.externallyAddedAliases.push(...mergedAliases);
17885
- } else {
17886
- portsToCreate.push(port);
17887
- }
17863
+ const hasReactSymbol = isValidElement(this.props.symbol);
17864
+ const hasCircuitJsonSymbolProp = isCircuitJsonSymbol(this.props.symbol);
17865
+ if (!hasReactSymbol && !hasCircuitJsonSymbolProp) {
17866
+ const portsFromFootprint = this.getPortsFromFootprint({
17867
+ ...opts,
17868
+ allowImplicitPinNumbers: !pinLabelsFromProps,
17869
+ collectInferredInternallyConnectedPins: true
17870
+ });
17871
+ const existingPorts = this._getAllPortsFromChildren();
17872
+ for (const port of portsFromFootprint) {
17873
+ if (!port._isPrimaryPort) {
17874
+ portsToCreate.push(port);
17875
+ continue;
17876
+ }
17877
+ const matchingPort = existingPorts.find((p2) => canMergePortDefinitions(p2, port)) ?? portsToCreate.find((p2) => canMergePortDefinitions(p2, port));
17878
+ if (matchingPort) {
17879
+ const mergedAliases = port.getNameAndAliases().filter(
17880
+ (alias) => !matchingPort.getNameAndAliases().includes(alias)
17881
+ );
17882
+ matchingPort.externallyAddedAliases.push(...mergedAliases);
17883
+ } else if (!schPortArrangement) {
17884
+ portsToCreate.push(port);
17888
17885
  }
17889
17886
  }
17890
17887
  }
@@ -118548,7 +118545,7 @@ var RoutingPhasePreparationError = class extends Error {
118548
118545
  var package_default = {
118549
118546
  name: "@tscircuit/core",
118550
118547
  type: "module",
118551
- version: "0.0.2140",
118548
+ version: "0.0.2141",
118552
118549
  types: "dist/index.d.ts",
118553
118550
  main: "dist/index.js",
118554
118551
  module: "dist/index.js",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tscircuit/core",
3
3
  "type": "module",
4
- "version": "0.0.2141",
4
+ "version": "0.0.2142",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",