@tscircuit/core 0.0.403 → 0.0.405

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
@@ -1715,7 +1715,7 @@ declare class Capacitor extends NormalComponent<typeof capacitorProps, PassivePo
1715
1715
  } & {
1716
1716
  key: zod.ZodOptional<zod.ZodAny>;
1717
1717
  name: zod.ZodString;
1718
- cadModel: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodObject<zod.objectUtil.extendShape<{
1718
+ cadModel: zod.ZodOptional<zod.ZodUnion<[zod.ZodNull, zod.ZodString, zod.ZodObject<zod.objectUtil.extendShape<{
1719
1719
  rotationOffset: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodObject<{
1720
1720
  x: zod.ZodUnion<[zod.ZodNumber, zod.ZodString]>;
1721
1721
  y: zod.ZodUnion<[zod.ZodNumber, zod.ZodString]>;
@@ -2027,7 +2027,7 @@ declare class Capacitor extends NormalComponent<typeof capacitorProps, PassivePo
2027
2027
  y: number;
2028
2028
  z: number;
2029
2029
  } | undefined;
2030
- } | undefined;
2030
+ } | null | undefined;
2031
2031
  children?: any;
2032
2032
  symbolName?: string | undefined;
2033
2033
  connections?: Partial<Record<"pin1" | "pin2" | "anode" | "pos" | "cathode" | "neg", string | readonly string[] | string[]>> | undefined;
@@ -2104,7 +2104,7 @@ declare class Capacitor extends NormalComponent<typeof capacitorProps, PassivePo
2104
2104
  y: string | number;
2105
2105
  z: string | number;
2106
2106
  } | undefined;
2107
- } | undefined;
2107
+ } | null | undefined;
2108
2108
  children?: any;
2109
2109
  symbolName?: string | undefined;
2110
2110
  connections?: Partial<Record<"pin1" | "pin2" | "anode" | "pos" | "cathode" | "neg", string | readonly string[] | string[]>> | undefined;
@@ -2152,7 +2152,7 @@ declare class Chip<PinLabels extends string = never> extends NormalComponent<typ
2152
2152
  } & {
2153
2153
  key: zod.ZodOptional<zod.ZodAny>;
2154
2154
  name: zod.ZodString;
2155
- cadModel: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodObject<zod.objectUtil.extendShape<{
2155
+ cadModel: zod.ZodOptional<zod.ZodUnion<[zod.ZodNull, zod.ZodString, zod.ZodObject<zod.objectUtil.extendShape<{
2156
2156
  rotationOffset: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodObject<{
2157
2157
  x: zod.ZodUnion<[zod.ZodNumber, zod.ZodString]>;
2158
2158
  y: zod.ZodUnion<[zod.ZodNumber, zod.ZodString]>;
@@ -2688,7 +2688,7 @@ declare class Chip<PinLabels extends string = never> extends NormalComponent<typ
2688
2688
  y: number;
2689
2689
  z: number;
2690
2690
  } | undefined;
2691
- } | undefined;
2691
+ } | null | undefined;
2692
2692
  children?: any;
2693
2693
  symbolName?: string | undefined;
2694
2694
  schWidth?: number | undefined;
@@ -2828,7 +2828,7 @@ declare class Chip<PinLabels extends string = never> extends NormalComponent<typ
2828
2828
  y: string | number;
2829
2829
  z: string | number;
2830
2830
  } | undefined;
2831
- } | undefined;
2831
+ } | null | undefined;
2832
2832
  children?: any;
2833
2833
  symbolName?: string | undefined;
2834
2834
  schWidth?: string | number | undefined;
@@ -2937,7 +2937,7 @@ declare class Diode extends NormalComponent<typeof diodeProps, PolarizedPassiveP
2937
2937
  } & {
2938
2938
  key: zod.ZodOptional<zod.ZodAny>;
2939
2939
  name: zod.ZodString;
2940
- cadModel: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodObject<zod.objectUtil.extendShape<{
2940
+ cadModel: zod.ZodOptional<zod.ZodUnion<[zod.ZodNull, zod.ZodString, zod.ZodObject<zod.objectUtil.extendShape<{
2941
2941
  rotationOffset: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodObject<{
2942
2942
  x: zod.ZodUnion<[zod.ZodNumber, zod.ZodString]>;
2943
2943
  y: zod.ZodUnion<[zod.ZodNumber, zod.ZodString]>;
@@ -3244,7 +3244,7 @@ declare class Diode extends NormalComponent<typeof diodeProps, PolarizedPassiveP
3244
3244
  y: number;
3245
3245
  z: number;
3246
3246
  } | undefined;
3247
- } | undefined;
3247
+ } | null | undefined;
3248
3248
  children?: any;
3249
3249
  symbolName?: string | undefined;
3250
3250
  connections?: Partial<Record<"pin1" | "pin2" | "anode" | "pos" | "cathode" | "neg", string | readonly string[] | string[]>> | undefined;
@@ -3319,7 +3319,7 @@ declare class Diode extends NormalComponent<typeof diodeProps, PolarizedPassiveP
3319
3319
  y: string | number;
3320
3320
  z: string | number;
3321
3321
  } | undefined;
3322
- } | undefined;
3322
+ } | null | undefined;
3323
3323
  children?: any;
