@tscircuit/props 0.0.240 → 0.0.242

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
@@ -52,6 +52,7 @@ resistorProps.parse({ resistance: "10k" } as ResistorPropsInput)
52
52
  | `<switch />` | [`SwitchProps`](#switchprops-switch) |
53
53
  | `<testpoint />` | [`TestpointProps`](#testpointprops-testpoint) |
54
54
  | `<transistor />` | [`TransistorProps`](#transistorprops-transistor) |
55
+ | `<via />` | [`ViaProps`](#viaprops-via) |
55
56
  <!-- COMPONENT_TABLE_END -->
56
57
 
57
58
  <!-- USAGE_EXAMPLES_START -->
@@ -133,6 +134,7 @@ export interface SubcircuitGroupProps extends BaseGroupProps {
133
134
  ```ts
134
135
  export interface BatteryProps extends CommonComponentProps {
135
136
  capacity?: number | string
137
+ schOrientation?: SchematicOrientation
136
138
  }
137
139
  ```
138
140
 
@@ -196,6 +198,7 @@ export interface CapacitorProps extends CommonComponentProps {
196
198
  bypassFor?: string
197
199
  bypassTo?: string
198
200
  maxDecouplingTraceLength?: number
201
+ schOrientation?: SchematicOrientation
199
202
  connections?: Connections<CapacitorPinLabels>
200
203
  }
201
204
  ```
@@ -279,6 +282,7 @@ export interface CrystalProps extends CommonComponentProps {
279
282
  frequency: number | string
280
283
  loadCapacitance: number | string
281
284
  pinVariant?: PinVariant
285
+ schOrientation?: SchematicOrientation
282
286
  }
283
287
  ```
284
288
 
@@ -318,6 +322,7 @@ export interface DiodeProps extends CommonComponentProps {
318
322
  zener?: boolean
319
323
  photo?: boolean
320
324
  tvs?: boolean
325
+ schOrientation?: SchematicOrientation
321
326
  }
322
327
  ```
323
328
 
@@ -364,6 +369,8 @@ export interface FuseProps extends CommonComponentProps {
364
369
  */
365
370
  schShowRatings?: boolean
366
371
 
372
+ schOrientation?: SchematicOrientation
373
+
367
374
  /**
368
375
  * Connections to other components
369
376
  */
@@ -382,6 +389,11 @@ export interface BaseGroupProps extends CommonLayoutProps, LayoutConfig {
382
389
  key?: any
383
390
  children?: any
384
391
 
392
+ /**
393
+ * Title to display above this group in the schematic view
394
+ */
395
+ schTitle?: string
396
+
385
397
  pcbWidth?: Distance
386
398
  pcbHeight?: Distance
387
399
  schWidth?: Distance
@@ -421,6 +433,7 @@ export interface HoleProps extends Omit<PcbLayoutProps, "pcbRotation"> {
421
433
  export interface InductorProps extends CommonComponentProps {
422
434
  inductance: number | string
423
435
  maxCurrentRating?: number | string
436
+ schOrientation?: SchematicOrientation
424
437
  }
425
438
  ```
426
439
 
@@ -609,6 +622,7 @@ export interface PinHeaderProps extends CommonComponentProps {
609
622
  export interface CirclePlatedHoleProps
610
623
  extends Omit<PcbLayoutProps, "pcbRotation" | "layer"> {
611
624
  name?: string
625
+ connectsTo?: string | string[]
612
626
  shape: "circle"
613
627
  holeDiameter: number | string
614
628
  outerDiameter: number | string
@@ -640,6 +654,7 @@ export interface ResistorProps extends CommonComponentProps {
640
654
  pullupTo?: string
641
655
  pulldownFor?: string
642
656
  pulldownTo?: string
657
+ schOrientation?: SchematicOrientation
643
658
  connections?: Connections<ResistorPinLabels>
644
659
  }
645
660
  ```
@@ -664,6 +679,7 @@ export interface ResonatorProps extends CommonComponentProps {
664
679
 
665
680
  ```ts
666
681
  export interface RectSmtPadProps extends Omit<PcbLayoutProps, "pcbRotation"> {
682
+ name?: string
667
683
  shape: "rect"
668
684
  width: Distance
669
685
  height: Distance
@@ -782,6 +798,22 @@ export interface TransistorProps extends CommonComponentProps {
782
798
 
783
799
  [Source](https://github.com/tscircuit/props/blob/main/lib/components/transistor.ts)
784
800
 
801
+
802
+ ### ViaProps `<via />`
803
+
804
+ ```ts
805
+ export interface ViaProps extends CommonLayoutProps {
806
+ name?: string
807
+ fromLayer: LayerRefInput
808
+ toLayer: LayerRefInput
809
+ holeDiameter: number | string
810
+ outerDiameter: number | string
811
+ connectsTo?: string | string[]
812
+ }
813
+ ```
814
+
815
+ [Source](https://github.com/tscircuit/props/blob/main/lib/components/via.ts)
816
+
785
817
  <!-- INTERFACE_DEFINITIONS_END -->
786
818
 
787
819
 
package/dist/index.d.ts CHANGED
@@ -2852,6 +2852,10 @@ interface BaseGroupProps extends CommonLayoutProps, LayoutConfig {
2852
2852
  name?: string;
2853
2853
  key?: any;
2854
2854
  children?: any;
2855
+ /**
2856
+ * Title to display above this group in the schematic view
2857
+ */
2858
+ schTitle?: string;
2855
2859
  pcbWidth?: Distance;
2856
2860
  pcbHeight?: Distance;
2857
2861
  schWidth?: Distance;
@@ -3222,6 +3226,7 @@ declare const baseGroupProps: z.ZodObject<z.objectUtil.extendShape<{
3222
3226
  matchAdaptTemplate: z.ZodOptional<z.ZodAny>;
3223
3227
  name: z.ZodOptional<z.ZodString>;
3224
3228
  children: z.ZodOptional<z.ZodAny>;
3229
+ schTitle: z.ZodOptional<z.ZodString>;
3225
3230
  key: z.ZodOptional<z.ZodAny>;
3226
3231
  }>, "strip", z.ZodTypeAny, {
3227
3232
  pcbX?: number | undefined;
@@ -3262,6 +3267,7 @@ declare const baseGroupProps: z.ZodObject<z.objectUtil.extendShape<{
3262
3267
  height?: number | undefined;
3263
3268
  matchAdapt?: boolean | undefined;
3264
3269
  matchAdaptTemplate?: any;
3270
+ schTitle?: string | undefined;
3265
3271
  pcbWidth?: number | undefined;
3266
3272
  pcbHeight?: number | undefined;
3267
3273
  schWidth?: number | undefined;
@@ -3380,6 +3386,7 @@ declare const baseGroupProps: z.ZodObject<z.objectUtil.extendShape<{
3380
3386
  height?: string | number | undefined;
3381
3387
  matchAdapt?: boolean | undefined;
3382
3388
  matchAdaptTemplate?: any;
3389
+ schTitle?: string | undefined;
3383
3390
  pcbWidth?: string | number | undefined;
3384
3391
  pcbHeight?: string | number | undefined;
3385
3392
  schWidth?: string | number | undefined;
@@ -3711,6 +3718,7 @@ declare const subcircuitGroupProps: z.ZodObject<z.objectUtil.extendShape<z.objec
3711
3718
  matchAdaptTemplate: z.ZodOptional<z.ZodAny>;
3712
3719
  name: z.ZodOptional<z.ZodString>;
3713
3720
  children: z.ZodOptional<z.ZodAny>;
3721
+ schTitle: z.ZodOptional<z.ZodString>;
3714
3722
  key: z.ZodOptional<z.ZodAny>;
3715
3723
  }>, {
3716
3724
  layout: z.ZodOptional<z.ZodType<LayoutBuilder, z.ZodTypeDef, LayoutBuilder>>;
@@ -3954,6 +3962,7 @@ declare const subcircuitGroupProps: z.ZodObject<z.objectUtil.extendShape<z.objec
3954
3962
  height?: number | undefined;
3955
3963
  matchAdapt?: boolean | undefined;
3956
3964
  matchAdaptTemplate?: any;
3965
+ schTitle?: string | undefined;
3957
3966
  pcbWidth?: number | undefined;
3958
3967
  pcbHeight?: number | undefined;
3959
3968
  schWidth?: number | undefined;
@@ -4118,6 +4127,7 @@ declare const subcircuitGroupProps: z.ZodObject<z.objectUtil.extendShape<z.objec
4118
4127
  height?: string | number | undefined;
4119
4128
  matchAdapt?: boolean | undefined;
4120
4129
  matchAdaptTemplate?: any;
4130
+ schTitle?: string | undefined;
4121
4131
  pcbWidth?: string | number | undefined;
4122
4132
  pcbHeight?: string | number | undefined;
4123
4133
  schWidth?: string | number | undefined;
@@ -4496,6 +4506,7 @@ declare const subcircuitGroupPropsWithBool: z.ZodObject<z.objectUtil.extendShape
4496
4506
  matchAdaptTemplate: z.ZodOptional<z.ZodAny>;
4497
4507
  name: z.ZodOptional<z.ZodString>;
4498
4508
  children: z.ZodOptional<z.ZodAny>;
4509
+ schTitle: z.ZodOptional<z.ZodString>;
4499
4510
  key: z.ZodOptional<z.ZodAny>;
4500
4511
  }>, {
4501
4512
  layout: z.ZodOptional<z.ZodType<LayoutBuilder, z.ZodTypeDef, LayoutBuilder>>;
@@ -4742,6 +4753,7 @@ declare const subcircuitGroupPropsWithBool: z.ZodObject<z.objectUtil.extendShape
4742
4753
  height?: number | undefined;
4743
4754
  matchAdapt?: boolean | undefined;
4744
4755
  matchAdaptTemplate?: any;
4756
+ schTitle?: string | undefined;
4745
4757
  pcbWidth?: number | undefined;
4746
4758
  pcbHeight?: number | undefined;
4747
4759
  schWidth?: number | undefined;
@@ -4907,6 +4919,7 @@ declare const subcircuitGroupPropsWithBool: z.ZodObject<z.objectUtil.extendShape
4907
4919
  height?: string | number | undefined;
4908
4920
  matchAdapt?: boolean | undefined;
4909
4921
  matchAdaptTemplate?: any;
4922
+ schTitle?: string | undefined;
4910
4923
  pcbWidth?: string | number | undefined;
4911
4924
  pcbHeight?: string | number | undefined;
4912
4925
  schWidth?: string | number | undefined;
@@ -5285,6 +5298,7 @@ declare const groupProps: z.ZodDiscriminatedUnion<"subcircuit", [z.ZodObject<z.o
5285
5298
  matchAdaptTemplate: z.ZodOptional<z.ZodAny>;
5286
5299
  name: z.ZodOptional<z.ZodString>;
5287
5300
  children: z.ZodOptional<z.ZodAny>;
5301
+ schTitle: z.ZodOptional<z.ZodString>;
5288
5302
  key: z.ZodOptional<z.ZodAny>;
5289
5303
  }>, {
5290
5304
  subcircuit: z.ZodOptional<z.ZodLiteral<false>>;
@@ -5327,6 +5341,7 @@ declare const groupProps: z.ZodDiscriminatedUnion<"subcircuit", [z.ZodObject<z.o
5327
5341
  height?: number | undefined;
5328
5342
  matchAdapt?: boolean | undefined;
5329
5343
  matchAdaptTemplate?: any;
5344
+ schTitle?: string | undefined;
5330
5345
  pcbWidth?: number | undefined;
5331
5346
  pcbHeight?: number | undefined;
5332
5347
  schWidth?: number | undefined;
@@ -5446,6 +5461,7 @@ declare const groupProps: z.ZodDiscriminatedUnion<"subcircuit", [z.ZodObject<z.o
5446
5461
  height?: string | number | undefined;
5447
5462
  matchAdapt?: boolean | undefined;
5448
5463
  matchAdaptTemplate?: any;
5464
+ schTitle?: string | undefined;
5449
5465
  pcbWidth?: string | number | undefined;
5450
5466
  pcbHeight?: string | number | undefined;
5451
5467
  schWidth?: string | number | undefined;
@@ -5776,6 +5792,7 @@ declare const groupProps: z.ZodDiscriminatedUnion<"subcircuit", [z.ZodObject<z.o
5776
5792
  matchAdaptTemplate: z.ZodOptional<z.ZodAny>;
5777
5793
  name: z.ZodOptional<z.ZodString>;
5778
5794
  children: z.ZodOptional<z.ZodAny>;
5795
+ schTitle: z.ZodOptional<z.ZodString>;
5779
5796
  key: z.ZodOptional<z.ZodAny>;
5780
5797
  }>, {
5781
5798
  layout: z.ZodOptional<z.ZodType<LayoutBuilder, z.ZodTypeDef, LayoutBuilder>>;
@@ -6022,6 +6039,7 @@ declare const groupProps: z.ZodDiscriminatedUnion<"subcircuit", [z.ZodObject<z.o
6022
6039
  height?: number | undefined;
6023
6040
  matchAdapt?: boolean | undefined;
6024
6041
  matchAdaptTemplate?: any;
6042
+ schTitle?: string | undefined;
6025
6043
  pcbWidth?: number | undefined;
6026
6044
  pcbHeight?: number | undefined;
6027
6045
  schWidth?: number | undefined;
@@ -6187,6 +6205,7 @@ declare const groupProps: z.ZodDiscriminatedUnion<"subcircuit", [z.ZodObject<z.o
6187
6205
  height?: string | number | undefined;
6188
6206
  matchAdapt?: boolean | undefined;
6189
6207
  matchAdaptTemplate?: any;
6208
+ schTitle?: string | undefined;
6190
6209
  pcbWidth?: string | number | undefined;
6191
6210
  pcbHeight?: string | number | undefined;
6192
6211
  schWidth?: string | number | undefined;
@@ -6579,6 +6598,7 @@ declare const boardProps: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.exte
6579
6598
  matchAdaptTemplate: z.ZodOptional<z.ZodAny>;
6580
6599
  name: z.ZodOptional<z.ZodString>;
6581
6600
  children: z.ZodOptional<z.ZodAny>;
6601
+ schTitle: z.ZodOptional<z.ZodString>;
6582
6602
  key: z.ZodOptional<z.ZodAny>;
6583
6603
  }>, {
6584
6604
  layout: z.ZodOptional<z.ZodType<LayoutBuilder, z.ZodTypeDef, LayoutBuilder>>;
@@ -6839,6 +6859,7 @@ declare const boardProps: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.exte
6839
6859
  height?: number | undefined;
6840
6860
  matchAdapt?: boolean | undefined;
6841
6861
  matchAdaptTemplate?: any;
6862
+ schTitle?: string | undefined;
6842
6863
  pcbWidth?: number | undefined;
6843
6864
  pcbHeight?: number | undefined;
6844
6865
  schWidth?: number | undefined;
@@ -7009,6 +7030,7 @@ declare const boardProps: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.exte
7009
7030
  height?: string | number | undefined;
7010
7031
  matchAdapt?: boolean | undefined;
7011
7032
  matchAdaptTemplate?: any;
7033
+ schTitle?: string | undefined;
7012
7034
  pcbWidth?: string | number | undefined;
7013
7035
  pcbHeight?: string | number | undefined;
7014
7036
  schWidth?: string | number | undefined;
@@ -7402,6 +7424,7 @@ declare const breakoutProps: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.e
7402
7424
  matchAdaptTemplate: z.ZodOptional<z.ZodAny>;
7403
7425
  name: z.ZodOptional<z.ZodString>;
7404
7426
  children: z.ZodOptional<z.ZodAny>;
7427
+ schTitle: z.ZodOptional<z.ZodString>;
7405
7428
  key: z.ZodOptional<z.ZodAny>;
7406
7429
  }>, {
7407
7430
  layout: z.ZodOptional<z.ZodType<_tscircuit_layout.LayoutBuilder, z.ZodTypeDef, _tscircuit_layout.LayoutBuilder>>;
@@ -7651,6 +7674,7 @@ declare const breakoutProps: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.e
7651
7674
  height?: number | undefined;
7652
7675
  matchAdapt?: boolean | undefined;
7653
7676
  matchAdaptTemplate?: any;
7677
+ schTitle?: string | undefined;
7654
7678
  pcbWidth?: number | undefined;
7655
7679
  pcbHeight?: number | undefined;
7656
7680
  schWidth?: number | undefined;
@@ -7815,6 +7839,7 @@ declare const breakoutProps: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.e
7815
7839
  height?: string | number | undefined;
7816
7840
  matchAdapt?: boolean | undefined;
7817
7841
  matchAdaptTemplate?: any;
7842
+ schTitle?: string | undefined;
7818
7843
  pcbWidth?: string | number | undefined;
7819
7844
  pcbHeight?: string | number | undefined;
7820
7845
  schWidth?: string | number | undefined;
@@ -12047,6 +12072,7 @@ type InferredFuseProps = z.input<typeof fuseProps>;
12047
12072
 
12048
12073
  interface CirclePlatedHoleProps extends Omit<PcbLayoutProps, "pcbRotation" | "layer"> {
12049
12074
  name?: string;
12075
+ connectsTo?: string | string[];
12050
12076
  shape: "circle";
12051
12077
  holeDiameter: number | string;
12052
12078
  outerDiameter: number | string;
@@ -12054,6 +12080,7 @@ interface CirclePlatedHoleProps extends Omit<PcbLayoutProps, "pcbRotation" | "la
12054
12080
  }
12055
12081
  interface OvalPlatedHoleProps extends Omit<PcbLayoutProps, "pcbRotation" | "layer"> {
12056
12082
  name?: string;
12083
+ connectsTo?: string | string[];
12057
12084
  shape: "oval";
12058
12085
  outerWidth: number | string;
12059
12086
  outerHeight: number | string;
@@ -12067,6 +12094,7 @@ interface OvalPlatedHoleProps extends Omit<PcbLayoutProps, "pcbRotation" | "laye
12067
12094
  }
12068
12095
  interface PillPlatedHoleProps extends Omit<PcbLayoutProps, "pcbRotation" | "layer"> {
12069
12096
  name?: string;
12097
+ connectsTo?: string | string[];
12070
12098
  shape: "pill";
12071
12099
  outerWidth: number | string;
12072
12100
  outerHeight: number | string;
@@ -12080,6 +12108,7 @@ interface PillPlatedHoleProps extends Omit<PcbLayoutProps, "pcbRotation" | "laye
12080
12108
  }
12081
12109
  interface CircularHoleWithRectPlatedProps extends Omit<PcbLayoutProps, "pcbRotation" | "layer"> {
12082
12110
  name?: string;
12111
+ connectsTo?: string | string[];
12083
12112
  shape: "circular_hole_with_rect_pad";
12084
12113
  holeDiameter: number | string;
12085
12114
  rectPadWidth: number | string;
@@ -12090,6 +12119,7 @@ interface CircularHoleWithRectPlatedProps extends Omit<PcbLayoutProps, "pcbRotat
12090
12119
  }
12091
12120
  interface PillWithRectPadPlatedHoleProps extends Omit<PcbLayoutProps, "pcbRotation" | "layer"> {
12092
12121
  name?: string;
12122
+ connectsTo?: string | string[];
12093
12123
  shape: "pill_hole_with_rect_pad";
12094
12124
  holeShape: "pill";
12095
12125
  padShape: "rect";
@@ -12115,6 +12145,7 @@ declare const platedHoleProps: z.ZodEffects<z.ZodDiscriminatedUnion<"shape", [z.
12115
12145
  }>>;
12116
12146
  }, "pcbRotation" | "layer">, {
12117
12147
  name: z.ZodOptional<z.ZodString>;
12148
+ connectsTo: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
12118
12149
  shape: z.ZodLiteral<"circle">;
12119
12150
  holeDiameter: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
12120
12151
  outerDiameter: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
@@ -12126,6 +12157,7 @@ declare const platedHoleProps: z.ZodEffects<z.ZodDiscriminatedUnion<"shape", [z.
12126
12157
  pcbX?: number | undefined;
12127
12158
  pcbY?: number | undefined;
12128
12159
  name?: string | undefined;
12160
+ connectsTo?: string | string[] | undefined;
12129
12161
  portHints?: (string | number)[] | undefined;
12130
12162
  }, {
12131
12163
  shape: "circle";
@@ -12134,6 +12166,7 @@ declare const platedHoleProps: z.ZodEffects<z.ZodDiscriminatedUnion<"shape", [z.
12134
12166
  pcbX?: string | number | undefined;
12135
12167
  pcbY?: string | number | undefined;
12136
12168
  name?: string | undefined;
12169
+ connectsTo?: string | string[] | undefined;
12137
12170
  portHints?: (string | number)[] | undefined;
12138
12171
  }>, z.ZodObject<z.objectUtil.extendShape<Omit<{
12139
12172
  pcbX: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
@@ -12150,6 +12183,7 @@ declare const platedHoleProps: z.ZodEffects<z.ZodDiscriminatedUnion<"shape", [z.
12150
12183
  }>>;
12151
12184
  }, "pcbRotation" | "layer">, {
12152
12185
  name: z.ZodOptional<z.ZodString>;
12186
+ connectsTo: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
12153
12187
  shape: z.ZodLiteral<"oval">;
12154
12188
  outerWidth: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
12155
12189
  outerHeight: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
@@ -12165,6 +12199,7 @@ declare const platedHoleProps: z.ZodEffects<z.ZodDiscriminatedUnion<"shape", [z.
12165
12199
  pcbX?: number | undefined;
12166
12200
  pcbY?: number | undefined;
12167
12201
  name?: string | undefined;
12202
+ connectsTo?: string | string[] | undefined;
12168
12203
  portHints?: (string | number)[] | undefined;
12169
12204
  holeWidth?: number | undefined;
12170
12205
  holeHeight?: number | undefined;
@@ -12179,6 +12214,7 @@ declare const platedHoleProps: z.ZodEffects<z.ZodDiscriminatedUnion<"shape", [z.
12179
12214
  pcbX?: string | number | undefined;
12180
12215
  pcbY?: string | number | undefined;
12181
12216
  name?: string | undefined;
12217
+ connectsTo?: string | string[] | undefined;
12182
12218
  portHints?: (string | number)[] | undefined;
12183
12219
  innerWidth?: string | number | undefined;
12184
12220
  innerHeight?: string | number | undefined;
@@ -12197,6 +12233,7 @@ declare const platedHoleProps: z.ZodEffects<z.ZodDiscriminatedUnion<"shape", [z.
12197
12233
  }>>;
12198
12234
  }, "pcbRotation" | "layer">, {
12199
12235
  name: z.ZodOptional<z.ZodString>;
12236
+ connectsTo: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
12200
12237
  shape: z.ZodLiteral<"pill">;
12201
12238
  outerWidth: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
12202
12239
  outerHeight: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
@@ -12212,6 +12249,7 @@ declare const platedHoleProps: z.ZodEffects<z.ZodDiscriminatedUnion<"shape", [z.
12212
12249
  pcbX?: number | undefined;
12213
12250
  pcbY?: number | undefined;
12214
12251
  name?: string | undefined;
12252
+ connectsTo?: string | string[] | undefined;
12215
12253
  portHints?: (string | number)[] | undefined;
12216
12254
  holeWidth?: number | undefined;
12217
12255
  holeHeight?: number | undefined;
@@ -12226,6 +12264,7 @@ declare const platedHoleProps: z.ZodEffects<z.ZodDiscriminatedUnion<"shape", [z.
12226
12264
  pcbX?: string | number | undefined;
12227
12265
  pcbY?: string | number | undefined;
12228
12266
  name?: string | undefined;
12267
+ connectsTo?: string | string[] | undefined;
12229
12268
  portHints?: (string | number)[] | undefined;
12230
12269
  innerWidth?: string | number | undefined;
12231
12270
  innerHeight?: string | number | undefined;
@@ -12244,6 +12283,7 @@ declare const platedHoleProps: z.ZodEffects<z.ZodDiscriminatedUnion<"shape", [z.
12244
12283
  }>>;
12245
12284
  }, "pcbRotation" | "layer">, {
12246
12285
  name: z.ZodOptional<z.ZodString>;
12286
+ connectsTo: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
12247
12287
  shape: z.ZodLiteral<"circular_hole_with_rect_pad">;
12248
12288
  holeDiameter: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
12249
12289
  rectPadWidth: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
@@ -12259,6 +12299,7 @@ declare const platedHoleProps: z.ZodEffects<z.ZodDiscriminatedUnion<"shape", [z.
12259
12299
  pcbX?: number | undefined;
12260
12300
  pcbY?: number | undefined;
12261
12301
  name?: string | undefined;
12302
+ connectsTo?: string | string[] | undefined;
12262
12303
  portHints?: (string | number)[] | undefined;
12263
12304
  holeShape?: "circle" | undefined;
12264
12305
  padShape?: "rect" | undefined;
@@ -12270,6 +12311,7 @@ declare const platedHoleProps: z.ZodEffects<z.ZodDiscriminatedUnion<"shape", [z.
12270
12311
  pcbX?: string | number | undefined;
12271
12312
  pcbY?: string | number | undefined;
12272
12313
  name?: string | undefined;
12314
+ connectsTo?: string | string[] | undefined;
12273
12315
  portHints?: (string | number)[] | undefined;
12274
12316
  holeShape?: "circle" | undefined;
12275
12317
  padShape?: "rect" | undefined;
@@ -12288,6 +12330,7 @@ declare const platedHoleProps: z.ZodEffects<z.ZodDiscriminatedUnion<"shape", [z.
12288
12330
  }>>;
12289
12331
  }, "pcbRotation" | "layer">, {
12290
12332
  name: z.ZodOptional<z.ZodString>;
12333
+ connectsTo: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
12291
12334
  shape: z.ZodLiteral<"pill_hole_with_rect_pad">;
12292
12335
  holeShape: z.ZodLiteral<"pill">;
12293
12336
  padShape: z.ZodLiteral<"rect">;
@@ -12307,6 +12350,7 @@ declare const platedHoleProps: z.ZodEffects<z.ZodDiscriminatedUnion<"shape", [z.
12307
12350
  pcbX?: number | undefined;
12308
12351
  pcbY?: number | undefined;
12309
12352
  name?: string | undefined;
12353
+ connectsTo?: string | string[] | undefined;
12310
12354
  portHints?: (string | number)[] | undefined;
12311
12355
  }, {
12312
12356
  shape: "pill_hole_with_rect_pad";
@@ -12319,6 +12363,7 @@ declare const platedHoleProps: z.ZodEffects<z.ZodDiscriminatedUnion<"shape", [z.
12319
12363
  pcbX?: string | number | undefined;
12320
12364
  pcbY?: string | number | undefined;
12321
12365
  name?: string | undefined;
12366
+ connectsTo?: string | string[] | undefined;
12322
12367
  portHints?: (string | number)[] | undefined;
12323
12368
  }>]>, {
12324
12369
  shape: "circle";
@@ -12327,6 +12372,7 @@ declare const platedHoleProps: z.ZodEffects<z.ZodDiscriminatedUnion<"shape", [z.
12327
12372
  pcbX?: number | undefined;
12328
12373
  pcbY?: number | undefined;
12329
12374
  name?: string | undefined;
12375
+ connectsTo?: string | string[] | undefined;
12330
12376
  portHints?: (string | number)[] | undefined;
12331
12377
  } | {
12332
12378
  shape: "oval";
@@ -12335,6 +12381,7 @@ declare const platedHoleProps: z.ZodEffects<z.ZodDiscriminatedUnion<"shape", [z.
12335
12381
  pcbX?: number | undefined;
12336
12382
  pcbY?: number | undefined;
12337
12383
  name?: string | undefined;
12384
+ connectsTo?: string | string[] | undefined;
12338
12385
  portHints?: (string | number)[] | undefined;
12339
12386
  holeWidth?: number | undefined;
12340
12387
  holeHeight?: number | undefined;
@@ -12347,6 +12394,7 @@ declare const platedHoleProps: z.ZodEffects<z.ZodDiscriminatedUnion<"shape", [z.
12347
12394
  pcbX?: number | undefined;
12348
12395
  pcbY?: number | undefined;
12349
12396
  name?: string | undefined;
12397
+ connectsTo?: string | string[] | undefined;
12350
12398
  portHints?: (string | number)[] | undefined;
12351
12399
  holeWidth?: number | undefined;
12352
12400
  holeHeight?: number | undefined;
@@ -12360,6 +12408,7 @@ declare const platedHoleProps: z.ZodEffects<z.ZodDiscriminatedUnion<"shape", [z.
12360
12408
  pcbX?: number | undefined;
12361
12409
  pcbY?: number | undefined;
12362
12410
  name?: string | undefined;
12411
+ connectsTo?: string | string[] | undefined;
12363
12412
  portHints?: (string | number)[] | undefined;
12364
12413
  holeShape?: "circle" | undefined;
12365
12414
  padShape?: "rect" | undefined;
@@ -12374,6 +12423,7 @@ declare const platedHoleProps: z.ZodEffects<z.ZodDiscriminatedUnion<"shape", [z.
12374
12423
  pcbX?: number | undefined;
12375
12424
  pcbY?: number | undefined;
12376
12425
  name?: string | undefined;
12426
+ connectsTo?: string | string[] | undefined;
12377
12427
  portHints?: (string | number)[] | undefined;
12378
12428
  }, {
12379
12429
  shape: "circle";
@@ -12382,6 +12432,7 @@ declare const platedHoleProps: z.ZodEffects<z.ZodDiscriminatedUnion<"shape", [z.
12382
12432
  pcbX?: string | number | undefined;
12383
12433
  pcbY?: string | number | undefined;
12384
12434
  name?: string | undefined;
12435
+ connectsTo?: string | string[] | undefined;
12385
12436
  portHints?: (string | number)[] | undefined;
12386
12437
  } | {
12387
12438
  shape: "oval";
@@ -12392,6 +12443,7 @@ declare const platedHoleProps: z.ZodEffects<z.ZodDiscriminatedUnion<"shape", [z.
12392
12443
  pcbX?: string | number | undefined;
12393
12444
  pcbY?: string | number | undefined;
12394
12445
  name?: string | undefined;
12446
+ connectsTo?: string | string[] | undefined;
12395
12447
  portHints?: (string | number)[] | undefined;
12396
12448
  innerWidth?: string | number | undefined;
12397
12449
  innerHeight?: string | number | undefined;
@@ -12404,6 +12456,7 @@ declare const platedHoleProps: z.ZodEffects<z.ZodDiscriminatedUnion<"shape", [z.
12404
12456
  pcbX?: string | number | undefined;
12405
12457
  pcbY?: string | number | undefined;
12406
12458
  name?: string | undefined;
12459
+ connectsTo?: string | string[] | undefined;
12407
12460
  portHints?: (string | number)[] | undefined;
12408
12461
  innerWidth?: string | number | undefined;
12409
12462
  innerHeight?: string | number | undefined;
@@ -12415,6 +12468,7 @@ declare const platedHoleProps: z.ZodEffects<z.ZodDiscriminatedUnion<"shape", [z.
12415
12468
  pcbX?: string | number | undefined;
12416
12469
  pcbY?: string | number | undefined;
12417
12470
  name?: string | undefined;
12471
+ connectsTo?: string | string[] | undefined;
12418
12472
  portHints?: (string | number)[] | undefined;
12419
12473
  holeShape?: "circle" | undefined;
12420
12474
  padShape?: "rect" | undefined;
@@ -12429,6 +12483,7 @@ declare const platedHoleProps: z.ZodEffects<z.ZodDiscriminatedUnion<"shape", [z.
12429
12483
  pcbX?: string | number | undefined;
12430
12484
  pcbY?: string | number | undefined;
12431
12485
  name?: string | undefined;
12486
+ connectsTo?: string | string[] | undefined;
12432
12487
  portHints?: (string | number)[] | undefined;
12433
12488
  }>;
12434
12489
 
@@ -14367,6 +14422,7 @@ declare const stampboardProps: z.ZodObject<z.objectUtil.extendShape<z.objectUtil
14367
14422
  matchAdaptTemplate: z.ZodOptional<z.ZodAny>;
14368
14423
  name: z.ZodOptional<z.ZodString>;
14369
14424
  children: z.ZodOptional<z.ZodAny>;
14425
+ schTitle: z.ZodOptional<z.ZodString>;
14370
14426
  key: z.ZodOptional<z.ZodAny>;
14371
14427
  }>, {
14372
14428
  layout: z.ZodOptional<z.ZodType<_tscircuit_layout.LayoutBuilder, z.ZodTypeDef, _tscircuit_layout.LayoutBuilder>>;
@@ -14642,6 +14698,7 @@ declare const stampboardProps: z.ZodObject<z.objectUtil.extendShape<z.objectUtil
14642
14698
  height?: number | undefined;
14643
14699
  matchAdapt?: boolean | undefined;
14644
14700
  matchAdaptTemplate?: any;
14701
+ schTitle?: string | undefined;
14645
14702
  pcbWidth?: number | undefined;
14646
14703
  pcbHeight?: number | undefined;
14647
14704
  schWidth?: number | undefined;
@@ -14822,6 +14879,7 @@ declare const stampboardProps: z.ZodObject<z.objectUtil.extendShape<z.objectUtil
14822
14879
  height?: string | number | undefined;
14823
14880
  matchAdapt?: boolean | undefined;
14824
14881
  matchAdaptTemplate?: any;
14882
+ schTitle?: string | undefined;
14825
14883
  pcbWidth?: string | number | undefined;
14826
14884
  pcbHeight?: string | number | undefined;
14827
14885
  schWidth?: string | number | undefined;
@@ -17934,18 +17992,18 @@ declare const netLabelProps: z.ZodObject<{
17934
17992
  schX?: number | undefined;
17935
17993
  schY?: number | undefined;
17936
17994
  schRotation?: number | undefined;
17995
+ connectsTo?: string | string[] | undefined;
17937
17996
  net?: string | undefined;
17938
17997
  connection?: string | undefined;
17939
17998
  anchorSide?: "left" | "right" | "top" | "bottom" | undefined;
17940
- connectsTo?: string | string[] | undefined;
17941
17999
  }, {
17942
18000
  schX?: string | number | undefined;
17943
18001
  schY?: string | number | undefined;
17944
18002
  schRotation?: string | number | undefined;
18003
+ connectsTo?: string | string[] | undefined;
17945
18004
  net?: string | undefined;
17946
18005
  connection?: string | undefined;
17947
18006
  anchorSide?: "left" | "right" | "top" | "bottom" | undefined;
17948
- connectsTo?: string | string[] | undefined;
17949
18007
  }>;
17950
18008
 
17951
18009
  type PushButtonProps<T extends PinLabelsProp | string = string> = ChipProps<T>;
@@ -19000,6 +19058,7 @@ declare const subcircuitProps: z.ZodObject<z.objectUtil.extendShape<z.objectUtil
19000
19058
  matchAdaptTemplate: z.ZodOptional<z.ZodAny>;
19001
19059
  name: z.ZodOptional<z.ZodString>;
19002
19060
  children: z.ZodOptional<z.ZodAny>;
19061
+ schTitle: z.ZodOptional<z.ZodString>;
19003
19062
  key: z.ZodOptional<z.ZodAny>;
19004
19063
  }>, {
19005
19064
  layout: z.ZodOptional<z.ZodType<_tscircuit_layout.LayoutBuilder, z.ZodTypeDef, _tscircuit_layout.LayoutBuilder>>;
@@ -19243,6 +19302,7 @@ declare const subcircuitProps: z.ZodObject<z.objectUtil.extendShape<z.objectUtil
19243
19302
  height?: number | undefined;
19244
19303
  matchAdapt?: boolean | undefined;
19245
19304
  matchAdaptTemplate?: any;
19305
+ schTitle?: string | undefined;
19246
19306
  pcbWidth?: number | undefined;
19247
19307
  pcbHeight?: number | undefined;
19248
19308
  schWidth?: number | undefined;
@@ -19407,6 +19467,7 @@ declare const subcircuitProps: z.ZodObject<z.objectUtil.extendShape<z.objectUtil
19407
19467
  height?: string | number | undefined;
19408
19468
  matchAdapt?: boolean | undefined;
19409
19469
  matchAdaptTemplate?: any;
19470
+ schTitle?: string | undefined;
19410
19471
  pcbWidth?: string | number | undefined;
19411
19472
  pcbHeight?: string | number | undefined;
19412
19473
  schWidth?: string | number | undefined;
package/dist/index.js CHANGED
@@ -386,6 +386,7 @@ var autorouterProp = z22.union([
386
386
  var baseGroupProps = commonLayoutProps.extend({
387
387
  name: z22.string().optional(),
388
388
  children: z22.any().optional(),
389
+ schTitle: z22.string().optional(),
389
390
  key: z22.any().optional(),
390
391
  ...layoutConfig.shape,
391
392
  pcbWidth: length.optional(),
@@ -562,6 +563,7 @@ var distanceHiddenUndefined = z31.custom().transform((a) => {
562
563
  var platedHoleProps = z31.discriminatedUnion("shape", [
563
564
  pcbLayoutProps.omit({ pcbRotation: true, layer: true }).extend({
564
565
  name: z31.string().optional(),
566
+ connectsTo: z31.string().or(z31.array(z31.string())).optional(),
565
567
  shape: z31.literal("circle"),
566
568
  holeDiameter: distance10,
567
569
  outerDiameter: distance10,
@@ -569,6 +571,7 @@ var platedHoleProps = z31.discriminatedUnion("shape", [
569
571
  }),
570
572
  pcbLayoutProps.omit({ pcbRotation: true, layer: true }).extend({
571
573
  name: z31.string().optional(),
574
+ connectsTo: z31.string().or(z31.array(z31.string())).optional(),
572
575
  shape: z31.literal("oval"),
573
576
  outerWidth: distance10,
574
577
  outerHeight: distance10,
@@ -580,6 +583,7 @@ var platedHoleProps = z31.discriminatedUnion("shape", [
580
583
  }),
581
584
  pcbLayoutProps.omit({ pcbRotation: true, layer: true }).extend({
582
585
  name: z31.string().optional(),
586
+ connectsTo: z31.string().or(z31.array(z31.string())).optional(),
583
587
  shape: z31.literal("pill"),
584
588
  outerWidth: distance10,
585
589
  outerHeight: distance10,
@@ -591,6 +595,7 @@ var platedHoleProps = z31.discriminatedUnion("shape", [
591
595
  }),
592
596
  pcbLayoutProps.omit({ pcbRotation: true, layer: true }).extend({
593
597
  name: z31.string().optional(),
598
+ connectsTo: z31.string().or(z31.array(z31.string())).optional(),
594
599
  shape: z31.literal("circular_hole_with_rect_pad"),
595
600
  holeDiameter: distance10,
596
601
  rectPadWidth: distance10,
@@ -601,6 +606,7 @@ var platedHoleProps = z31.discriminatedUnion("shape", [
601
606
  }),
602
607
  pcbLayoutProps.omit({ pcbRotation: true, layer: true }).extend({
603
608
  name: z31.string().optional(),
609
+ connectsTo: z31.string().or(z31.array(z31.string())).optional(),
604
610
  shape: z31.literal("pill_hole_with_rect_pad"),
605
611
  holeShape: z31.literal("pill"),
606
612
  padShape: z31.literal("rect"),