@tscircuit/core 0.0.2023 → 0.0.2024

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 -9
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -16961,16 +16961,17 @@ var NormalComponent = class extends PrimitiveComponent2 {
16961
16961
  primaryPortOpts
16962
16962
  );
16963
16963
  }
16964
- const newPorts = [];
16965
16964
  if (!footprint) {
16966
- for (const child of this.children) {
16967
- if (child.props.portHints && child.isPcbPrimitive) {
16968
- const port = getPortFromHints(child.props.portHints);
16969
- if (port) newPorts.push(port);
16970
- }
16971
- }
16965
+ return getPrimaryPortsFromPortHintGroups(
16966
+ this.children.filter((child) => child.props.portHints && child.isPcbPrimitive).map((child) => ({
16967
+ hints: child.props.portHints,
16968
+ originDescription: "direct PCB primitive",
16969
+ component: child
16970
+ })),
16971
+ { ...primaryPortOpts, allowImplicitPinNumbers: false }
16972
+ );
16972
16973
  }
16973
- return newPorts;
16974
+ return [];
16974
16975
  }
16975
16976
  _queueInvalidFootprintPropMessage(footprint, error) {
16976
16977
  const rawErrorMessage = error instanceof Error ? error.message : String(error);
@@ -64552,7 +64553,7 @@ function Group_getRoutingPhasePlans(group) {
64552
64553
  var package_default = {
64553
64554
  name: "@tscircuit/core",
64554
64555
  type: "module",
64555
- version: "0.0.2022",
64556
+ version: "0.0.2023",
64556
64557
  types: "dist/index.d.ts",
64557
64558
  main: "dist/index.js",
64558
64559
  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.2023",
4
+ "version": "0.0.2024",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",