3324
3324
  symbolName?: string | undefined;
3325
3325
  connections?: Partial<Record<"pin1" | "pin2" | "anode" | "pos" | "cathode" | "neg", string | readonly string[] | string[]>> | undefined;
@@ -3394,7 +3394,7 @@ declare class Diode extends NormalComponent<typeof diodeProps, PolarizedPassiveP
3394
3394
  y: number;
3395
3395
  z: number;
3396
3396
  } | undefined;
3397
- } | undefined;
3397
+ } | null | undefined;
3398
3398
  children?: any;
3399
3399
  symbolName?: string | undefined;
3400
3400
  connections?: Partial<Record<"pin1" | "pin2" | "anode" | "pos" | "cathode" | "neg", string | readonly string[] | string[]>> | undefined;
@@ -3469,7 +3469,7 @@ declare class Diode extends NormalComponent<typeof diodeProps, PolarizedPassiveP
3469
3469
  y: string | number;
3470
3470
  z: string | number;
3471
3471
  } | undefined;
3472
- } | undefined;
3472
+ } | null | undefined;
3473
3473
  children?: any;
3474
3474
  symbolName?: string | undefined;
3475
3475
  connections?: Partial<Record<"pin1" | "pin2" | "anode" | "pos" | "cathode" | "neg", string | readonly string[] | string[]>> | undefined;
@@ -3549,7 +3549,7 @@ declare class Diode extends NormalComponent<typeof diodeProps, PolarizedPassiveP
3549
3549
  y: number;
3550
3550
  z: number;
3551
3551
  } | undefined;
3552
- } | undefined;
3552
+ } | null | undefined;
3553
3553
  children?: any;
3554
3554
  symbolName?: string | undefined;
3555
3555
  connections?: Partial<Record<"pin1" | "pin2" | "anode" | "pos" | "cathode" | "neg", string | readonly string[] | string[]>> | undefined;
@@ -3619,7 +3619,7 @@ declare class Diode extends NormalComponent<typeof diodeProps, PolarizedPassiveP
3619
3619
  y: string | number;
3620
3620
  z: string | number;
3621
3621
  } | undefined;
3622
- } | undefined;
3622
+ } | null | undefined;
3623
3623
  children?: any;
3624
3624
  symbolName?: string | undefined;
3625
3625
  connections?: Partial<Record<"pin1" | "pin2" | "anode" | "pos" | "cathode" | "neg", string | readonly string[] | string[]>> | undefined;
@@ -3667,7 +3667,7 @@ declare class Jumper<PinLabels extends string = never> extends NormalComponent<t
3667
3667
  } & {
3668
3668
  key: zod.ZodOptional<zod.ZodAny>;
3669
3669
  name: zod.ZodString;
3670
- cadModel: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodObject<zod.objectUtil.extendShape<{
3670
+ cadModel: zod.ZodOptional<zod.ZodUnion<[zod.ZodNull, zod.ZodString, zod.ZodObject<zod.objectUtil.extendShape<{
3671
3671
  rotationOffset: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodObject<{
3672
3672
  x: zod.ZodUnion<[zod.ZodNumber, zod.ZodString]>;
3673
3673
  y: zod.ZodUnion<[zod.ZodNumber, zod.ZodString]>;
@@ -4102,7 +4102,7 @@ declare class Jumper<PinLabels extends string = never> extends NormalComponent<t
4102
4102
  y: number;
4103
4103
  z: number;
4104
4104
  } | undefined;
4105
- } | undefined;
4105
+ } | null | undefined;
4106
4106
  children?: any;
4107
4107
  symbolName?: string | undefined;
4108
4108
  schWidth?: number | undefined;
@@ -4215,7 +4215,7 @@ declare class Jumper<PinLabels extends string = never> extends NormalComponent<t
4215
4215
  y: string | number;
4216
4216
  z: string | number;
4217
4217
  } | undefined;
4218
- } | undefined;
4218
+ } | null | undefined;
4219
4219
  children?: any;
