@tscircuit/core 0.0.983 → 0.0.984

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 +55 -29
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -8813,7 +8813,8 @@ var NormalComponent3 = class extends PrimitiveComponent2 {
8813
8813
  ftype,
8814
8814
  name: this.name,
8815
8815
  manufacturer_part_number: props.manufacturerPartNumber ?? props.mfn,
8816
- supplier_part_numbers: props.supplierPartNumbers
8816
+ supplier_part_numbers: props.supplierPartNumbers,
8817
+ display_name: props.displayName
8817
8818
  });
8818
8819
  this.source_component_id = source_component.source_component_id;
8819
8820
  }
@@ -15360,7 +15361,8 @@ var Capacitor = class extends NormalComponent3 {
15360
15361
  max_voltage_rating: props.maxVoltageRating,
15361
15362
  max_decoupling_trace_length: props.maxDecouplingTraceLength,
15362
15363
  display_capacitance: this._getSchematicSymbolDisplayValue(),
15363
- are_pins_interchangeable: !props.polarized
15364
+ are_pins_interchangeable: !props.polarized,
15365
+ display_name: props.displayName
15364
15366
  });
15365
15367
  this.source_component_id = source_component.source_component_id;
15366
15368
  }
@@ -15495,7 +15497,8 @@ var Chip = class extends NormalComponent3 {
15495
15497
  ftype: "simple_chip",
15496
15498
  name: this.name,
15497
15499
  manufacturer_part_number: props.manufacturerPartNumber,
15498
- supplier_part_numbers: props.supplierPartNumbers
15500
+ supplier_part_numbers: props.supplierPartNumbers,
15501
+ display_name: props.displayName
15499
15502
  });
15500
15503
  this.source_component_id = source_component.source_component_id;
15501
15504
  }
@@ -15705,7 +15708,8 @@ var Diode = class extends NormalComponent3 {
15705
15708
  // @ts-ignore
15706
15709
  manufacturer_part_number: props.manufacturerPartNumber ?? props.mfn,
15707
15710
  supplier_part_numbers: props.supplierPartNumbers,
15708
- are_pins_interchangeable: false
15711
+ are_pins_interchangeable: false,
15712
+ display_name: props.displayName
15709
15713
  });
15710
15714
  this.source_component_id = source_component.source_component_id;
15711
15715
  }
@@ -15799,7 +15803,8 @@ var Inductor = class extends NormalComponent3 {
15799
15803
  inductance: this.props.inductance,
15800
15804
  display_inductance: this._getSchematicSymbolDisplayValue(),
15801
15805
  supplier_part_numbers: props.supplierPartNumbers,
15802
- are_pins_interchangeable: true
15806
+ are_pins_interchangeable: true,
15807
+ display_name: props.displayName
15803
15808
  });
15804
15809
  this.source_component_id = source_component.source_component_id;
15805
15810
  }
@@ -15945,7 +15950,8 @@ var Resistor = class extends NormalComponent3 {
15945
15950
  supplier_part_numbers: props.supplierPartNumbers,
15946
15951
  resistance: props.resistance,
15947
15952
  display_resistance: this._getSchematicSymbolDisplayValue(),
15948
- are_pins_interchangeable: true
15953
+ are_pins_interchangeable: true,
15954
+ display_name: props.displayName
15949
15955
  });
15950
15956
  this.source_component_id = source_component.source_component_id;
15951
15957
  }
@@ -16085,7 +16091,8 @@ var Transistor = class extends NormalComponent3 {
16085
16091
  const source_component = db.source_component.insert({
16086
16092
  ftype: "simple_transistor",
16087
16093
  name: this.name,
16088
- transistor_type: props.type
16094
+ transistor_type: props.type,
16095
+ display_name: props.displayName
16089
16096
  });
16090
16097
  this.source_component_id = source_component.source_component_id;
16091
16098
  }
@@ -17188,7 +17195,8 @@ var Pinout = class extends Chip {
17188
17195
  ftype: "simple_pinout",
17189
17196
  name: this.name,
17190
17197
  manufacturer_part_number: props.manufacturerPartNumber,
17191
- supplier_part_numbers: props.supplierPartNumbers
17198
+ supplier_part_numbers: props.supplierPartNumbers,
17199
+ display_name: props.displayName
17192
17200
  });
