circuit-json 0.0.262 → 0.0.264

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/README.md CHANGED
@@ -67,7 +67,9 @@ https://github.com/user-attachments/assets/2f28b7ba-689e-4d80-85b2-5bdef84b41f8
67
67
  - [SourceSimpleInductor](#sourcesimpleinductor)
68
68
  - [SourceSimpleLed](#sourcesimpleled)
69
69
  - [SourceSimpleMosfet](#sourcesimplemosfet)
70
+ - [SourceSimplePinHeader](#sourcesimplepinheader)
70
71
  - [SourceSimplePinout](#sourcesimplepinout)
72
+ - [SourceSimplePotentiometer](#sourcesimplepotentiometer)
71
73
  - [SourceSimplePowerSource](#sourcesimplepowersource)
72
74
  - [SourceSimplePushButton](#sourcesimplepushbutton)
73
75
  - [SourceSimpleResistor](#sourcesimpleresistor)
@@ -565,6 +567,18 @@ interface SourceSimpleMosfet extends SourceComponentBase {
565
567
  }
566
568
  ```
567
569
 
570
+ ### SourceSimplePinHeader
571
+
572
+ [Source](https://github.com/tscircuit/circuit-json/blob/main/src/source/source_simple_pin_header.ts)
573
+
574
+ ```typescript
575
+ interface SourceSimplePinHeader extends SourceComponentBase {
576
+ ftype: "simple_pin_header"
577
+ pin_count: number
578
+ gender: "male" | "female"
579
+ }
580
+ ```
581
+
568
582
  ### SourceSimplePinout
569
583
 
570
584
  [Source](https://github.com/tscircuit/circuit-json/blob/main/src/source/source_simple_pinout.ts)
@@ -578,6 +592,17 @@ interface SourceSimplePinout extends SourceComponentBase {
578
592
  }
579
593
  ```
580
594
 
595
+ ### SourceSimplePotentiometer
596
+
597
+ [Source](https://github.com/tscircuit/circuit-json/blob/main/src/source/source_simple_potentiometer.ts)
598
+
599
+ ```typescript
600
+ interface SourceSimplePotentiometer extends SourceComponentBase {
601
+ ftype: "simple_potentiometer"
602
+ max_resistance: number
603
+ }
604
+ ```
605
+
581
606
  ### SourceSimplePowerSource
582
607
 
583
608
  [Source](https://github.com/tscircuit/circuit-json/blob/main/src/source/source_simple_power_source.ts)
@@ -799,6 +824,7 @@ interface PcbComponent {
799
824
  rotation: Rotation
800
825
  width: Length
801
826
  height: Length
827
+ do_not_place: boolean
802
828
  pcb_group_id?: string
803
829
  }
804
830
  ```
package/dist/index.d.mts CHANGED
@@ -400,6 +400,7 @@ declare const pcb_component: z.ZodObject<{
400
400
  rotation: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
401
401
  width: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
402
402
  height: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
403
+ do_not_place: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
403
404
  subcircuit_id: z.ZodOptional<z.ZodString>;
404
405
  pcb_group_id: z.ZodOptional<z.ZodString>;
405
406
  }, "strip", z.ZodTypeAny, {
@@ -414,6 +415,7 @@ declare const pcb_component: z.ZodObject<{
414
415
  };
415
416
  layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
416
417
  rotation: number;
418
+ do_not_place: boolean;
417
419
  subcircuit_id?: string | undefined;
418
420
  pcb_group_id?: string | undefined;
419
421
  }, {
@@ -430,6 +432,7 @@ declare const pcb_component: z.ZodObject<{
430
432
  };
431
433
  rotation: string | number;
432
434
  pcb_component_id?: string | undefined;
435
+ do_not_place?: boolean | undefined;
433
436
  subcircuit_id?: string | undefined;
434
437
  pcb_group_id?: string | undefined;
435
438
  }>;
@@ -447,6 +450,7 @@ interface PcbComponent {
447
450
  rotation: Rotation;
448
451
  width: Length;
449
452
  height: Length;
453
+ do_not_place: boolean;
450
454
  pcb_group_id?: string;
451
455
  }
452
456
  /**
@@ -7791,7 +7795,7 @@ declare const source_simple_potentiometer: z.ZodObject<{
7791
7795
  internally_connected_source_port_ids?: string[][] | undefined;
7792
7796
  }>;
7793
7797
  type SourceSimplePotentiometerInput = z.input<typeof source_simple_potentiometer>;
7794
- interface SourceSimplePotentiometer extends SourceSimplePotentiometerInput {
7798
+ interface SourceSimplePotentiometer extends SourceComponentBase {
7795
7799
  ftype: "simple_potentiometer";
7796
7800
  max_resistance: number;
7797
7801
  }
@@ -7895,7 +7899,7 @@ declare const source_simple_pin_header: z.ZodObject<{
7895
7899
  gender?: "male" | "female" | undefined;
7896
7900
  }>;
7897
7901
  type SourceSimplePinHeaderInput = z.input<typeof source_simple_pin_header>;
7898
- interface SourceSimplePinHeader extends SourceSimplePinHeaderInput {
7902
+ interface SourceSimplePinHeader extends SourceComponentBase {
7899
7903
  ftype: "simple_pin_header";
7900
7904
  pin_count: number;
7901
7905
  gender: "male" | "female";
@@ -12091,6 +12095,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
12091
12095
  rotation: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
12092
12096
  width: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
12093
12097
  height: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
12098
+ do_not_place: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
12094
12099
  subcircuit_id: z.ZodOptional<z.ZodString>;
12095
12100
  pcb_group_id: z.ZodOptional<z.ZodString>;
12096
12101
  }, "strip", z.ZodTypeAny, {
@@ -12105,6 +12110,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
12105
12110
  };
12106
12111
  layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
12107
12112
  rotation: number;
12113
+ do_not_place: boolean;
12108
12114
  subcircuit_id?: string | undefined;
12109
12115
  pcb_group_id?: string | undefined;
12110
12116
  }, {
@@ -12121,6 +12127,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
12121
12127
  };
12122
12128
  rotation: string | number;
12123
12129
  pcb_component_id?: string | undefined;
12130
+ do_not_place?: boolean | undefined;
12124
12131
  subcircuit_id?: string | undefined;
12125
12132
  pcb_group_id?: string | undefined;
12126
12133
  }>, z.ZodUnion<[z.ZodObject<{
@@ -18462,6 +18469,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
18462
18469
  rotation: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
18463
18470
  width: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
18464
18471
  height: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
18472
+ do_not_place: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
18465
18473
  subcircuit_id: z.ZodOptional<z.ZodString>;
18466
18474
  pcb_group_id: z.ZodOptional<z.ZodString>;
18467
18475
  }, "strip", z.ZodTypeAny, {
@@ -18476,6 +18484,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
18476
18484
  };
18477
18485
  layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
18478
18486
  rotation: number;
18487
+ do_not_place: boolean;
18479
18488
  subcircuit_id?: string | undefined;
18480
18489
  pcb_group_id?: string | undefined;
18481
18490
  }, {
@@ -18492,6 +18501,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
18492
18501
  };
18493
18502
  rotation: string | number;
18494
18503
  pcb_component_id?: string | undefined;
18504
+ do_not_place?: boolean | undefined;
18495
18505
  subcircuit_id?: string | undefined;
18496
18506
  pcb_group_id?: string | undefined;
18497
18507
  }>, z.ZodUnion<[z.ZodObject<{
package/dist/index.mjs CHANGED
@@ -1214,6 +1214,7 @@ var pcb_component = z66.object({
1214
1214
  rotation,
1215
1215
  width: length,
1216
1216
  height: length,
1217
+ do_not_place: z66.boolean().optional().default(false),
1217
1218
  subcircuit_id: z66.string().optional(),
1218
1219
  pcb_group_id: z66.string().optional()
1219
1220
  }).describe("Defines a component on the PCB");