4220
4220
  symbolName?: string | undefined;
4221
4221
  schWidth?: string | number | undefined;
@@ -4296,7 +4296,7 @@ declare class Led extends NormalComponent<typeof ledProps, PolarizedPassivePorts
4296
4296
  } & {
4297
4297
  key: zod.ZodOptional<zod.ZodAny>;
4298
4298
  name: zod.ZodString;
4299
- cadModel: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodObject<zod.objectUtil.extendShape<{
4299
+ cadModel: zod.ZodOptional<zod.ZodUnion<[zod.ZodNull, zod.ZodString, zod.ZodObject<zod.objectUtil.extendShape<{
4300
4300
  rotationOffset: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodObject<{
4301
4301
  x: zod.ZodUnion<[zod.ZodNumber, zod.ZodString]>;
4302
4302
  y: zod.ZodUnion<[zod.ZodNumber, zod.ZodString]>;
@@ -4596,7 +4596,7 @@ declare class Led extends NormalComponent<typeof ledProps, PolarizedPassivePorts
4596
4596
  y: number;
4597
4597
  z: number;
4598
4598
  } | undefined;
4599
- } | undefined;
4599
+ } | null | undefined;
4600
4600
  children?: any;
4601
4601
  symbolName?: string | undefined;
4602
4602
  color?: string | undefined;
@@ -4666,7 +4666,7 @@ declare class Led extends NormalComponent<typeof ledProps, PolarizedPassivePorts
4666
4666
  y: string | number;
4667
4667
  z: string | number;
4668
4668
  } | undefined;
4669
- } | undefined;
4669
+ } | null | undefined;
4670
4670
  children?: any;
4671
4671
  symbolName?: string | undefined;
4672
4672
  color?: string | undefined;
@@ -4707,7 +4707,7 @@ declare class PowerSource extends NormalComponent<typeof powerSourceProps, Polar
4707
4707
  } & {
4708
4708
  key: zod.ZodOptional<zod.ZodAny>;
4709
4709
  name: zod.ZodString;
4710
- cadModel: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodObject<zod.objectUtil.extendShape<{
4710
+ cadModel: zod.ZodOptional<zod.ZodUnion<[zod.ZodNull, zod.ZodString, zod.ZodObject<zod.objectUtil.extendShape<{
4711
4711
  rotationOffset: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodObject<{
4712
4712
  x: zod.ZodUnion<[zod.ZodNumber, zod.ZodString]>;
4713
4713
  y: zod.ZodUnion<[zod.ZodNumber, zod.ZodString]>;
@@ -5008,7 +5008,7 @@ declare class PowerSource extends NormalComponent<typeof powerSourceProps, Polar
5008
5008
  y: number;
5009
5009
  z: number;
5010
5010
  } | undefined;
5011
- } | undefined;
5011
+ } | null | undefined;
5012
5012
  children?: any;
5013
5013
  symbolName?: string | undefined;
5014
5014
  }, {
@@ -5078,7 +5078,7 @@ declare class PowerSource extends NormalComponent<typeof powerSourceProps, Polar
5078
5078
  y: string | number;
5079
5079
  z: string | number;
5080
5080
  } | undefined;
5081
- } | undefined;
5081
+ } | null | undefined;
5082
5082
  children?: any;
5083
5083
  symbolName?: string | undefined;
5084
5084
  }>;
@@ -5118,7 +5118,7 @@ declare class Resistor extends NormalComponent<typeof resistorProps, PassivePort
5118
5118
  } & {
5119
5119
  key: zod.ZodOptional<zod.ZodAny>;
5120
5120
  name: zod.ZodString;
5121
- cadModel: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodObject<zod.objectUtil.extendShape<{
5121
+ cadModel: zod.ZodOptional<zod.ZodUnion<[zod.ZodNull, zod.ZodString, zod.ZodObject<zod.objectUtil.extendShape<{
5122
5122
  rotationOffset: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodObject<{
5123
5123
  x: zod.ZodUnion<[zod.ZodNumber, zod.ZodString]>;
5124
5124
  y: zod.ZodUnion<[zod.ZodNumber, zod.ZodString]>;
@@ -5424,7 +5424,7 @@ declare class Resistor extends NormalComponent<typeof resistorProps, PassivePort
5424
5424
  y: number;
5425
5425
  z: number;
5426
5426
  } | undefined;
5427
- } | undefined;
5427
+ } | null | undefined;
5428
5428
  children?: any;
5429
5429
  symbolName?: string | undefined;
5430
5430
  connections?: Partial<Record<"pin1" | "pin2" | "pos" | "neg", string | readonly string[] | string[]>> | undefined;
@@ -5499,7 +5499,7 @@ declare class Resistor extends NormalComponent<typeof resistorProps, PassivePort
5499
5499
  y: string | number;
5500
5500
  z: string | number;
5501
5501
  } | undefined;
5502
- } | undefined;
5502
+ } | null | undefined;
5503
5503
  children?: any;
