@tscircuit/props 0.0.430 → 0.0.432

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
@@ -840,6 +840,11 @@ export interface InductorProps<
840
840
  ```ts
841
841
  export interface InterconnectProps extends CommonComponentProps {
842
842
  standard?: "TSC0001_36P_XALT_2025_11" | "0805" | "0603" | "1206";
843
+ /**
844
+ * Groups of pins that are internally connected
845
+ * e.g., [["1","2"], ["2","3"]]
846
+ */
847
+ internallyConnectedPins?: (string | number)[][];
843
848
  }
844
849
  ```
845
850
 
package/dist/index.d.ts CHANGED
@@ -25857,6 +25857,11 @@ declare const connectorProps: z.ZodObject<{
25857
25857
 
25858
25858
  interface InterconnectProps extends CommonComponentProps {
25859
25859
  standard?: "TSC0001_36P_XALT_2025_11" | "0805" | "0603" | "1206";
25860
+ /**
25861
+ * Groups of pins that are internally connected
25862
+ * e.g., [["1","2"], ["2","3"]]
25863
+ */
25864
+ internallyConnectedPins?: (string | number)[][];
25860
25865
  }
25861
25866
  declare const interconnectProps: z.ZodObject<{
25862
25867
  pcbX: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>]>>;
@@ -26567,6 +26572,7 @@ declare const interconnectProps: z.ZodObject<{
26567
26572
  }>>>;
26568
26573
  } & {
26569
26574
  standard: z.ZodOptional<z.ZodEnum<["TSC0001_36P_XALT_2025_11", "0805", "0603", "1206"]>>;
26575
+ internallyConnectedPins: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">, "many">>;
26570
26576
  }, "strip", z.ZodTypeAny, {
26571
26577
  name: string;
26572
26578
  symbol?: SymbolProp | undefined;
@@ -26769,6 +26775,7 @@ declare const interconnectProps: z.ZodObject<{
26769
26775
  doNotPlace?: boolean | undefined;
26770
26776
  obstructsWithinBounds?: boolean | undefined;
26771
26777
  showAsTranslucentModel?: boolean | undefined;
26778
+ internallyConnectedPins?: (string | number)[][] | undefined;
26772
26779
  standard?: "0603" | "0805" | "1206" | "TSC0001_36P_XALT_2025_11" | undefined;
26773
26780
  }, {
26774
26781
  name: string;
@@ -26974,6 +26981,7 @@ declare const interconnectProps: z.ZodObject<{
26974
26981
  doNotPlace?: boolean | undefined;
26975
26982
  obstructsWithinBounds?: boolean | undefined;
26976
26983
  showAsTranslucentModel?: boolean | undefined;
26984
+ internallyConnectedPins?: (string | number)[][] | undefined;
26977
26985
  standard?: "0603" | "0805" | "1206" | "TSC0001_36P_XALT_2025_11" | undefined;
26978
26986
  }>;
26979
26987
 
@@ -41829,6 +41837,16 @@ declare const traceProps: z.ZodUnion<[z.ZodObject<{
41829
41837
  x: string | number;
41830
41838
  y: string | number;
41831
41839
  }>, z.ZodString]>, "many">>;
41840
+ pcbPaths: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodUnion<[z.ZodObject<{
41841
+ x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
41842
+ y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
41843
+ }, "strip", z.ZodTypeAny, {
41844
+ x: number;
41845
+ y: number;
41846
+ }, {
41847
+ x: string | number;
41848
+ y: string | number;
41849
+ }>, z.ZodString]>, "many">, "many">>;
41832
41850
  pcbStraightLine: z.ZodOptional<z.ZodBoolean>;
41833
41851
  schDisplayLabel: z.ZodOptional<z.ZodString>;
41834
41852
  schStroke: z.ZodOptional<z.ZodString>;
@@ -41867,6 +41885,10 @@ declare const traceProps: z.ZodUnion<[z.ZodObject<{
41867
41885
  x: number;
41868
41886
  y: number;
41869
41887
  })[] | undefined;
41888
+ pcbPaths?: (string | {
41889
+ x: number;
41890
+ y: number;
41891
+ })[][] | undefined;
41870
41892
  pcbStraightLine?: boolean | undefined;
41871
41893
  schDisplayLabel?: string | undefined;
41872
41894
  schStroke?: string | undefined;
@@ -41898,6 +41920,10 @@ declare const traceProps: z.ZodUnion<[z.ZodObject<{
41898
41920
  x: string | number;
41899
41921
  y: string | number;
41900
41922
  })[] | undefined;
41923
+ pcbPaths?: (string | {
41924
+ x: string | number;
41925
+ y: string | number;
41926
+ })[][] | undefined;
41901
41927
  pcbStraightLine?: boolean | undefined;
41902
41928
  schDisplayLabel?: string | undefined;
41903
41929
  schStroke?: string | undefined;
@@ -41955,6 +41981,16 @@ declare const traceProps: z.ZodUnion<[z.ZodObject<{
41955
41981
  x: string | number;
41956
41982
  y: string | number;
41957
41983
  }>, z.ZodString]>, "many">>;
41984
+ pcbPaths: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodUnion<[z.ZodObject<{
41985
+ x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
41986
+ y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
41987
+ }, "strip", z.ZodTypeAny, {
41988
+ x: number;
41989
+ y: number;
41990
+ }, {
41991
+ x: string | number;
41992
+ y: string | number;
41993
+ }>, z.ZodString]>, "many">, "many">>;
41958
41994
  pcbStraightLine: z.ZodOptional<z.ZodBoolean>;
41959
41995
  schDisplayLabel: z.ZodOptional<z.ZodString>;
41960
41996
  schStroke: z.ZodOptional<z.ZodString>;
@@ -42001,6 +42037,10 @@ declare const traceProps: z.ZodUnion<[z.ZodObject<{
42001
42037
  x: number;
42002
42038
  y: number;
42003
42039
  })[] | undefined;
42040
+ pcbPaths?: (string | {
42041
+ x: number;
42042
+ y: number;
42043
+ })[][] | undefined;
42004
42044
  pcbStraightLine?: boolean | undefined;
42005
42045
  schDisplayLabel?: string | undefined;
42006
42046
  schStroke?: string | undefined;
@@ -42035,6 +42075,10 @@ declare const traceProps: z.ZodUnion<[z.ZodObject<{
42035
42075
  x: string | number;
42036
42076
  y: string | number;
42037
42077
  })[] | undefined;
42078
+ pcbPaths?: (string | {
42079
+ x: string | number;
42080
+ y: string | number;
42081
+ })[][] | undefined;
42038
42082
  pcbStraightLine?: boolean | undefined;
42039
42083
  schDisplayLabel?: string | undefined;
42040
42084
  schStroke?: string | undefined;
package/dist/index.js CHANGED
@@ -902,7 +902,8 @@ expectTypesMatch(true);
902
902
  // lib/components/interconnect.ts
903
903
  import { z as z39 } from "zod";
904
904
  var interconnectProps = commonComponentProps.extend({
905
- standard: z39.enum(["TSC0001_36P_XALT_2025_11", "0805", "0603", "1206"]).optional()
905
+ standard: z39.enum(["TSC0001_36P_XALT_2025_11", "0805", "0603", "1206"]).optional(),
906
+ internallyConnectedPins: z39.array(z39.array(z39.union([z39.string(), z39.number()]))).optional()
906
907
  });
907
908
  expectTypesMatch(true);
908
909
 
@@ -1369,6 +1370,7 @@ var portRef = z56.union([
1369
1370
  (v) => Boolean(v.getPortSelector)
1370
1371
  )
1371
1372
  ]);
1373
+ var pcbPath = z56.array(z56.union([point, z56.string()]));
1372
1374
  var baseTraceProps = z56.object({
1373
1375
  key: z56.string().optional(),
1374
1376
  thickness: distance16.optional(),
@@ -1376,7 +1378,8 @@ var baseTraceProps = z56.object({
1376
1378
  schematicRouteHints: z56.array(point).optional(),
1377
1379
  pcbRouteHints: z56.array(route_hint_point2).optional(),
1378
1380
  pcbPathRelativeTo: z56.string().optional(),
1379
- pcbPath: z56.array(z56.union([point, z56.string()])).optional(),
1381
+ pcbPath: pcbPath.optional(),
1382
+ pcbPaths: z56.array(pcbPath).optional(),
1380
1383
  pcbStraightLine: z56.boolean().optional().describe("Draw a straight pcb trace between the connected points"),
1381
1384
  schDisplayLabel: z56.string().optional(),
1382
1385
  schStroke: z56.string().optional(),