17193
17201
  this.source_component_id = source_component.source_component_id;
17194
17202
  }
@@ -17224,7 +17232,8 @@ var Fuse = class extends NormalComponent3 {
17224
17232
  current_rating_amps: currentRating,
17225
17233
  voltage_rating_volts: voltageRating,
17226
17234
  display_current_rating: `${formatSiUnit4(currentRating)}A`,
17227
- display_voltage_rating: `${formatSiUnit4(voltageRating)}V`
17235
+ display_voltage_rating: `${formatSiUnit4(voltageRating)}V`,
17236
+ display_name: props.displayName
17228
17237
  });
17229
17238
  this.source_component_id = source_component.source_component_id;
17230
17239
  }
@@ -17262,7 +17271,8 @@ var Jumper = class extends NormalComponent3 {
17262
17271
  name: this.name,
17263
17272
  manufacturer_part_number: props.manufacturerPartNumber,
17264
17273
  supplier_part_numbers: props.supplierPartNumbers,
17265
- are_pins_interchangeable: true
17274
+ are_pins_interchangeable: true,
17275
+ display_name: props.displayName
17266
17276
  });
17267
17277
  this.source_component_id = source_component.source_component_id;
17268
17278
  }
@@ -17371,7 +17381,8 @@ var Interconnect = class extends NormalComponent3 {
17371
17381
  const source_component = db.source_component.insert({
17372
17382
  ftype: "interconnect",
17373
17383
  name: this.name,
17374
- are_pins_interchangeable: true
17384
+ are_pins_interchangeable: true,
17385
+ display_name: this._parsedProps.displayName
17375
17386
  });
17376
17387
  this.source_component_id = source_component.source_component_id;
17377
17388
  }
@@ -17483,7 +17494,8 @@ var SolderJumper = class extends NormalComponent3 {
17483
17494
  name: this.name,
17484
17495
  manufacturer_part_number: props.manufacturerPartNumber,
17485
17496
  supplier_part_numbers: props.supplierPartNumbers,
17486
- are_pins_interchangeable: true
17497
+ are_pins_interchangeable: true,
17498
+ display_name: props.displayName
17487
17499
  });
17488
17500
  this.source_component_id = source_component.source_component_id;
17489
17501
  }
@@ -17599,7 +17611,8 @@ var Led = class extends NormalComponent3 {
17599
17611
  // @ts-ignore
17600
17612
  manufacturer_part_number: props.manufacturerPartNumber ?? props.mfn,
17601
17613
  supplier_part_numbers: props.supplierPartNumbers,
17602
- are_pins_interchangeable: false
17614
+ are_pins_interchangeable: false,
17615
+ display_name: props.displayName
17603
17616
  });
17604
17617
  this.source_component_id = source_component.source_component_id;
17605
17618
  }
@@ -17638,7 +17651,8 @@ var PowerSource = class extends NormalComponent3 {
17638
17651
  name: this.name,
17639
17652
  voltage: props.voltage,
17640
17653
  supplier_part_numbers: props.supplierPartNumbers,
17641
- are_pins_interchangeable: false
17654
+ are_pins_interchangeable: false,
17655
+ display_name: props.displayName
17642
17656
  });
17643
17657
  this.source_component_id = source_component.source_component_id;
17644
17658
  }
@@ -17704,7 +17718,8 @@ var VoltageSource = class extends NormalComponent3 {
17704
17718
  phase: props.phase,
17705
17719
  duty_cycle: props.dutyCycle,
17706
17720
  supplier_part_numbers: props.supplierPartNumbers,
17707
- are_pins_interchangeable: true
17721
+ are_pins_interchangeable: true,
17722
+ display_name: props.displayName
17708
17723
  });
17709
17724
  this.source_component_id = source_component.source_component_id;
17710
17725
  }