5504
5504
  symbolName?: string | undefined;
5505
5505
  connections?: Partial<Record<"pin1" | "pin2" | "pos" | "neg", string | readonly string[] | string[]>> | undefined;
@@ -7263,7 +7263,7 @@ declare class Battery extends NormalComponent<typeof batteryProps, PassivePorts>
7263
7263
  } & {
7264
7264
  key: zod.ZodOptional<zod.ZodAny>;
7265
7265
  name: zod.ZodString;
7266
- cadModel: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodObject<zod.objectUtil.extendShape<{
7266
+ cadModel: zod.ZodOptional<zod.ZodUnion<[zod.ZodNull, zod.ZodString, zod.ZodObject<zod.objectUtil.extendShape<{
7267
7267
  rotationOffset: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodObject<{
7268
7268
  x: zod.ZodUnion<[zod.ZodNumber, zod.ZodString]>;
7269
7269
  y: zod.ZodUnion<[zod.ZodNumber, zod.ZodString]>;
@@ -7563,7 +7563,7 @@ declare class Battery extends NormalComponent<typeof batteryProps, PassivePorts>
7563
7563
  y: number;
7564
7564
  z: number;
7565
7565
  } | undefined;
7566
- } | undefined;
7566
+ } | null | undefined;
7567
7567
  children?: any;
7568
7568
  symbolName?: string | undefined;
7569
7569
  capacity?: number | undefined;
@@ -7633,7 +7633,7 @@ declare class Battery extends NormalComponent<typeof batteryProps, PassivePorts>
7633
7633
  y: string | number;
7634
7634
  z: string | number;
7635
7635
  } | undefined;
7636
- } | undefined;
7636
+ } | null | undefined;
7637
7637
  children?: any;
7638
7638
  symbolName?: string | undefined;
7639
7639
  capacity?: string | number | undefined;
@@ -7669,7 +7669,7 @@ declare class PinHeader extends NormalComponent<typeof pinHeaderProps> {
7669
7669
  } & {
7670
7670
  key: zod.ZodOptional<zod.ZodAny>;
7671
7671
  name: zod.ZodString;
7672
- cadModel: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodObject<zod.objectUtil.extendShape<{
7672
+ cadModel: zod.ZodOptional<zod.ZodUnion<[zod.ZodNull, zod.ZodString, zod.ZodObject<zod.objectUtil.extendShape<{
7673
7673
  rotationOffset: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodObject<{
7674
7674
  x: zod.ZodUnion<[zod.ZodNumber, zod.ZodString]>;
7675
7675
  y: zod.ZodUnion<[zod.ZodNumber, zod.ZodString]>;
@@ -7980,7 +7980,7 @@ declare class PinHeader extends NormalComponent<typeof pinHeaderProps> {
7980
7980
  y: number;
7981
7981
  z: number;
7982
7982
  } | undefined;
7983
- } | undefined;
7983
+ } | null | undefined;
7984
7984
  children?: any;
7985
7985
  symbolName?: string | undefined;
7986
7986
  pinLabels?: string[] | undefined;
@@ -8058,7 +8058,7 @@ declare class PinHeader extends NormalComponent<typeof pinHeaderProps> {
8058
8058
  y: string | number;
8059
8059
  z: string | number;
8060
8060
  } | undefined;
8061
- } | undefined;
8061
+ } | null | undefined;
8062
8062
  children?: any;
8063
8063
  symbolName?: string | undefined;
8064
8064
  pinLabels?: string[] | undefined;
@@ -8105,7 +8105,7 @@ declare class Resonator extends NormalComponent<typeof resonatorProps> {
8105
8105
  } & {
8106
8106
  key: zod.ZodOptional<zod.ZodAny>;
8107
8107
  name: zod.ZodString;
8108
- cadModel: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodObject<zod.objectUtil.extendShape<{
8108
+ cadModel: zod.ZodOptional<zod.ZodUnion<[zod.ZodNull, zod.ZodString, zod.ZodObject<zod.objectUtil.extendShape<{
8109
8109
  rotationOffset: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodObject<{
8110
8110
  x: zod.ZodUnion<[zod.ZodNumber, zod.ZodString]>;
8111
8111
  y: zod.ZodUnion<[zod.ZodNumber, zod.ZodString]>;
@@ -8409,7 +8409,7 @@ declare class Resonator extends NormalComponent<typeof resonatorProps> {
8409
8409
  y: number;
8410
8410
  z: number;
8411
8411
  } | undefined;
8412
- } | undefined;
8412
+ } | null | undefined;
8413
8413
  children?: any;
8414
8414
  symbolName?: string | undefined;
8415
8415
  pinVariant?: "no_ground" | "ground_pin" | "two_ground_pins" | undefined;
@@ -8481,7 +8481,7 @@ declare class Resonator extends NormalComponent<typeof resonatorProps> {
8481
8481
  y: string | number;
8482
8482
  z: string | number;
8483
8483
  } | undefined;
8484
- } | undefined;
8484
+ } | null | undefined;
8485
8485
  children?: any;
8486
8486
  symbolName?: string | undefined;
8487
8487
  pinVariant?: "no_ground" | "ground_pin" | "two_ground_pins" | undefined;
@@ -8517,7 +8517,7 @@ declare class Inductor extends NormalComponent<typeof inductorProps, PassivePort
8517
8517
  } & {
8518
8518
  key: zod.ZodOptional<zod.ZodAny>;
8519
8519
  name: zod.ZodString;
8520
- cadModel: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodObject<zod.objectUtil.extendShape<{
8520
+ cadModel: zod.ZodOptional<zod.ZodUnion<[zod.ZodNull, zod.ZodString, zod.ZodObject<zod.objectUtil.extendShape<{
8521
8521
  rotationOffset: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodObject<{
8522
8522
  x: zod.ZodUnion<[zod.ZodNumber, zod.ZodString]>;
8523
8523
  y: zod.ZodUnion<[zod.ZodNumber, zod.ZodString]>;
@@ -8818,7 +8818,7 @@ declare class Inductor extends NormalComponent<typeof inductorProps, PassivePort
8818
8818
  y: number;
8819
8819
  z: number;
8820
8820
  } | undefined;
8821
- } | undefined;
8821
+ } | null | undefined;
8822
8822
  children?: any;
8823
8823
  symbolName?: string | undefined;
8824
8824
  }, {
@@ -8888,7 +8888,7 @@ declare class Inductor extends NormalComponent<typeof inductorProps, PassivePort
8888
8888
  y: string | number;
8889
8889
  z: string | number;
8890
8890
  } | undefined;
8891
- } | undefined;
8891
+ } | null | undefined;
8892
8892
  children?: any;
