@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.
- package/dist/index.js +23 -26
- 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
|
-
|
|
17864
|
-
|
|
17865
|
-
|
|
17866
|
-
|
|
17867
|
-
|
|
17868
|
-
|
|
17869
|
-
|
|
17870
|
-
|
|
17871
|
-
|
|
17872
|
-
|
|
17873
|
-
|
|
17874
|
-
|
|
17875
|
-
|
|
17876
|
-
|
|
17877
|
-
|
|
17878
|
-
|
|
17879
|
-
const
|
|
17880
|
-
|
|
17881
|
-
|
|
17882
|
-
|
|
17883
|
-
|
|
17884
|
-
|
|
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.
|
|
118548
|
+
version: "0.0.2141",
|
|
118552
118549
|
types: "dist/index.d.ts",
|
|
118553
118550
|
main: "dist/index.js",
|
|
118554
118551
|
module: "dist/index.js",
|