@tscircuit/props 0.0.585 → 0.0.587

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
@@ -278,6 +278,7 @@ export interface BatteryProps<
278
278
  voltage?: number | string;
279
279
  standard?: "AA" | "AAA" | "9V" | "CR2032" | "18650" | "C";
280
280
  schOrientation?: SchematicOrientation;
281
+ connections?: Connections<BatteryPinLabels>;
281
282
  }
282
283
  ```
283
284
 
@@ -441,6 +442,12 @@ export interface ChipPropsSU<
441
442
  schWidth?: Distance;
442
443
  schHeight?: Distance;
443
444
  noSchematicRepresentation?: boolean;
445
+ /**
446
+ * Whether to show the components from `internalCircuit` in the schematic.
447
+ * When false, the chip's schematic box is shown instead.
448
+ * @default false
449
+ */
450
+ schShowInternalCircuit?: boolean;
444
451
  internallyConnectedPins?: (string | number)[][];
445
452
  externallyConnectedPins?: string[][];
446
453
  /**
@@ -1534,6 +1541,10 @@ export interface SchematicArcProps {
1534
1541
 
1535
1542
  ```ts
1536
1543
  export interface SchematicBoxProps {
1544
+ name?: string;
1545
+ chipRef?: string;
1546
+ pinLabels?: PinLabelsProp;
1547
+ schPinArrangement?: SchematicPinArrangement;
1537
1548
  schX?: Distance;
1538
1549
  schY?: Distance;
1539
1550
  width?: Distance;
package/dist/index.d.ts CHANGED
@@ -29942,6 +29942,12 @@ interface ChipPropsSU<PinLabel extends SchematicPinLabel = SchematicPinLabel> ex
29942
29942
  schWidth?: Distance;
29943
29943
  schHeight?: Distance;
29944
29944
  noSchematicRepresentation?: boolean;
29945
+ /**
29946
+ * Whether to show the components from `internalCircuit` in the schematic.
29947
+ * When false, the chip's schematic box is shown instead.
29948
+ * @default false
29949
+ */
29950
+ schShowInternalCircuit?: boolean;
29945
29951
  internallyConnectedPins?: (string | number)[][];
29946
29952
  externallyConnectedPins?: string[][];
29947
29953
  /**
@@ -33651,12 +33657,14 @@ declare const chipProps: z.ZodObject<{
33651
33657
  schWidth: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
33652
33658
  schHeight: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
33653
33659
  noSchematicRepresentation: z.ZodOptional<z.ZodBoolean>;
33660
+ schShowInternalCircuit: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
33654
33661
  noConnect: z.ZodOptional<z.ZodUnion<[z.ZodReadonly<z.ZodArray<z.ZodString, "many">>, z.ZodArray<z.ZodString, "many">]>>;
33655
33662
  connections: z.ZodOptional<z.ZodPipeline<z.ZodType<Partial<Record<string, string | string[] | readonly string[]>>, z.ZodTypeDef, Partial<Record<string, string | string[] | readonly string[]>>>, z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodReadonly<z.ZodArray<z.ZodString, "many">>]>, z.ZodArray<z.ZodString, "many">]>>>>;
33656
33663
  spiceModel: z.ZodOptional<z.ZodType<SpiceModelElement, z.ZodTypeDef, SpiceModelElement>>;
33657
33664
  internalCircuit: z.ZodOptional<z.ZodType<InternalCircuitElement, z.ZodTypeDef, InternalCircuitElement>>;
33658
33665
  }, "strip", z.ZodTypeAny, {
33659
33666
  name: string;
33667
+ schShowInternalCircuit: boolean;
33660
33668
  symbol?: SymbolProp | undefined;
33661
33669
  showAsTranslucentModel?: boolean | undefined;
33662
33670
  key?: any;
@@ -34968,6 +34976,7 @@ declare const chipProps: z.ZodObject<{
34968
34976
  supplierPartNumber?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
34969
34977
  }[] | undefined;
34970
34978
  noSchematicRepresentation?: boolean | undefined;
34979
+ schShowInternalCircuit?: boolean | undefined;
34971
34980
  noConnect?: readonly string[] | string[] | undefined;
34972
34981
  spiceModel?: SpiceModelElement | undefined;
34973
34982
  internalCircuit?: InternalCircuitElement | undefined;
@@ -38628,12 +38637,14 @@ declare const bugProps: z.ZodObject<{
38628
38637
  schWidth: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
38629
38638
  schHeight: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
38630
38639
  noSchematicRepresentation: z.ZodOptional<z.ZodBoolean>;
38640
+ schShowInternalCircuit: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
38631
38641
  noConnect: z.ZodOptional<z.ZodUnion<[z.ZodReadonly<z.ZodArray<z.ZodString, "many">>, z.ZodArray<z.ZodString, "many">]>>;
38632
38642
  connections: z.ZodOptional<z.ZodPipeline<z.ZodType<Partial<Record<string, string | string[] | readonly string[]>>, z.ZodTypeDef, Partial<Record<string, string | string[] | readonly string[]>>>, z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodReadonly<z.ZodArray<z.ZodString, "many">>]>, z.ZodArray<z.ZodString, "many">]>>>>;
38633
38643
  spiceModel: z.ZodOptional<z.ZodType<SpiceModelElement, z.ZodTypeDef, SpiceModelElement>>;
38634
38644
  internalCircuit: z.ZodOptional<z.ZodType<InternalCircuitElement, z.ZodTypeDef, InternalCircuitElement>>;
38635
38645
  }, "strip", z.ZodTypeAny, {
38636
38646
  name: string;
38647
+ schShowInternalCircuit: boolean;
38637
38648
  symbol?: SymbolProp | undefined;
38638
38649
  showAsTranslucentModel?: boolean | undefined;
38639
38650
  key?: any;
@@ -39945,6 +39956,7 @@ declare const bugProps: z.ZodObject<{
39945
39956
  supplierPartNumber?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
39946
39957
  }[] | undefined;
39947
39958
  noSchematicRepresentation?: boolean | undefined;
39959
+ schShowInternalCircuit?: boolean | undefined;
39948
39960
  noConnect?: readonly string[] | string[] | undefined;
39949
39961
  spiceModel?: SpiceModelElement | undefined;
39950
39962
  internalCircuit?: InternalCircuitElement | undefined;
@@ -43604,12 +43616,14 @@ declare const pinoutProps: z.ZodObject<{
43604
43616
  schWidth: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
43605
43617
  schHeight: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
43606
43618
  noSchematicRepresentation: z.ZodOptional<z.ZodBoolean>;
43619
+ schShowInternalCircuit: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
43607
43620
  noConnect: z.ZodOptional<z.ZodUnion<[z.ZodReadonly<z.ZodArray<z.ZodString, "many">>, z.ZodArray<z.ZodString, "many">]>>;
43608
43621
  connections: z.ZodOptional<z.ZodPipeline<z.ZodType<Partial<Record<string, string | string[] | readonly string[]>>, z.ZodTypeDef, Partial<Record<string, string | string[] | readonly string[]>>>, z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodReadonly<z.ZodArray<z.ZodString, "many">>]>, z.ZodArray<z.ZodString, "many">]>>>>;
43609
43622
  spiceModel: z.ZodOptional<z.ZodType<SpiceModelElement, z.ZodTypeDef, SpiceModelElement>>;
43610
43623
  internalCircuit: z.ZodOptional<z.ZodType<InternalCircuitElement, z.ZodTypeDef, InternalCircuitElement>>;
43611
43624
  }, "strip", z.ZodTypeAny, {
43612
43625
  name: string;
43626
+ schShowInternalCircuit: boolean;
43613
43627
  symbol?: SymbolProp | undefined;
43614
43628
  showAsTranslucentModel?: boolean | undefined;
43615
43629
  key?: any;
@@ -44921,6 +44935,7 @@ declare const pinoutProps: z.ZodObject<{
44921
44935
  supplierPartNumber?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
44922
44936
  }[] | undefined;
44923
44937
  noSchematicRepresentation?: boolean | undefined;
44938
+ schShowInternalCircuit?: boolean | undefined;
44924
44939
  noConnect?: readonly string[] | string[] | undefined;
44925
44940
  spiceModel?: SpiceModelElement | undefined;
44926
44941
  internalCircuit?: InternalCircuitElement | undefined;
@@ -58526,6 +58541,7 @@ declare const connectorProps: z.ZodObject<{
58526
58541
  schWidth: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
58527
58542
  schHeight: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
58528
58543
  noSchematicRepresentation: z.ZodOptional<z.ZodBoolean>;
58544
+ schShowInternalCircuit: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
58529
58545
  noConnect: z.ZodOptional<z.ZodUnion<[z.ZodReadonly<z.ZodArray<z.ZodString, "many">>, z.ZodArray<z.ZodString, "many">]>>;
58530
58546
  connections: z.ZodOptional<z.ZodPipeline<z.ZodType<Partial<Record<string, string | string[] | readonly string[]>>, z.ZodTypeDef, Partial<Record<string, string | string[] | readonly string[]>>>, z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodReadonly<z.ZodArray<z.ZodString, "many">>]>, z.ZodArray<z.ZodString, "many">]>>>>;
58531
58547
  spiceModel: z.ZodOptional<z.ZodType<SpiceModelElement, z.ZodTypeDef, SpiceModelElement>>;
@@ -58534,6 +58550,7 @@ declare const connectorProps: z.ZodObject<{
58534
58550
  standard: z.ZodOptional<z.ZodEnum<["usb_c", "m2"]>>;
58535
58551
  }, "strip", z.ZodTypeAny, {
58536
58552
  name: string;
58553
+ schShowInternalCircuit: boolean;
58537
58554
  symbol?: SymbolProp | undefined;
58538
58555
  showAsTranslucentModel?: boolean | undefined;
58539
58556
  key?: any;
@@ -59846,6 +59863,7 @@ declare const connectorProps: z.ZodObject<{
59846
59863
  supplierPartNumber?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
59847
59864
  }[] | undefined;
59848
59865
  noSchematicRepresentation?: boolean | undefined;
59866
+ schShowInternalCircuit?: boolean | undefined;
59849
59867
  noConnect?: readonly string[] | string[] | undefined;
59850
59868
  spiceModel?: SpiceModelElement | undefined;
59851
59869
  internalCircuit?: InternalCircuitElement | undefined;
@@ -119550,12 +119568,14 @@ declare const pushButtonProps: z.ZodObject<{
119550
119568
  schWidth: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
119551
119569
  schHeight: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
119552
119570
  noSchematicRepresentation: z.ZodOptional<z.ZodBoolean>;
119571
+ schShowInternalCircuit: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
119553
119572
  noConnect: z.ZodOptional<z.ZodUnion<[z.ZodReadonly<z.ZodArray<z.ZodString, "many">>, z.ZodArray<z.ZodString, "many">]>>;
119554
119573
  connections: z.ZodOptional<z.ZodPipeline<z.ZodType<Partial<Record<string, string | string[] | readonly string[]>>, z.ZodTypeDef, Partial<Record<string, string | string[] | readonly string[]>>>, z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodReadonly<z.ZodArray<z.ZodString, "many">>]>, z.ZodArray<z.ZodString, "many">]>>>>;
119555
119574
  spiceModel: z.ZodOptional<z.ZodType<SpiceModelElement, z.ZodTypeDef, SpiceModelElement>>;
119556
119575
  internalCircuit: z.ZodOptional<z.ZodType<InternalCircuitElement, z.ZodTypeDef, InternalCircuitElement>>;
119557
119576
  }, "strip", z.ZodTypeAny, {
119558
119577
  name: string;
119578
+ schShowInternalCircuit: boolean;
119559
119579
  symbol?: SymbolProp | undefined;
119560
119580
  showAsTranslucentModel?: boolean | undefined;
119561
119581
  key?: any;
@@ -120867,6 +120887,7 @@ declare const pushButtonProps: z.ZodObject<{
120867
120887
  supplierPartNumber?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
120868
120888
  }[] | undefined;
120869
120889
  noSchematicRepresentation?: boolean | undefined;
120890
+ schShowInternalCircuit?: boolean | undefined;
120870
120891
  noConnect?: readonly string[] | string[] | undefined;
120871
120892
  spiceModel?: SpiceModelElement | undefined;
120872
120893
  internalCircuit?: InternalCircuitElement | undefined;
@@ -188194,6 +188215,133 @@ declare const toolingrailProps: z.ZodObject<{
188194
188215
  }>;
188195
188216
 
188196
188217
  declare const schematicBoxProps: z.ZodEffects<z.ZodEffects<z.ZodObject<{
188218
+ name: z.ZodOptional<z.ZodString>;
188219
+ chipRef: z.ZodOptional<z.ZodString>;
188220
+ pinLabels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodReadonly<z.ZodArray<z.ZodString, "many">>]>, z.ZodArray<z.ZodString, "many">]>>>;
188221
+ schPinArrangement: z.ZodOptional<z.ZodObject<{
188222
+ leftSize: z.ZodOptional<z.ZodNumber>;
188223
+ topSize: z.ZodOptional<z.ZodNumber>;
188224
+ rightSize: z.ZodOptional<z.ZodNumber>;
188225
+ bottomSize: z.ZodOptional<z.ZodNumber>;
188226
+ leftPinCount: z.ZodOptional<z.ZodNumber>;
188227
+ rightPinCount: z.ZodOptional<z.ZodNumber>;
188228
+ topPinCount: z.ZodOptional<z.ZodNumber>;
188229
+ bottomPinCount: z.ZodOptional<z.ZodNumber>;
188230
+ leftSide: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodObject<{
188231
+ pins: z.ZodArray<z.ZodUnion<[z.ZodNumber, z.ZodString]>, "many">;
188232
+ direction: z.ZodUnion<[z.ZodLiteral<"top-to-bottom">, z.ZodLiteral<"left-to-right">, z.ZodLiteral<"bottom-to-top">, z.ZodLiteral<"right-to-left">]>;
188233
+ }, "strip", z.ZodTypeAny, {
188234
+ pins: (string | number)[];
188235
+ direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
188236
+ }, {
188237
+ pins: (string | number)[];
188238
+ direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
188239
+ }>, z.ZodArray<z.ZodUnion<[z.ZodNumber, z.ZodString]>, "many">]>, {
188240
+ pins: (string | number)[];
188241
+ direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
188242
+ }, (string | number)[] | {
188243
+ pins: (string | number)[];
188244
+ direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
188245
+ }>>;
188246
+ rightSide: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodObject<{
188247
+ pins: z.ZodArray<z.ZodUnion<[z.ZodNumber, z.ZodString]>, "many">;
188248
+ direction: z.ZodUnion<[z.ZodLiteral<"top-to-bottom">, z.ZodLiteral<"left-to-right">, z.ZodLiteral<"bottom-to-top">, z.ZodLiteral<"right-to-left">]>;
188249
+ }, "strip", z.ZodTypeAny, {
188250
+ pins: (string | number)[];
188251
+ direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
188252
+ }, {
188253
+ pins: (string | number)[];
188254
+ direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
188255
+ }>, z.ZodArray<z.ZodUnion<[z.ZodNumber, z.ZodString]>, "many">]>, {
188256
+ pins: (string | number)[];
188257
+ direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
188258
+ }, (string | number)[] | {
188259
+ pins: (string | number)[];
188260
+ direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
188261
+ }>>;
188262
+ topSide: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodObject<{
188263
+ pins: z.ZodArray<z.ZodUnion<[z.ZodNumber, z.ZodString]>, "many">;
188264
+ direction: z.ZodUnion<[z.ZodLiteral<"top-to-bottom">, z.ZodLiteral<"left-to-right">, z.ZodLiteral<"bottom-to-top">, z.ZodLiteral<"right-to-left">]>;
188265
+ }, "strip", z.ZodTypeAny, {
188266
+ pins: (string | number)[];
188267
+ direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
188268
+ }, {
188269
+ pins: (string | number)[];
188270
+ direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
188271
+ }>, z.ZodArray<z.ZodUnion<[z.ZodNumber, z.ZodString]>, "many">]>, {
188272
+ pins: (string | number)[];
188273
+ direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
188274
+ }, (string | number)[] | {
188275
+ pins: (string | number)[];
188276
+ direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
188277
+ }>>;
188278
+ bottomSide: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodObject<{
188279
+ pins: z.ZodArray<z.ZodUnion<[z.ZodNumber, z.ZodString]>, "many">;
188280
+ direction: z.ZodUnion<[z.ZodLiteral<"top-to-bottom">, z.ZodLiteral<"left-to-right">, z.ZodLiteral<"bottom-to-top">, z.ZodLiteral<"right-to-left">]>;
188281
+ }, "strip", z.ZodTypeAny, {
188282
+ pins: (string | number)[];
188283
+ direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
188284
+ }, {
188285
+ pins: (string | number)[];
188286
+ direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
188287
+ }>, z.ZodArray<z.ZodUnion<[z.ZodNumber, z.ZodString]>, "many">]>, {
188288
+ pins: (string | number)[];
188289
+ direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
188290
+ }, (string | number)[] | {
188291
+ pins: (string | number)[];
188292
+ direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
188293
+ }>>;
188294
+ }, "strip", z.ZodTypeAny, {
188295
+ leftSize?: number | undefined;
188296
+ topSize?: number | undefined;
188297
+ rightSize?: number | undefined;
188298
+ bottomSize?: number | undefined;
188299
+ leftSide?: {
188300
+ pins: (string | number)[];
188301
+ direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
188302
+ } | undefined;
188303
+ topSide?: {
188304
+ pins: (string | number)[];
188305
+ direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
188306
+ } | undefined;
188307
+ rightSide?: {
188308
+ pins: (string | number)[];
188309
+ direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
188310
+ } | undefined;
188311
+ bottomSide?: {
188312
+ pins: (string | number)[];
188313
+ direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
188314
+ } | undefined;
188315
+ leftPinCount?: number | undefined;
188316
+ rightPinCount?: number | undefined;
188317
+ topPinCount?: number | undefined;
188318
+ bottomPinCount?: number | undefined;
188319
+ }, {
188320
+ leftSize?: number | undefined;
188321
+ topSize?: number | undefined;
188322
+ rightSize?: number | undefined;
188323
+ bottomSize?: number | undefined;
188324
+ leftSide?: (string | number)[] | {
188325
+ pins: (string | number)[];
188326
+ direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
188327
+ } | undefined;
188328
+ topSide?: (string | number)[] | {
188329
+ pins: (string | number)[];
188330
+ direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
188331
+ } | undefined;
188332
+ rightSide?: (string | number)[] | {
188333
+ pins: (string | number)[];
188334
+ direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
188335
+ } | undefined;
188336
+ bottomSide?: (string | number)[] | {
188337
+ pins: (string | number)[];
188338
+ direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
188339
+ } | undefined;
188340
+ leftPinCount?: number | undefined;
188341
+ rightPinCount?: number | undefined;
188342
+ topPinCount?: number | undefined;
188343
+ bottomPinCount?: number | undefined;
188344
+ }>>;
188197
188345
  schX: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
188198
188346
  schY: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
188199
188347
  width: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
@@ -188216,6 +188364,7 @@ declare const schematicBoxProps: z.ZodEffects<z.ZodEffects<z.ZodObject<{
188216
188364
  strokeStyle: "dashed" | "solid";
188217
188365
  width?: number | undefined;
188218
188366
  height?: number | undefined;
188367
+ name?: string | undefined;
188219
188368
  schX?: number | undefined;
188220
188369
  schY?: number | undefined;
188221
188370
  padding?: number | undefined;
@@ -188223,13 +188372,42 @@ declare const schematicBoxProps: z.ZodEffects<z.ZodEffects<z.ZodObject<{
188223
188372
  paddingRight?: number | undefined;
188224
188373
  paddingTop?: number | undefined;
188225
188374
  paddingBottom?: number | undefined;
188375
+ schPinArrangement?: {
188376
+ leftSize?: number | undefined;
188377
+ topSize?: number | undefined;
188378
+ rightSize?: number | undefined;
188379
+ bottomSize?: number | undefined;
188380
+ leftSide?: {
188381
+ pins: (string | number)[];
188382
+ direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
188383
+ } | undefined;
188384
+ topSide?: {
188385
+ pins: (string | number)[];
188386
+ direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
188387
+ } | undefined;
188388
+ rightSide?: {
188389
+ pins: (string | number)[];
188390
+ direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
188391
+ } | undefined;
188392
+ bottomSide?: {
188393
+ pins: (string | number)[];
188394
+ direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
188395
+ } | undefined;
188396
+ leftPinCount?: number | undefined;
188397
+ rightPinCount?: number | undefined;
188398
+ topPinCount?: number | undefined;
188399
+ bottomPinCount?: number | undefined;
188400
+ } | undefined;
188226
188401
  title?: string | undefined;
188402
+ pinLabels?: Record<string, string | readonly string[] | string[]> | undefined;
188403
+ chipRef?: string | undefined;
188227
188404
  overlay?: string[] | undefined;
188228
188405
  titleColor?: string | undefined;
188229
188406
  titleFontSize?: number | undefined;
188230
188407
  }, {
188231
188408
  width?: string | number | undefined;
188232
188409
  height?: string | number | undefined;
188410
+ name?: string | undefined;
188233
188411
  schX?: string | number | undefined;
188234
188412
  schY?: string | number | undefined;
188235
188413
  padding?: string | number | undefined;
@@ -188237,7 +188415,35 @@ declare const schematicBoxProps: z.ZodEffects<z.ZodEffects<z.ZodObject<{
188237
188415
  paddingRight?: string | number | undefined;
188238
188416
  paddingTop?: string | number | undefined;
188239
188417
  paddingBottom?: string | number | undefined;
188418
+ schPinArrangement?: {
188419
+ leftSize?: number | undefined;
188420
+ topSize?: number | undefined;
188421
+ rightSize?: number | undefined;
188422
+ bottomSize?: number | undefined;
188423
+ leftSide?: (string | number)[] | {
188424
+ pins: (string | number)[];
188425
+ direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
188426
+ } | undefined;
188427
+ topSide?: (string | number)[] | {
188428
+ pins: (string | number)[];
188429
+ direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
188430
+ } | undefined;
188431
+ rightSide?: (string | number)[] | {
188432
+ pins: (string | number)[];
188433
+ direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
188434
+ } | undefined;
188435
+ bottomSide?: (string | number)[] | {
188436
+ pins: (string | number)[];
188437
+ direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
188438
+ } | undefined;
188439
+ leftPinCount?: number | undefined;
188440
+ rightPinCount?: number | undefined;
188441
+ topPinCount?: number | undefined;
188442
+ bottomPinCount?: number | undefined;
188443
+ } | undefined;
188240
188444
  title?: string | undefined;
188445
+ pinLabels?: Record<string, string | readonly string[] | string[]> | undefined;
188446
+ chipRef?: string | undefined;
188241
188447
  overlay?: string[] | undefined;
188242
188448
  titleAlignment?: "top_left" | "top_center" | "top_right" | "center_left" | "center" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | undefined;
188243
188449
  titleColor?: string | undefined;
@@ -188250,6 +188456,7 @@ declare const schematicBoxProps: z.ZodEffects<z.ZodEffects<z.ZodObject<{
188250
188456
  strokeStyle: "dashed" | "solid";
188251
188457
  width?: number | undefined;
188252
188458
  height?: number | undefined;
188459
+ name?: string | undefined;
188253
188460
  schX?: number | undefined;
188254
188461
  schY?: number | undefined;
188255
188462
  padding?: number | undefined;
@@ -188257,13 +188464,42 @@ declare const schematicBoxProps: z.ZodEffects<z.ZodEffects<z.ZodObject<{
188257
188464
  paddingRight?: number | undefined;
188258
188465
  paddingTop?: number | undefined;
188259
188466
  paddingBottom?: number | undefined;
188467
+ schPinArrangement?: {
188468
+ leftSize?: number | undefined;
188469
+ topSize?: number | undefined;
188470
+ rightSize?: number | undefined;
188471
+ bottomSize?: number | undefined;
188472
+ leftSide?: {
188473
+ pins: (string | number)[];
188474
+ direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
188475
+ } | undefined;
188476
+ topSide?: {
188477
+ pins: (string | number)[];
188478
+ direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
188479
+ } | undefined;
188480
+ rightSide?: {
188481
+ pins: (string | number)[];
188482
+ direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
188483
+ } | undefined;
188484
+ bottomSide?: {
188485
+ pins: (string | number)[];
188486
+ direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
188487
+ } | undefined;
188488
+ leftPinCount?: number | undefined;
188489
+ rightPinCount?: number | undefined;
188490
+ topPinCount?: number | undefined;
188491
+ bottomPinCount?: number | undefined;
188492
+ } | undefined;
188260
188493
  title?: string | undefined;
188494
+ pinLabels?: Record<string, string | readonly string[] | string[]> | undefined;
188495
+ chipRef?: string | undefined;
188261
188496
  overlay?: string[] | undefined;
188262
188497
  titleColor?: string | undefined;
188263
188498
  titleFontSize?: number | undefined;
188264
188499
  }, {
188265
188500
  width?: string | number | undefined;
188266
188501
  height?: string | number | undefined;
188502
+ name?: string | undefined;
188267
188503
  schX?: string | number | undefined;
188268
188504
  schY?: string | number | undefined;
188269
188505
  padding?: string | number | undefined;
@@ -188271,7 +188507,35 @@ declare const schematicBoxProps: z.ZodEffects<z.ZodEffects<z.ZodObject<{
188271
188507
  paddingRight?: string | number | undefined;
188272
188508
  paddingTop?: string | number | undefined;
188273
188509
  paddingBottom?: string | number | undefined;
188510
+ schPinArrangement?: {
188511
+ leftSize?: number | undefined;
188512
+ topSize?: number | undefined;
188513
+ rightSize?: number | undefined;
188514
+ bottomSize?: number | undefined;
188515
+ leftSide?: (string | number)[] | {
188516
+ pins: (string | number)[];
188517
+ direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
188518
+ } | undefined;
188519
+ topSide?: (string | number)[] | {
188520
+ pins: (string | number)[];
188521
+ direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
188522
+ } | undefined;
188523
+ rightSide?: (string | number)[] | {
188524
+ pins: (string | number)[];
188525
+ direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
188526
+ } | undefined;
188527
+ bottomSide?: (string | number)[] | {
188528
+ pins: (string | number)[];
188529
+ direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
188530
+ } | undefined;
188531
+ leftPinCount?: number | undefined;
188532
+ rightPinCount?: number | undefined;
188533
+ topPinCount?: number | undefined;
188534
+ bottomPinCount?: number | undefined;
188535
+ } | undefined;
188274
188536
  title?: string | undefined;
188537
+ pinLabels?: Record<string, string | readonly string[] | string[]> | undefined;
188538
+ chipRef?: string | undefined;
188275
188539
  overlay?: string[] | undefined;
188276
188540
  titleAlignment?: "top_left" | "top_center" | "top_right" | "center_left" | "center" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | undefined;
188277
188541
  titleColor?: string | undefined;
@@ -188284,6 +188548,7 @@ declare const schematicBoxProps: z.ZodEffects<z.ZodEffects<z.ZodObject<{
188284
188548
  strokeStyle: "dashed" | "solid";
188285
188549
  width?: number | undefined;
188286
188550
  height?: number | undefined;
188551
+ name?: string | undefined;
188287
188552
  schX?: number | undefined;
188288
188553
  schY?: number | undefined;
188289
188554
  padding?: number | undefined;
@@ -188291,13 +188556,42 @@ declare const schematicBoxProps: z.ZodEffects<z.ZodEffects<z.ZodObject<{
188291
188556
  paddingRight?: number | undefined;
188292
188557
  paddingTop?: number | undefined;
188293
188558
  paddingBottom?: number | undefined;
188559
+ schPinArrangement?: {
188560
+ leftSize?: number | undefined;
188561
+ topSize?: number | undefined;
188562
+ rightSize?: number | undefined;
188563
+ bottomSize?: number | undefined;
188564
+ leftSide?: {
188565
+ pins: (string | number)[];
188566
+ direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
188567
+ } | undefined;
188568
+ topSide?: {
188569
+ pins: (string | number)[];
188570
+ direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
188571
+ } | undefined;
188572
+ rightSide?: {
188573
+ pins: (string | number)[];
188574
+ direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
188575
+ } | undefined;
188576
+ bottomSide?: {
188577
+ pins: (string | number)[];
188578
+ direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
188579
+ } | undefined;
188580
+ leftPinCount?: number | undefined;
188581
+ rightPinCount?: number | undefined;
188582
+ topPinCount?: number | undefined;
188583
+ bottomPinCount?: number | undefined;
188584
+ } | undefined;
188294
188585
  title?: string | undefined;
188586
+ pinLabels?: Record<string, string | readonly string[] | string[]> | undefined;
188587
+ chipRef?: string | undefined;
188295
188588
  overlay?: string[] | undefined;
188296
188589
  titleColor?: string | undefined;
188297
188590
  titleFontSize?: number | undefined;
188298
188591
  }, {
188299
188592
  width?: string | number | undefined;
188300
188593
  height?: string | number | undefined;
188594
+ name?: string | undefined;
188301
188595
  schX?: string | number | undefined;
188302
188596
  schY?: string | number | undefined;
188303
188597
  padding?: string | number | undefined;
@@ -188305,7 +188599,35 @@ declare const schematicBoxProps: z.ZodEffects<z.ZodEffects<z.ZodObject<{
188305
188599
  paddingRight?: string | number | undefined;
188306
188600
  paddingTop?: string | number | undefined;
188307
188601
  paddingBottom?: string | number | undefined;
188602
+ schPinArrangement?: {
188603
+ leftSize?: number | undefined;
188604
+ topSize?: number | undefined;
188605
+ rightSize?: number | undefined;
188606
+ bottomSize?: number | undefined;
188607
+ leftSide?: (string | number)[] | {
188608
+ pins: (string | number)[];
188609
+ direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
188610
+ } | undefined;
188611
+ topSide?: (string | number)[] | {
188612
+ pins: (string | number)[];
188613
+ direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
188614
+ } | undefined;
188615
+ rightSide?: (string | number)[] | {
188616
+ pins: (string | number)[];
188617
+ direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
188618
+ } | undefined;
188619
+ bottomSide?: (string | number)[] | {
188620
+ pins: (string | number)[];
188621
+ direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
188622
+ } | undefined;
188623
+ leftPinCount?: number | undefined;
188624
+ rightPinCount?: number | undefined;
188625
+ topPinCount?: number | undefined;
188626
+ bottomPinCount?: number | undefined;
188627
+ } | undefined;
188308
188628
  title?: string | undefined;
188629
+ pinLabels?: Record<string, string | readonly string[] | string[]> | undefined;
188630
+ chipRef?: string | undefined;
188309
188631
  overlay?: string[] | undefined;
188310
188632
  titleAlignment?: "top_left" | "top_center" | "top_right" | "center_left" | "center" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | undefined;
188311
188633
  titleColor?: string | undefined;
@@ -188314,6 +188636,10 @@ declare const schematicBoxProps: z.ZodEffects<z.ZodEffects<z.ZodObject<{
188314
188636
  strokeStyle?: "dashed" | "solid" | undefined;
188315
188637
  }>;
188316
188638
  interface SchematicBoxProps {
188639
+ name?: string;
188640
+ chipRef?: string;
188641
+ pinLabels?: PinLabelsProp;
188642
+ schPinArrangement?: SchematicPinArrangement;
188317
188643
  schX?: Distance;
188318
188644
  schY?: Distance;
188319
188645
  width?: Distance;
package/dist/index.js CHANGED
@@ -16648,6 +16648,7 @@ var chipProps = commonComponentProps.extend({
16648
16648
  schWidth: distance13.optional(),
16649
16649
  schHeight: distance13.optional(),
16650
16650
  noSchematicRepresentation: z46.boolean().optional(),
16651
+ schShowInternalCircuit: z46.boolean().optional().default(false),
16651
16652
  noConnect: noConnectProp.optional(),
16652
16653
  connections: connectionsProp.optional(),
16653
16654
  spiceModel: spicemodelElement.optional(),
@@ -18155,6 +18156,10 @@ expectTypesMatch(true);
18155
18156
  import { distance as distance31 } from "circuit-json";
18156
18157
  import { z as z112 } from "zod";
18157
18158
  var schematicBoxProps = z112.object({
18159
+ name: z112.string().optional(),
18160
+ chipRef: z112.string().optional(),
18161
+ pinLabels: pinLabelsProp.optional(),
18162
+ schPinArrangement: schematicPinArrangement.optional(),
18158
18163
  schX: distance31.optional(),
18159
18164
  schY: distance31.optional(),
18160
18165
  width: distance31.optional(),