8893
8893
  symbolName?: string | undefined;
8894
8894
  }>;
@@ -8924,7 +8924,7 @@ declare class Potentiometer extends NormalComponent<typeof potentiometerProps> {
8924
8924
  } & {
8925
8925
  key: zod.ZodOptional<zod.ZodAny>;
8926
8926
  name: zod.ZodString;
8927
- cadModel: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodObject<zod.objectUtil.extendShape<{
8927
+ cadModel: zod.ZodOptional<zod.ZodUnion<[zod.ZodNull, zod.ZodString, zod.ZodObject<zod.objectUtil.extendShape<{
8928
8928
  rotationOffset: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodObject<{
8929
8929
  x: zod.ZodUnion<[zod.ZodNumber, zod.ZodString]>;
8930
8930
  y: zod.ZodUnion<[zod.ZodNumber, zod.ZodString]>;
@@ -9226,7 +9226,7 @@ declare class Potentiometer extends NormalComponent<typeof potentiometerProps> {
9226
9226
  y: number;
9227
9227
  z: number;
9228
9228
  } | undefined;
9229
- } | undefined;
9229
+ } | null | undefined;
9230
9230
  children?: any;
9231
9231
  symbolName?: string | undefined;
9232
9232
  pinVariant?: "two_pin" | "three_pin" | undefined;
@@ -9297,7 +9297,7 @@ declare class Potentiometer extends NormalComponent<typeof potentiometerProps> {
9297
9297
  y: string | number;
9298
9298
  z: string | number;
9299
9299
  } | undefined;
9300
- } | undefined;
9300
+ } | null | undefined;
9301
9301
  children?: any;
9302
9302
  symbolName?: string | undefined;
9303
9303
  pinVariant?: "two_pin" | "three_pin" | undefined;
@@ -9333,7 +9333,7 @@ declare class PushButton extends NormalComponent<typeof pushButtonProps, Passive
9333
9333
  } & {
9334
9334
  key: zod.ZodOptional<zod.ZodAny>;
9335
9335
  name: zod.ZodString;
9336
- cadModel: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodObject<zod.objectUtil.extendShape<{
9336
+ cadModel: zod.ZodOptional<zod.ZodUnion<[zod.ZodNull, zod.ZodString, zod.ZodObject<zod.objectUtil.extendShape<{
9337
9337
  rotationOffset: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodObject<{
9338
9338
  x: zod.ZodUnion<[zod.ZodNumber, zod.ZodString]>;
9339
9339
  y: zod.ZodUnion<[zod.ZodNumber, zod.ZodString]>;
@@ -9869,7 +9869,7 @@ declare class PushButton extends NormalComponent<typeof pushButtonProps, Passive
9869
9869
  y: number;
9870
9870
  z: number;
9871
9871
  } | undefined;
9872
- } | undefined;
9872
+ } | null | undefined;
9873
9873
  children?: any;
9874
9874
  symbolName?: string | undefined;
9875
9875
  schWidth?: number | undefined;
@@ -10009,7 +10009,7 @@ declare class PushButton extends NormalComponent<typeof pushButtonProps, Passive
10009
10009
  y: string | number;
10010
10010
  z: string | number;
10011
10011
  } | undefined;
10012
- } | undefined;
10012
+ } | null | undefined;
10013
10013
  children?: any;
