@tscircuit/core 0.0.319 → 0.0.321

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.d.ts CHANGED
@@ -10761,7 +10761,8 @@ type TransistorSel = Record<`Q${Nums40}`, Record<TransistorPinNames, string>>;
10761
10761
  type JumperSel = Record<`J${Nums40}`, Record<PinNumbers100, string>>;
10762
10762
  type ChipSel = Record<`U${Nums40}`, Record<CommonPinNames, string>>;
10763
10763
  type NetSel = Record<"net", Record<"VCC" | "GND" | "VDD", string>>;
10764
- type Sel = NonPolarizedSel & PolarizedSel & TransistorSel & JumperSel & ChipSel & SwSel & NetSel;
10764
+ type ConnectionSel = Record<`CN${Nums40}`, Record<CommonPinNames, string>>;
10765
+ type Sel = NonPolarizedSel & PolarizedSel & TransistorSel & JumperSel & ChipSel & SwSel & NetSel & ConnectionSel;
10765
10766
  declare const sel: Sel;
10766
10767
 
10767
10768
  interface TscircuitElements {
package/dist/index.js CHANGED
@@ -6660,11 +6660,12 @@ var Switch = class extends NormalComponent {
6660
6660
  }
6661
6661
  get config() {
6662
6662
  const switchType = this._getSwitchType();
6663
+ const { isNormallyClosed } = this._parsedProps ?? {};
6663
6664
  const baseSymbolNameMap = {
6664
- spst: "SPST_switch",
6665
- spdt: "SPDT_switch",
6666
- dpst: "dpst_switch",
6667
- dpdt: "dpdt_switch"
6665
+ spst: isNormallyClosed ? "spst_normally_closed_switch" : "SPST_switch",
6666
+ spdt: isNormallyClosed ? "spdt_normally_closed_switch" : "SPDT_switch",
6667
+ dpst: isNormallyClosed ? "dpst_normally_closed_switch" : "dpst_switch",
6668
+ dpdt: isNormallyClosed ? "dpdt_normally_closed_switch" : "dpdt_switch"
6668
6669
  };
6669
6670
  const symbolName = baseSymbolNameMap[switchType] ?? "SPST_switch";
6670
6671
  return {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tscircuit/core",
3
3
  "type": "module",
4
- "version": "0.0.319",
4
+ "version": "0.0.321",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",
@@ -64,7 +64,7 @@
64
64
  "performance-now": "^2.1.0",
65
65
  "react-reconciler": "^0.31.0",
66
66
  "react-reconciler-18": "npm:react-reconciler@0.29.2",
67
- "schematic-symbols": "^0.0.119",
67
+ "schematic-symbols": "^0.0.121",
68
68
  "transformation-matrix": "^2.16.1",
69
69
  "zod": "^3.23.8"
70
70
  }