@tscircuit/core 0.0.320 → 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.
Files changed (2) hide show
  1. package/dist/index.js +5 -4
  2. package/package.json +2 -2
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.320",
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
  }