@@ -17789,7 +17804,8 @@ var CurrentSource = class extends NormalComponent3 {
17789
17804
  phase: props.phase,
17790
17805
  duty_cycle: props.dutyCycle,
17791
17806
  supplier_part_numbers: props.supplierPartNumbers,
17792
- are_pins_interchangeable: true
17807
+ are_pins_interchangeable: true,
17808
+ display_name: props.displayName
17793
17809
  });
17794
17810
  this.source_component_id = source_component.source_component_id;
17795
17811
  }
@@ -19532,7 +19548,8 @@ var Battery = class extends NormalComponent3 {
19532
19548
  ftype: "simple_power_source",
19533
19549
  capacity: props.capacity,
19534
19550
  supplier_part_numbers: props.supplierPartNumbers,
19535
- are_pins_interchangeable: false
19551
+ are_pins_interchangeable: false,
19552
+ display_name: props.displayName
19536
19553
  });
19537
19554
  this.source_component_id = source_component.source_component_id;
19538
19555
  }
@@ -19637,7 +19654,8 @@ var PinHeader = class extends NormalComponent3 {
19637
19654
  supplier_part_numbers: props.supplierPartNumbers,
19638
19655
  pin_count: props.pinCount,
19639
19656
  gender: props.gender,
19640
- are_pins_interchangeable: true
19657
+ are_pins_interchangeable: true,
19658
+ display_name: props.displayName
19641
19659
  });
19642
19660
  this.source_component_id = source_component.source_component_id;
19643
19661
  }
@@ -19678,7 +19696,8 @@ var Resonator = class extends NormalComponent3 {
19678
19696
  load_capacitance: props.loadCapacitance,
19679
19697
  supplier_part_numbers: props.supplierPartNumbers,
19680
19698
  pin_variant: pinVariant,
19681
- are_pins_interchangeable: pinVariant === "no_ground" || pinVariant === "ground_pin"
19699
+ are_pins_interchangeable: pinVariant === "no_ground" || pinVariant === "ground_pin",
19700
+ display_name: props.displayName
19682
19701
  });
19683
19702
  this.source_component_id = source_component.source_component_id;
19684
19703
  }
@@ -19725,7 +19744,8 @@ var Potentiometer = class extends NormalComponent3 {
19725
19744
  name: this.name,
19726
19745
  max_resistance: props.maxResistance,
19727
19746
  pin_variant: pinVariant,
19728
- are_pins_interchangeable: pinVariant === "two_pin"
19747
+ are_pins_interchangeable: pinVariant === "two_pin",
19748
+ display_name: props.displayName
19729
19749
  });
19730
19750
  this.source_component_id = source_component.source_component_id;
19731
19751
  }
@@ -19790,7 +19810,8 @@ var PushButton = class extends NormalComponent3 {
19790
19810
  name: this.name,
19791
19811
  ftype: FTYPE.simple_push_button,
19792
19812
  supplier_part_numbers: props.supplierPartNumbers,
19793
- are_pins_interchangeable: true
19813
+ are_pins_interchangeable: true,
19814
+ display_name: props.displayName
19794
19815
  });
19795
19816
  this.source_component_id = source_component.source_component_id;
19796
19817
  }
@@ -19842,7 +19863,8 @@ var Crystal = class extends NormalComponent3 {
19842
19863
  frequency: props.frequency,
19843
19864
  load_capacitance: props.loadCapacitance,
19844
19865
  pin_variant: props.pinVariant || "two_pin",
19845
- are_pins_interchangeable: (props.pinVariant || "two_pin") === "two_pin"
19866
+ are_pins_interchangeable: (props.pinVariant || "two_pin") === "two_pin",
19867
+ display_name: props.displayName
19846
19868
  });
19847
19869
  this.source_component_id = source_component.source_component_id;
19848
19870
  }
@@ -19869,7 +19891,8 @@ var Mosfet = class extends NormalComponent3 {
19869
19891
  ftype: "simple_mosfet",
19870
19892
  name: this.name,
19871
19893
  mosfet_mode: props.mosfetMode,
19872
- channel_type: props.channelType
19894
+ channel_type: props.channelType,
19895
+ display_name: props.displayName
19873
19896
  });
