@tscircuit/core 0.0.597 → 0.0.599

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 +6 -6
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -3101,8 +3101,8 @@ var Port = class extends PrimitiveComponent2 {
3101
3101
  const { _parsedProps: props } = this;
3102
3102
  return Array.from(
3103
3103
  /* @__PURE__ */ new Set([
3104
- ...props.aliases ?? [],
3105
3104
  ...props.name ? [props.name] : [],
3105
+ ...props.aliases ?? [],
3106
3106
  ...typeof props.pinNumber === "number" ? [`pin${props.pinNumber}`, props.pinNumber.toString()] : [],
3107
3107
  ...this.externallyAddedAliases ?? []
3108
3108
  ])
@@ -3245,7 +3245,7 @@ var Port = class extends PrimitiveComponent2 {
3245
3245
  if (showPinAliases && labelHints.length > 0) {
3246
3246
  bestDisplayPinLabel = labelHints.join("/");
3247
3247
  } else if (labelHints.length > 0) {
3248
- bestDisplayPinLabel = labelHints[labelHints.length - 1];
3248
+ bestDisplayPinLabel = labelHints[0];
3249
3249
  }
3250
3250
  const schematic_port = db.schematic_port.insert({
3251
3251
  schematic_component_id: this.parent?.schematic_component_id,
@@ -8196,7 +8196,7 @@ var Group_doInitialPcbLayoutFlex = (group) => {
8196
8196
  const justify = props.pcbJustifyContent ?? props.justifyContent;
8197
8197
  const align = props.pcbAlignItems ?? props.alignItems;
8198
8198
  const modifiedCircuitJson = layoutCircuitJsonWithFlex(circuitJson, {
8199
- justifyContent: justify === "start" ? "flex-start" : justify === "end" ? "flex-end" : justify === "stretch" ? "space-between" : justify,
8199
+ justifyContent: justify === "start" ? "flex-start" : justify === "end" ? "flex-end" : justify === "stretch" ? "space-between" : justify ?? "space-between",
8200
8200
  alignItems: align === "start" ? "flex-start" : align === "end" ? "flex-end" : align ?? "center"
8201
8201
  });
8202
8202
  const pcbSmtPads = db.pcb_smtpad.list();
@@ -11264,7 +11264,7 @@ import { identity as identity5 } from "transformation-matrix";
11264
11264
  var package_default = {
11265
11265
  name: "@tscircuit/core",
11266
11266
  type: "module",
11267
- version: "0.0.596",
11267
+ version: "0.0.598",
11268
11268
  types: "dist/index.d.ts",
11269
11269
  main: "dist/index.js",
11270
11270
  module: "dist/index.js",
@@ -11289,8 +11289,8 @@ var package_default = {
11289
11289
  "@biomejs/biome": "^1.8.3",
11290
11290
  "@tscircuit/capacity-autorouter": "^0.0.100",
11291
11291
  "@tscircuit/checks": "^0.0.56",
11292
- "@tscircuit/circuit-json-flex": "^0.0.1",
11293
- "@tscircuit/circuit-json-util": "^0.0.60",
11292
+ "@tscircuit/circuit-json-flex": "^0.0.2",
11293
+ "@tscircuit/circuit-json-util": "^0.0.61",
11294
11294
  "@tscircuit/footprinter": "^0.0.204",
11295
11295
  "@tscircuit/import-snippet": "^0.0.4",
11296
11296
  "@tscircuit/infgrid-ijump-astar": "^0.0.33",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tscircuit/core",
3
3
  "type": "module",
4
- "version": "0.0.597",
4
+ "version": "0.0.599",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",
@@ -26,8 +26,8 @@
26
26
  "@biomejs/biome": "^1.8.3",
27
27
  "@tscircuit/capacity-autorouter": "^0.0.100",
28
28
  "@tscircuit/checks": "^0.0.56",
29
- "@tscircuit/circuit-json-flex": "^0.0.1",
30
- "@tscircuit/circuit-json-util": "^0.0.60",
29
+ "@tscircuit/circuit-json-flex": "^0.0.2",
30
+ "@tscircuit/circuit-json-util": "^0.0.61",
31
31
  "@tscircuit/footprinter": "^0.0.204",
32
32
  "@tscircuit/import-snippet": "^0.0.4",
33
33
  "@tscircuit/infgrid-ijump-astar": "^0.0.33",