@tscircuit/core 0.0.494 → 0.0.496

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 +12 -3
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -5199,6 +5199,14 @@ searched component ${targetComponent.getString()}, which has ports: ${targetComp
5199
5199
  const connectedNetLabel = this.getSubcircuit().selectAll("netlabel").find((nl) => {
5200
5200
  const conn = nl._parsedProps.connection ?? nl._parsedProps.connectsTo;
5201
5201
  if (!conn) return false;
5202
+ if (Array.isArray(conn)) {
5203
+ return conn.some((selector) => {
5204
+ const targetPort2 = this.getSubcircuit().selectOne(selector, {
5205
+ port: true
5206
+ });
5207
+ return targetPort2 === port;
5208
+ });
5209
+ }
5202
5210
  const targetPort = this.getSubcircuit().selectOne(conn, {
5203
5211
  port: true
5204
5212
  });
@@ -10326,7 +10334,7 @@ import { identity as identity4 } from "transformation-matrix";
10326
10334
  var package_default = {
10327
10335
  name: "@tscircuit/core",
10328
10336
  type: "module",
10329
- version: "0.0.493",
10337
+ version: "0.0.495",
10330
10338
  types: "dist/index.d.ts",
10331
10339
  main: "dist/index.js",
10332
10340
  module: "dist/index.js",
@@ -10358,7 +10366,7 @@ var package_default = {
10358
10366
  "@tscircuit/layout": "^0.0.28",
10359
10367
  "@tscircuit/log-soup": "^1.0.2",
10360
10368
  "@tscircuit/math-utils": "^0.0.18",
10361
- "@tscircuit/props": "^0.0.236",
10369
+ "@tscircuit/props": "^0.0.237",
10362
10370
  "@tscircuit/schematic-autolayout": "^0.0.6",
10363
10371
  "@tscircuit/schematic-match-adapt": "^0.0.16",
10364
10372
  "@tscircuit/simple-3d-svg": "^0.0.6",
@@ -10766,7 +10774,8 @@ var sel = new Proxy(
10766
10774
  {
10767
10775
  get: (_3, pinOrSubComponentName) => {
10768
10776
  const pinResult = `.${prop1} > .${pinOrSubComponentName}`;
10769
- if (prop1.startsWith("U")) {
10777
+ const chipPrefixes = ["U", "J", "CN"];
10778
+ if (chipPrefixes.some((p) => prop1.startsWith(p))) {
10770
10779
  return pinResult;
10771
10780
  }
10772
10781
  return new Proxy(new String(pinResult), {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tscircuit/core",
3
3
  "type": "module",
4
- "version": "0.0.494",
4
+ "version": "0.0.496",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",
@@ -33,7 +33,7 @@
33
33
  "@tscircuit/layout": "^0.0.28",
34
34
  "@tscircuit/log-soup": "^1.0.2",
35
35
  "@tscircuit/math-utils": "^0.0.18",
36
- "@tscircuit/props": "^0.0.236",
36
+ "@tscircuit/props": "^0.0.237",
37
37
  "@tscircuit/schematic-autolayout": "^0.0.6",
38
38
  "@tscircuit/schematic-match-adapt": "^0.0.16",
39
39
  "@tscircuit/simple-3d-svg": "^0.0.6",