@tscircuit/core 0.0.440 → 0.0.441

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 +8 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -476,7 +476,13 @@ var cssSelectPrimitiveComponentAdapterOnlySubcircuits = {
476
476
 
477
477
  // lib/components/base-components/PrimitiveComponent/preprocessSelector.ts
478
478
  var preprocessSelector = (selector) => {
479
- return selector.replace(/ pin/g, " port").replace(/ subcircuit\./g, " group[isSubcircuit=true]").replace(/([^ ])\>([^ ])/g, "$1 > $2").trim();
479
+ return selector.replace(/ pin/g, " port").replace(/ subcircuit\./g, " group[isSubcircuit=true]").replace(/([^ ])\>([^ ])/g, "$1 > $2").replace(
480
+ /(^|[ >])(?!pin\.)(?!port\.)(?!net\.)([A-Z][A-Za-z0-9_-]*)\.([A-Za-z0-9_-]+)/g,
481
+ (_, sep, name, pin) => {
482
+ const pinPart = /^\d+$/.test(pin) ? `pin${pin}` : pin;
483
+ return `${sep}.${name} > .${pinPart}`;
484
+ }
485
+ ).trim();
480
486
  };
481
487
 
482
488
  // lib/components/base-components/PrimitiveComponent/PrimitiveComponent.ts
@@ -9381,7 +9387,7 @@ import { identity as identity4 } from "transformation-matrix";
9381
9387
  var package_default = {
9382
9388
  name: "@tscircuit/core",
9383
9389
  type: "module",
9384
- version: "0.0.439",
9390
+ version: "0.0.440",
9385
9391
  types: "dist/index.d.ts",
9386
9392
  main: "dist/index.js",
9387
9393
  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.440",
4
+ "version": "0.0.441",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",