@tscircuit/core 0.0.426 → 0.0.427

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 +7 -5
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -7498,7 +7498,7 @@ var Led = class extends NormalComponent {
7498
7498
  componentName: "Led",
7499
7499
  schematicSymbolName: this.props.symbolName ?? "led",
7500
7500
  zodProps: ledProps,
7501
- sourceFtype: "simple_diode"
7501
+ sourceFtype: "simple_led"
7502
7502
  };
7503
7503
  }
7504
7504
  initPorts() {
@@ -7513,8 +7513,10 @@ var Led = class extends NormalComponent {
7513
7513
  const { db } = this.root;
7514
7514
  const { _parsedProps: props } = this;
7515
7515
  const source_component = db.source_component.insert({
7516
- ftype: "simple_diode",
7516
+ ftype: "simple_led",
7517
7517
  name: props.name,
7518
+ wave_length: props.wavelength,
7519
+ color: props.color,
7518
7520
  // @ts-ignore
7519
7521
  manufacturer_part_number: props.manufacturerPartNumber ?? props.mfn,
7520
7522
  supplier_part_numbers: props.supplierPartNumbers,
@@ -8604,7 +8606,7 @@ import { identity as identity4 } from "transformation-matrix";
8604
8606
  var package_default = {
8605
8607
  name: "@tscircuit/core",
8606
8608
  type: "module",
8607
- version: "0.0.425",
8609
+ version: "0.0.426",
8608
8610
  types: "dist/index.d.ts",
8609
8611
  main: "dist/index.js",
8610
8612
  module: "dist/index.js",
@@ -8636,7 +8638,7 @@ var package_default = {
8636
8638
  "@tscircuit/layout": "^0.0.28",
8637
8639
  "@tscircuit/log-soup": "^1.0.2",
8638
8640
  "@tscircuit/math-utils": "^0.0.18",
8639
- "@tscircuit/props": "^0.0.190",
8641
+ "@tscircuit/props": "^0.0.193",
8640
8642
  "@tscircuit/schematic-autolayout": "^0.0.6",
8641
8643
  "@types/bun": "latest",
8642
8644
  "@types/debug": "^4.1.12",
@@ -8645,7 +8647,7 @@ var package_default = {
8645
8647
  "@types/react-reconciler": "^0.28.9",
8646
8648
  "bun-match-svg": "0.0.8",
8647
8649
  "chokidar-cli": "^3.0.0",
8648
- "circuit-json": "^0.0.186",
8650
+ "circuit-json": "^0.0.190",
8649
8651
  "circuit-json-to-connectivity-map": "^0.0.22",
8650
8652
  "circuit-json-to-simple-3d": "^0.0.2",
8651
8653
  "circuit-to-svg": "^0.0.127",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tscircuit/core",
3
3
  "type": "module",
4
- "version": "0.0.426",
4
+ "version": "0.0.427",
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.190",
36
+ "@tscircuit/props": "^0.0.193",
37
37
  "@tscircuit/schematic-autolayout": "^0.0.6",
38
38
  "@types/bun": "latest",
39
39
  "@types/debug": "^4.1.12",
@@ -42,7 +42,7 @@
42
42
  "@types/react-reconciler": "^0.28.9",
43
43
  "bun-match-svg": "0.0.8",
44
44
  "chokidar-cli": "^3.0.0",
45
- "circuit-json": "^0.0.186",
45
+ "circuit-json": "^0.0.190",
46
46
  "circuit-json-to-connectivity-map": "^0.0.22",
47
47
  "circuit-json-to-simple-3d": "^0.0.2",
48
48
  "circuit-to-svg": "^0.0.127",