@tscircuit/props 0.0.431 → 0.0.433

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,15 @@ 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
+ pinLabels?: Record<
844
+ number | SchematicPinLabel,
845
+ SchematicPinLabel | SchematicPinLabel[]
846
+ >;
847
+ /**
848
+ * Groups of pins that are internally connected
849
+ * e.g., [["1","2"], ["2","3"]]
850
+ */
851
+ internallyConnectedPins?: (string | number)[][];
843
852
  }
844
853
  ```
845
854
 
package/dist/index.d.ts CHANGED
@@ -25857,6 +25857,12 @@ 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
+ pinLabels?: Record<number | SchematicPinLabel, SchematicPinLabel | SchematicPinLabel[]>;
25861
+ /**
25862
+ * Groups of pins that are internally connected
25863
+ * e.g., [["1","2"], ["2","3"]]
25864
+ */
25865
+ internallyConnectedPins?: (string | number)[][];
25860
25866
  }
25861
25867
  declare const interconnectProps: z.ZodObject<{
25862
25868
  pcbX: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>]>>;
@@ -26567,6 +26573,8 @@ declare const interconnectProps: z.ZodObject<{
26567
26573
  }>>>;
26568
26574
  } & {
26569
26575
  standard: z.ZodOptional<z.ZodEnum<["TSC0001_36P_XALT_2025_11", "0805", "0603", "1206"]>>;
26576
+ pinLabels: z.ZodOptional<z.ZodRecord<z.ZodUnion<[z.ZodNumber, z.ZodString]>, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>>;
26577
+ internallyConnectedPins: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">, "many">>;
26570
26578
  }, "strip", z.ZodTypeAny, {
26571
26579
  name: string;
26572
26580
  symbol?: SymbolProp | undefined;
@@ -26769,6 +26777,8 @@ declare const interconnectProps: z.ZodObject<{
26769
26777
  doNotPlace?: boolean | undefined;
26770
26778
  obstructsWithinBounds?: boolean | undefined;
26771
26779
  showAsTranslucentModel?: boolean | undefined;
26780
+ pinLabels?: Record<string | number, string | string[]> | undefined;
26781
+ internallyConnectedPins?: (string | number)[][] | undefined;
26772
26782
  standard?: "0603" | "0805" | "1206" | "TSC0001_36P_XALT_2025_11" | undefined;
26773
26783
  }, {
26774
26784
  name: string;
@@ -26974,6 +26984,8 @@ declare const interconnectProps: z.ZodObject<{
26974
26984
  doNotPlace?: boolean | undefined;
26975
26985
  obstructsWithinBounds?: boolean | undefined;
26976
26986
  showAsTranslucentModel?: boolean | undefined;
26987
+ pinLabels?: Record<string | number, string | string[]> | undefined;
26988
+ internallyConnectedPins?: (string | number)[][] | undefined;
26977
26989
  standard?: "0603" | "0805" | "1206" | "TSC0001_36P_XALT_2025_11" | undefined;
26978
26990
  }>;
26979
26991
 
package/dist/index.js CHANGED
@@ -902,7 +902,12 @@ 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
+ pinLabels: z39.record(
907
+ z39.number().or(schematicPinLabel),
908
+ schematicPinLabel.or(z39.array(schematicPinLabel))
909
+ ).optional(),
910
+ internallyConnectedPins: z39.array(z39.array(z39.union([z39.string(), z39.number()]))).optional()
906
911
  });
907
912
  expectTypesMatch(true);
908
913