10014
10014
  symbolName?: string | undefined;
10015
10015
  schWidth?: string | number | undefined;
@@ -10117,7 +10117,7 @@ declare class Crystal extends NormalComponent<typeof crystalProps, PolarizedPass
10117
10117
  } & {
10118
10118
  key: zod.ZodOptional<zod.ZodAny>;
10119
10119
  name: zod.ZodString;
10120
- cadModel: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodObject<zod.objectUtil.extendShape<{
10120
+ cadModel: zod.ZodOptional<zod.ZodUnion<[zod.ZodNull, zod.ZodString, zod.ZodObject<zod.objectUtil.extendShape<{
10121
10121
  rotationOffset: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodObject<{
10122
10122
  x: zod.ZodUnion<[zod.ZodNumber, zod.ZodString]>;
10123
10123
  y: zod.ZodUnion<[zod.ZodNumber, zod.ZodString]>;
@@ -10421,7 +10421,7 @@ declare class Crystal extends NormalComponent<typeof crystalProps, PolarizedPass
10421
10421
  y: number;
10422
10422
  z: number;
10423
10423
  } | undefined;
10424
- } | undefined;
10424
+ } | null | undefined;
10425
10425
  children?: any;
10426
10426
  symbolName?: string | undefined;
10427
10427
  pinVariant?: "two_pin" | "four_pin" | undefined;
@@ -10493,7 +10493,7 @@ declare class Crystal extends NormalComponent<typeof crystalProps, PolarizedPass
10493
10493
  y: string | number;
10494
10494
  z: string | number;
10495
10495
  } | undefined;
10496
- } | undefined;
10496
+ } | null | undefined;
10497
10497
  children?: any;
10498
10498
  symbolName?: string | undefined;
10499
10499
  pinVariant?: "two_pin" | "four_pin" | undefined;
@@ -10531,7 +10531,7 @@ declare class Transistor extends NormalComponent<typeof transistorProps, Transis
10531
10531
  } & {
10532
10532
  key: zod.ZodOptional<zod.ZodAny>;
10533
10533
  name: zod.ZodString;
10534
- cadModel: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodObject<zod.objectUtil.extendShape<{
10534
+ cadModel: zod.ZodOptional<zod.ZodUnion<[zod.ZodNull, zod.ZodString, zod.ZodObject<zod.objectUtil.extendShape<{
10535
10535
  rotationOffset: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodObject<{
10536
10536
  x: zod.ZodUnion<[zod.ZodNumber, zod.ZodString]>;
10537
10537
  y: zod.ZodUnion<[zod.ZodNumber, zod.ZodString]>;
@@ -10832,7 +10832,7 @@ declare class Transistor extends NormalComponent<typeof transistorProps, Transis
10832
10832
  y: number;
10833
10833
  z: number;
10834
10834
  } | undefined;
10835
- } | undefined;
10835
+ } | null | undefined;
10836
10836
  children?: any;
10837
10837
  symbolName?: string | undefined;
10838
10838
  }, {
@@ -10902,7 +10902,7 @@ declare class Transistor extends NormalComponent<typeof transistorProps, Transis
10902
10902
  y: string | number;
10903
10903
  z: string | number;
10904
10904
  } | undefined;
10905
- } | undefined;
10905
+ } | null | undefined;
10906
10906
  children?: any;
10907
10907
  symbolName?: string | undefined;
10908
10908
  }>;
