@tscircuit/props 0.0.470 → 0.0.472

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
@@ -965,7 +965,8 @@ export interface MosfetProps<
965
965
  ### MountedBoardProps `<mountedboard />`
966
966
 
967
967
  ```ts
968
- export interface MountedBoardProps extends SubcircuitGroupProps {
968
+ export interface MountedBoardProps
969
+ extends SubcircuitGroupProps, MountedBoardChipProps {
969
970
  boardToBoardDistance?: Distance;
970
971
  mountOrientation?: "faceDown" | "faceUp";
971
972
  }
package/dist/index.d.ts CHANGED
@@ -99075,7 +99075,8 @@ declare const batteryProps: z.ZodObject<{
99075
99075
  declare const batteryPins: readonly ["pin1", "left", "anode", "pos", "pin2", "right", "cathode", "neg"];
99076
99076
  type BatteryPinLabels = (typeof batteryPins)[number];
99077
99077
 
99078
- interface MountedBoardProps extends SubcircuitGroupProps {
99078
+ type MountedBoardChipProps = Pick<ChipPropsSU, "manufacturerPartNumber" | "pinLabels" | "showPinAliases" | "pcbPinLabels" | "schPortArrangement" | "pinCompatibleVariants" | "noSchematicRepresentation" | "internallyConnectedPins" | "externallyConnectedPins">;
99079
+ interface MountedBoardProps extends SubcircuitGroupProps, MountedBoardChipProps {
99079
99080
  boardToBoardDistance?: Distance;
99080
99081
  mountOrientation?: "faceDown" | "faceUp";
99081
99082
  }
@@ -99833,6 +99834,147 @@ declare const mountedboardProps: z.ZodObject<{
99833
99834
  outlineOffsetY: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
99834
99835
  circuitJson: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
99835
99836
  } & {
99837
+ manufacturerPartNumber: z.ZodOptional<z.ZodString>;
99838
+ 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">]>>>;
99839
+ showPinAliases: z.ZodOptional<z.ZodBoolean>;
99840
+ pcbPinLabels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
99841
+ schPortArrangement: z.ZodOptional<z.ZodObject<{
99842
+ leftSize: z.ZodOptional<z.ZodNumber>;
99843
+ topSize: z.ZodOptional<z.ZodNumber>;
99844
+ rightSize: z.ZodOptional<z.ZodNumber>;
99845
+ bottomSize: z.ZodOptional<z.ZodNumber>;
99846
+ leftPinCount: z.ZodOptional<z.ZodNumber>;
99847
+ rightPinCount: z.ZodOptional<z.ZodNumber>;
99848
+ topPinCount: z.ZodOptional<z.ZodNumber>;
99849
+ bottomPinCount: z.ZodOptional<z.ZodNumber>;
99850
+ leftSide: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodObject<{
99851
+ pins: z.ZodArray<z.ZodUnion<[z.ZodNumber, z.ZodString]>, "many">;
99852
+ direction: z.ZodUnion<[z.ZodLiteral<"top-to-bottom">, z.ZodLiteral<"left-to-right">, z.ZodLiteral<"bottom-to-top">, z.ZodLiteral<"right-to-left">]>;
99853
+ }, "strip", z.ZodTypeAny, {
99854
+ pins: (string | number)[];
99855
+ direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
99856
+ }, {
99857
+ pins: (string | number)[];
99858
+ direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
99859
+ }>, z.ZodArray<z.ZodUnion<[z.ZodNumber, z.ZodString]>, "many">]>, {
99860
+ pins: (string | number)[];
99861
+ direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
99862
+ }, (string | number)[] | {
99863
+ pins: (string | number)[];
99864
+ direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
99865
+ }>>;
99866
+ rightSide: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodObject<{
99867
+ pins: z.ZodArray<z.ZodUnion<[z.ZodNumber, z.ZodString]>, "many">;
99868
+ direction: z.ZodUnion<[z.ZodLiteral<"top-to-bottom">, z.ZodLiteral<"left-to-right">, z.ZodLiteral<"bottom-to-top">, z.ZodLiteral<"right-to-left">]>;
99869
+ }, "strip", z.ZodTypeAny, {
99870
+ pins: (string | number)[];
99871
+ direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
99872
+ }, {
99873
+ pins: (string | number)[];
99874
+ direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
99875
+ }>, z.ZodArray<z.ZodUnion<[z.ZodNumber, z.ZodString]>, "many">]>, {
99876
+ pins: (string | number)[];
99877
+ direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
99878
+ }, (string | number)[] | {
99879
+ pins: (string | number)[];
99880
+ direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
99881
+ }>>;
99882
+ topSide: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodObject<{
99883
+ pins: z.ZodArray<z.ZodUnion<[z.ZodNumber, z.ZodString]>, "many">;
99884
+ direction: z.ZodUnion<[z.ZodLiteral<"top-to-bottom">, z.ZodLiteral<"left-to-right">, z.ZodLiteral<"bottom-to-top">, z.ZodLiteral<"right-to-left">]>;
99885
+ }, "strip", z.ZodTypeAny, {
99886
+ pins: (string | number)[];
99887
+ direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
99888
+ }, {
99889
+ pins: (string | number)[];
99890
+ direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
99891
+ }>, z.ZodArray<z.ZodUnion<[z.ZodNumber, z.ZodString]>, "many">]>, {
99892
+ pins: (string | number)[];
99893
+ direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
99894
+ }, (string | number)[] | {
99895
+ pins: (string | number)[];
99896
+ direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
99897
+ }>>;
99898
+ bottomSide: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodObject<{
99899
+ pins: z.ZodArray<z.ZodUnion<[z.ZodNumber, z.ZodString]>, "many">;
99900
+ direction: z.ZodUnion<[z.ZodLiteral<"top-to-bottom">, z.ZodLiteral<"left-to-right">, z.ZodLiteral<"bottom-to-top">, z.ZodLiteral<"right-to-left">]>;
99901
+ }, "strip", z.ZodTypeAny, {
99902
+ pins: (string | number)[];
99903
+ direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
99904
+ }, {
99905
+ pins: (string | number)[];
99906
+ direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
99907
+ }>, z.ZodArray<z.ZodUnion<[z.ZodNumber, z.ZodString]>, "many">]>, {
99908
+ pins: (string | number)[];
99909
+ direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
99910
+ }, (string | number)[] | {
99911
+ pins: (string | number)[];
99912
+ direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
99913
+ }>>;
99914
+ }, "strip", z.ZodTypeAny, {
99915
+ leftSize?: number | undefined;
99916
+ topSize?: number | undefined;
99917
+ rightSize?: number | undefined;
99918
+ bottomSize?: number | undefined;
99919
+ leftSide?: {
99920
+ pins: (string | number)[];
99921
+ direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
99922
+ } | undefined;
99923
+ topSide?: {
99924
+ pins: (string | number)[];
99925
+ direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
99926
+ } | undefined;
99927
+ rightSide?: {
99928
+ pins: (string | number)[];
99929
+ direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
99930
+ } | undefined;
99931
+ bottomSide?: {
99932
+ pins: (string | number)[];
99933
+ direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
99934
+ } | undefined;
99935
+ leftPinCount?: number | undefined;
99936
+ rightPinCount?: number | undefined;
99937
+ topPinCount?: number | undefined;
99938
+ bottomPinCount?: number | undefined;
99939
+ }, {
99940
+ leftSize?: number | undefined;
99941
+ topSize?: number | undefined;
99942
+ rightSize?: number | undefined;
99943
+ bottomSize?: number | undefined;
99944
+ leftSide?: (string | number)[] | {
99945
+ pins: (string | number)[];
99946
+ direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
99947
+ } | undefined;
99948
+ topSide?: (string | number)[] | {
99949
+ pins: (string | number)[];
99950
+ direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
99951
+ } | undefined;
99952
+ rightSide?: (string | number)[] | {
99953
+ pins: (string | number)[];
99954
+ direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
99955
+ } | undefined;
99956
+ bottomSide?: (string | number)[] | {
99957
+ pins: (string | number)[];
99958
+ direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
99959
+ } | undefined;
99960
+ leftPinCount?: number | undefined;
99961
+ rightPinCount?: number | undefined;
99962
+ topPinCount?: number | undefined;
99963
+ bottomPinCount?: number | undefined;
99964
+ }>>;
99965
+ pinCompatibleVariants: z.ZodOptional<z.ZodArray<z.ZodObject<{
99966
+ manufacturerPartNumber: z.ZodOptional<z.ZodString>;
99967
+ supplierPartNumber: z.ZodOptional<z.ZodRecord<z.ZodEnum<["jlcpcb", "macrofab", "pcbway", "digikey", "mouser", "lcsc"]>, z.ZodArray<z.ZodString, "many">>>;
99968
+ }, "strip", z.ZodTypeAny, {
99969
+ manufacturerPartNumber?: string | undefined;
99970
+ supplierPartNumber?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
99971
+ }, {
99972
+ manufacturerPartNumber?: string | undefined;
99973
+ supplierPartNumber?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
99974
+ }>, "many">>;
99975
+ noSchematicRepresentation: z.ZodOptional<z.ZodBoolean>;
99976
+ internallyConnectedPins: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">, "many">>;
99977
+ externallyConnectedPins: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodString, "many">, "many">>;
99836
99978
  boardToBoardDistance: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
99837
99979
  mountOrientation: z.ZodOptional<z.ZodEnum<["faceDown", "faceUp"]>>;
99838
99980
  }, "strip", z.ZodTypeAny, {
@@ -99886,6 +100028,7 @@ declare const mountedboardProps: z.ZodObject<{
99886
100028
  } | undefined;
99887
100029
  schRelative?: boolean | undefined;
99888
100030
  children?: any;
100031
+ manufacturerPartNumber?: string | undefined;
99889
100032
  grid?: boolean | undefined;
99890
100033
  flex?: string | boolean | undefined;
99891
100034
  layoutMode?: "none" | "relative" | "grid" | "flex" | "match-adapt" | undefined;
@@ -100141,6 +100284,42 @@ declare const mountedboardProps: z.ZodObject<{
100141
100284
  outlineOffsetX?: number | undefined;
100142
100285
  outlineOffsetY?: number | undefined;
100143
100286
  circuitJson?: any[] | undefined;
100287
+ pinLabels?: Record<string, string | readonly string[] | string[]> | undefined;
100288
+ showPinAliases?: boolean | undefined;
100289
+ pcbPinLabels?: Record<string, string> | undefined;
100290
+ internallyConnectedPins?: (string | number)[][] | undefined;
100291
+ externallyConnectedPins?: string[][] | undefined;
100292
+ schPortArrangement?: {
100293
+ leftSize?: number | undefined;
100294
+ topSize?: number | undefined;
100295
+ rightSize?: number | undefined;
100296
+ bottomSize?: number | undefined;
100297
+ leftSide?: {
100298
+ pins: (string | number)[];
100299
+ direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
100300
+ } | undefined;
100301
+ topSide?: {
100302
+ pins: (string | number)[];
100303
+ direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
100304
+ } | undefined;
100305
+ rightSide?: {
100306
+ pins: (string | number)[];
100307
+ direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
100308
+ } | undefined;
100309
+ bottomSide?: {
100310
+ pins: (string | number)[];
100311
+ direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
100312
+ } | undefined;
100313
+ leftPinCount?: number | undefined;
100314
+ rightPinCount?: number | undefined;
100315
+ topPinCount?: number | undefined;
100316
+ bottomPinCount?: number | undefined;
100317
+ } | undefined;
100318
+ pinCompatibleVariants?: {
100319
+ manufacturerPartNumber?: string | undefined;
100320
+ supplierPartNumber?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
100321
+ }[] | undefined;
100322
+ noSchematicRepresentation?: boolean | undefined;
100144
100323
  boardToBoardDistance?: number | undefined;
100145
100324
  mountOrientation?: "faceDown" | "faceUp" | undefined;
100146
100325
  }, {
@@ -100196,6 +100375,7 @@ declare const mountedboardProps: z.ZodObject<{
100196
100375
  } | undefined;
100197
100376
  schRelative?: boolean | undefined;
100198
100377
  children?: any;
100378
+ manufacturerPartNumber?: string | undefined;
100199
100379
  grid?: boolean | undefined;
100200
100380
  flex?: string | boolean | undefined;
100201
100381
  layoutMode?: "none" | "relative" | "grid" | "flex" | "match-adapt" | undefined;
@@ -100453,6 +100633,42 @@ declare const mountedboardProps: z.ZodObject<{
100453
100633
  outlineOffsetX?: string | number | undefined;
100454
100634
  outlineOffsetY?: string | number | undefined;
100455
100635
  circuitJson?: any[] | undefined;
100636
+ pinLabels?: Record<string, string | readonly string[] | string[]> | undefined;
100637
+ showPinAliases?: boolean | undefined;
100638
+ pcbPinLabels?: Record<string, string> | undefined;
100639
+ internallyConnectedPins?: (string | number)[][] | undefined;
100640
+ externallyConnectedPins?: string[][] | undefined;
100641
+ schPortArrangement?: {
100642
+ leftSize?: number | undefined;
100643
+ topSize?: number | undefined;
100644
+ rightSize?: number | undefined;
100645
+ bottomSize?: number | undefined;
100646
+ leftSide?: (string | number)[] | {
100647
+ pins: (string | number)[];
100648
+ direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
100649
+ } | undefined;
100650
+ topSide?: (string | number)[] | {
100651
+ pins: (string | number)[];
100652
+ direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
100653
+ } | undefined;
100654
+ rightSide?: (string | number)[] | {
100655
+ pins: (string | number)[];
100656
+ direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
100657
+ } | undefined;
100658
+ bottomSide?: (string | number)[] | {
100659
+ pins: (string | number)[];
100660
+ direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
100661
+ } | undefined;
100662
+ leftPinCount?: number | undefined;
100663
+ rightPinCount?: number | undefined;
100664
+ topPinCount?: number | undefined;
100665
+ bottomPinCount?: number | undefined;
100666
+ } | undefined;
100667
+ pinCompatibleVariants?: {
100668
+ manufacturerPartNumber?: string | undefined;
100669
+ supplierPartNumber?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
100670
+ }[] | undefined;
100671
+ noSchematicRepresentation?: boolean | undefined;
100456
100672
  boardToBoardDistance?: string | number | undefined;
100457
100673
  mountOrientation?: "faceDown" | "faceUp" | undefined;
100458
100674
  }>;
@@ -167450,6 +167666,7 @@ declare const portProps: z.ZodObject<{
167450
167666
  nameTextSize?: string | number | undefined;
167451
167667
  numberTextSize?: string | number | undefined;
167452
167668
  }>>;
167669
+ hasInversionCircle: z.ZodOptional<z.ZodBoolean>;
167453
167670
  }, "strip", z.ZodTypeAny, {
167454
167671
  name: string;
167455
167672
  direction: "up" | "down" | "left" | "right";
@@ -167510,6 +167727,7 @@ declare const portProps: z.ZodObject<{
167510
167727
  nameTextSize?: number | undefined;
167511
167728
  numberTextSize?: number | undefined;
167512
167729
  } | undefined;
167730
+ hasInversionCircle?: boolean | undefined;
167513
167731
  }, {
167514
167732
  name: string;
167515
167733
  direction: "up" | "down" | "left" | "right";
@@ -167572,6 +167790,7 @@ declare const portProps: z.ZodObject<{
167572
167790
  nameTextSize?: string | number | undefined;
167573
167791
  numberTextSize?: string | number | undefined;
167574
167792
  } | undefined;
167793
+ hasInversionCircle?: boolean | undefined;
167575
167794
  }>;
167576
167795
  type PortProps = z.input<typeof portProps>;
167577
167796
 
package/dist/index.js CHANGED
@@ -1702,6 +1702,15 @@ expectTypesMatch(true);
1702
1702
  // lib/components/mountedboard.ts
1703
1703
  import { z as z65 } from "zod";
1704
1704
  var mountedboardProps = subcircuitGroupProps.extend({
1705
+ manufacturerPartNumber: chipProps.shape.manufacturerPartNumber,
1706
+ pinLabels: chipProps.shape.pinLabels,
1707
+ showPinAliases: chipProps.shape.showPinAliases,
1708
+ pcbPinLabels: chipProps.shape.pcbPinLabels,
1709
+ schPortArrangement: chipProps.shape.schPortArrangement,
1710
+ pinCompatibleVariants: chipProps.shape.pinCompatibleVariants,
1711
+ noSchematicRepresentation: chipProps.shape.noSchematicRepresentation,
1712
+ internallyConnectedPins: chipProps.shape.internallyConnectedPins,
1713
+ externallyConnectedPins: chipProps.shape.externallyConnectedPins,
1705
1714
  boardToBoardDistance: distance.optional(),
1706
1715
  mountOrientation: z65.enum(["faceDown", "faceUp"]).optional()
1707
1716
  });
@@ -2616,7 +2625,8 @@ var portProps = commonLayoutProps.extend({
2616
2625
  aliases: z116.array(z116.string()).optional(),
2617
2626
  direction,
2618
2627
  connectsTo: z116.string().or(z116.array(z116.string())).optional(),
2619
- kicadPinMetadata: kicadPinMetadata.optional()
2628
+ kicadPinMetadata: kicadPinMetadata.optional(),
2629
+ hasInversionCircle: z116.boolean().optional()
2620
2630
  });
2621
2631
 
2622
2632
  // lib/components/pcb-note-text.ts