19874
19897
  this.source_component_id = source_component.source_component_id;
19875
19898
  }
@@ -19906,7 +19929,8 @@ var OpAmp = class extends NormalComponent3 {
19906
19929
  const source_component = db.source_component.insert({
19907
19930
  ftype: "simple_op_amp",
19908
19931
  name: this.name,
19909
- supplier_part_numbers: props.supplierPartNumbers
19932
+ supplier_part_numbers: props.supplierPartNumbers,
19933
+ display_name: props.displayName
19910
19934
  });
19911
19935
  this.source_component_id = source_component.source_component_id;
19912
19936
  }
@@ -19975,7 +19999,8 @@ var Switch = class extends NormalComponent3 {
19975
19999
  const source_component = db.source_component.insert({
19976
20000
  ftype: "simple_switch",
19977
20001
  name: this.name,
19978
- are_pins_interchangeable: this._getSwitchType() === "spst"
20002
+ are_pins_interchangeable: this._getSwitchType() === "spst",
20003
+ display_name: props?.displayName
19979
20004
  });
19980
20005
  this.source_component_id = source_component.source_component_id;
19981
20006
  }
@@ -20104,7 +20129,8 @@ var TestPoint = class extends NormalComponent3 {
20104
20129
  hole_diameter: holeDiameter,
20105
20130
  width,
20106
20131
  height,
20107
- are_pins_interchangeable: true
20132
+ are_pins_interchangeable: true,
20133
+ display_name: props.displayName
20108
20134
  });
20109
20135
  this.source_component_id = source_component.source_component_id;
20110
20136
  }
@@ -20973,7 +20999,7 @@ import { identity as identity5 } from "transformation-matrix";
20973
20999
  var package_default = {
20974
21000
  name: "@tscircuit/core",
20975
21001
  type: "module",
20976
- version: "0.0.982",
21002
+ version: "0.0.983",
20977
21003
  types: "dist/index.d.ts",
20978
21004
  main: "dist/index.js",
20979
21005
  module: "dist/index.js",
@@ -21029,13 +21055,13 @@ var package_default = {
21029
21055
  "bun-match-svg": "0.0.12",
21030
21056
  "calculate-elbow": "^0.0.12",
21031
21057
  "chokidar-cli": "^3.0.0",
21032
- "circuit-json": "^0.0.350",
21058
+ "circuit-json": "^0.0.357",
21033
21059
  "circuit-json-to-bpc": "^0.0.13",
21034
21060
  "circuit-json-to-connectivity-map": "^0.0.23",
21035
21061
  "circuit-json-to-gltf": "^0.0.31",
21036
21062
  "circuit-json-to-simple-3d": "^0.0.9",
21037
21063
  "circuit-json-to-spice": "^0.0.33",
21038
- "circuit-to-svg": "^0.0.314",
21064
+ "circuit-to-svg": "^0.0.316",
21039
21065
  concurrently: "^9.1.2",
21040
21066
  "connectivity-map": "^1.0.0",
21041
21067
  debug: "^4.3.6",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tscircuit/core",
3
3
  "type": "module",
4
- "version": "0.0.983",
4
+ "version": "0.0.984",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",
@@ -57,13 +57,13 @@
57
57
  "bun-match-svg": "0.0.12",
58
58
  "calculate-elbow": "^0.0.12",
59
59
  "chokidar-cli": "^3.0.0",
60
- "circuit-json": "^0.0.350",
60
+ "circuit-json": "^0.0.357",
61
61
  "circuit-json-to-bpc": "^0.0.13",
62
62
  "circuit-json-to-connectivity-map": "^0.0.23",
63
63
  "circuit-json-to-gltf": "^0.0.31",
64
64
  "circuit-json-to-simple-3d": "^0.0.9",
65
65
  "circuit-json-to-spice": "^0.0.33",
66
- "circuit-to-svg": "^0.0.314",
66
+ "circuit-to-svg": "^0.0.316",
67
67
  "concurrently": "^9.1.2",
68
68
  "connectivity-map": "^1.0.0",
69
69
  "debug": "^4.3.6",