@@ -10942,7 +10942,7 @@ declare class Mosfet extends NormalComponent<typeof mosfetProps> {
10942
10942
  } & {
10943
10943
  key: zod.ZodOptional<zod.ZodAny>;
10944
10944
  name: zod.ZodString;
10945
- cadModel: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodObject<zod.objectUtil.extendShape<{
10945
+ cadModel: zod.ZodOptional<zod.ZodUnion<[zod.ZodNull, zod.ZodString, zod.ZodObject<zod.objectUtil.extendShape<{
10946
10946
  rotationOffset: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodObject<{
10947
10947
  x: zod.ZodUnion<[zod.ZodNumber, zod.ZodString]>;
10948
10948
  y: zod.ZodUnion<[zod.ZodNumber, zod.ZodString]>;
@@ -11245,7 +11245,7 @@ declare class Mosfet extends NormalComponent<typeof mosfetProps> {
11245
11245
  y: number;
11246
11246
  z: number;
11247
11247
  } | undefined;
11248
- } | undefined;
11248
+ } | null | undefined;
11249
11249
  children?: any;
11250
11250
  symbolName?: string | undefined;
11251
11251
  }, {
@@ -11316,7 +11316,7 @@ declare class Mosfet extends NormalComponent<typeof mosfetProps> {
11316
11316
  y: string | number;
11317
11317
  z: string | number;
11318
11318
  } | undefined;
11319
- } | undefined;
11319
+ } | null | undefined;
11320
11320
  children?: any;
11321
11321
  symbolName?: string | undefined;
11322
11322
  }>;
@@ -11352,7 +11352,7 @@ declare class Switch extends NormalComponent<typeof switchProps> {
11352
11352
  } & {
11353
11353
  key: zod.ZodOptional<zod.ZodAny>;
11354
11354
  name: zod.ZodString;
11355
- cadModel: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodObject<zod.objectUtil.extendShape<{
11355
+ cadModel: zod.ZodOptional<zod.ZodUnion<[zod.ZodNull, zod.ZodString, zod.ZodObject<zod.objectUtil.extendShape<{
11356
11356
  rotationOffset: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodObject<{
11357
11357
  x: zod.ZodUnion<[zod.ZodNumber, zod.ZodString]>;
11358
11358
  y: zod.ZodUnion<[zod.ZodNumber, zod.ZodString]>;
@@ -11659,7 +11659,7 @@ declare class Switch extends NormalComponent<typeof switchProps> {
11659
11659
  y: number;
11660
11660
  z: number;
11661
11661
  } | undefined;
11662
- } | undefined;
11662
+ } | null | undefined;
11663
11663
  children?: any;
11664
11664
  symbolName?: string | undefined;
11665
11665
  spst?: boolean | undefined;
@@ -11733,7 +11733,7 @@ declare class Switch extends NormalComponent<typeof switchProps> {
11733
11733
  y: string | number;
11734
11734
  z: string | number;
11735
11735
  } | undefined;
11736
- } | undefined;
11736
+ } | null | undefined;
11737
11737
  children?: any;
11738
11738
  symbolName?: string | undefined;
11739
11739
  spst?: boolean | undefined;
@@ -11808,7 +11808,7 @@ declare class Switch extends NormalComponent<typeof switchProps> {
11808
11808
  y: string | number;
11809
11809
  z: string | number;
11810
11810
  } | undefined;
11811
- } | undefined;
11811
+ } | null | undefined;
11812
11812
  children?: any;
11813
11813
  symbolName?: string | undefined;
11814
11814
  spst?: boolean | undefined;
@@ -11944,7 +11944,7 @@ declare const useLed: <PropsFromHook extends Omit<{
11944
11944
  y: string | number;
11945
11945
  z: string | number;
11946
11946
  } | undefined;
11947
- } | undefined;
11947
+ } | null | undefined;
11948
11948
  children?: any;
11949
11949
  symbolName?: string | undefined;
11950
11950
  color?: string | undefined;
@@ -12014,7 +12014,7 @@ declare const useLed: <PropsFromHook extends Omit<{
12014
12014
  y: string | number;
12015
12015
  z: string | number;
12016
12016
  } | undefined;
12017
- } | undefined;
12017
+ } | null | undefined;
12018
12018
  children?: any;
12019
12019
  symbolName?: string | undefined;
12020
12020
  color?: string | undefined;
package/dist/index.js CHANGED
@@ -5628,6 +5628,7 @@ var NormalComponent = class extends PrimitiveComponent2 {
5628
5628
  const cadModel = this._parsedProps.cadModel;
5629
5629
  if (!this.pcb_component_id) return;
5630
5630
  if (!cadModel && !this.props.footprint) return;
5631
+ if (cadModel === null) return;
5631
5632
  const bounds = this._getPcbCircuitJsonBounds();
5632
5633
  const pcb_component = db.pcb_component.get(this.pcb_component_id);
5633
5634
  if (typeof cadModel === "string") {
@@ -7244,12 +7245,25 @@ var Jumper = class extends NormalComponent {
7244
7245
  pcb_component_id: this.pcb_component_id
7245
7246
  });
7246
7247
  const pinLabelToPortId = {};
7247
- for (const port of pcb_ports) {
7248
- const match = port.source_port_id && port.source_port_id.match(/(\d+)$/);
7249
- if (match) {
7250
- const label = (parseInt(match[1], 10) + 1).toString();
7251
- pinLabelToPortId[label] = port.pcb_port_id;
7248
+ for (let i = 0; i < pcb_ports.length; i++) {
7249
+ const port = pcb_ports[i];
7250
+ const sourcePort = db.source_port.get(port.source_port_id);
7251
+ let pinLabel = "";
7252
+ if (typeof sourcePort?.pin_number === "number") {
7253
+ pinLabel = sourcePort.pin_number.toString();
7254
+ } else if (Array.isArray(sourcePort?.port_hints)) {
7255
+ let matchedHint = sourcePort.port_hints.find(
7256
+ (h) => /^(pin)?\d+$/.test(h)
7257
+ );
7258
+ if (matchedHint) {
7259
+ if (/^pin\d+$/.test(matchedHint)) {
7260
+ pinLabel = matchedHint.replace(/^pin/, "");
7261
+ } else {
7262
+ pinLabel = matchedHint;
7263
+ }
7264
+ }
7252
7265
  }
7266
+ pinLabelToPortId[pinLabel] = port.pcb_port_id;
7253
7267
  }
7254
7268
  const traces = db.pcb_trace.list();
7255
7269
  const updatePortId = (portId) => {
@@ -8223,7 +8237,7 @@ import { identity as identity4 } from "transformation-matrix";
8223
8237
  var package_default = {
8224
8238
  name: "@tscircuit/core",
8225
8239
  type: "module",
8226
- version: "0.0.402",
8240
+ version: "0.0.404",
8227
8241
  types: "dist/index.d.ts",
8228
8242
  main: "dist/index.js",
8229
8243
  module: "dist/index.js",
@@ -8246,7 +8260,7 @@ var package_default = {
8246
8260
  },
8247
8261
  devDependencies: {
8248
8262
  "@biomejs/biome": "^1.8.3",
8249
- "@tscircuit/footprinter": "^0.0.156",
8263
+ "@tscircuit/footprinter": "^0.0.159",
8250
8264
  "@tscircuit/import-snippet": "^0.0.4",
8251
8265
  "@tscircuit/layout": "^0.0.28",
8252
8266
  "@tscircuit/log-soup": "^1.0.2",
@@ -8274,7 +8288,7 @@ var package_default = {
8274
8288
  "@tscircuit/circuit-json-util": "^0.0.47",
8275
8289
  "@tscircuit/infgrid-ijump-astar": "^0.0.33",
8276
8290
  "@tscircuit/math-utils": "^0.0.18",
8277
- "@tscircuit/props": "^0.0.178",
8291
+ "@tscircuit/props": "^0.0.179",
8278
8292
  "@tscircuit/schematic-autolayout": "^0.0.6",
8279
8293
  "circuit-json-to-connectivity-map": "^0.0.22",
8280
8294
  "circuit-json": "0.0.170",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tscircuit/core",
3
3
  "type": "module",
4
- "version": "0.0.403",
4
+ "version": "0.0.405",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",
@@ -24,7 +24,7 @@
24
24
  },
25
25
  "devDependencies": {
26
26
  "@biomejs/biome": "^1.8.3",
27
- "@tscircuit/footprinter": "^0.0.156",
27
+ "@tscircuit/footprinter": "^0.0.159",
28
28
  "@tscircuit/import-snippet": "^0.0.4",
29
29
  "@tscircuit/layout": "^0.0.28",
30
30
  "@tscircuit/log-soup": "^1.0.2",
@@ -52,7 +52,7 @@
52
52
  "@tscircuit/circuit-json-util": "^0.0.47",
53
53
  "@tscircuit/infgrid-ijump-astar": "^0.0.33",
54
54
  "@tscircuit/math-utils": "^0.0.18",
55
- "@tscircuit/props": "^0.0.178",
55
+ "@tscircuit/props": "^0.0.179",
56
56
  "@tscircuit/schematic-autolayout": "^0.0.6",
57
57
  "circuit-json-to-connectivity-map": "^0.0.22",
58
58
  "circuit-json": "0.0.170",