@tscircuit/props 0.0.432 → 0.0.434
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 +4 -0
- package/dist/index.d.ts +16 -12
- package/dist/index.js +6 -2
- package/dist/index.js.map +1 -1
- package/lib/components/interconnect.ts +14 -0
- package/lib/components/platedhole.ts +4 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -840,6 +840,10 @@ 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
|
+
>;
|
|
843
847
|
/**
|
|
844
848
|
* Groups of pins that are internally connected
|
|
845
849
|
* e.g., [["1","2"], ["2","3"]]
|
package/dist/index.d.ts
CHANGED
|
@@ -25857,6 +25857,7 @@ 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[]>;
|
|
25860
25861
|
/**
|
|
25861
25862
|
* Groups of pins that are internally connected
|
|
25862
25863
|
* e.g., [["1","2"], ["2","3"]]
|
|
@@ -26572,6 +26573,7 @@ declare const interconnectProps: z.ZodObject<{
|
|
|
26572
26573
|
}>>>;
|
|
26573
26574
|
} & {
|
|
26574
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">]>>>;
|
|
26575
26577
|
internallyConnectedPins: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">, "many">>;
|
|
26576
26578
|
}, "strip", z.ZodTypeAny, {
|
|
26577
26579
|
name: string;
|
|
@@ -26775,6 +26777,7 @@ declare const interconnectProps: z.ZodObject<{
|
|
|
26775
26777
|
doNotPlace?: boolean | undefined;
|
|
26776
26778
|
obstructsWithinBounds?: boolean | undefined;
|
|
26777
26779
|
showAsTranslucentModel?: boolean | undefined;
|
|
26780
|
+
pinLabels?: Record<string | number, string | string[]> | undefined;
|
|
26778
26781
|
internallyConnectedPins?: (string | number)[][] | undefined;
|
|
26779
26782
|
standard?: "0603" | "0805" | "1206" | "TSC0001_36P_XALT_2025_11" | undefined;
|
|
26780
26783
|
}, {
|
|
@@ -26981,6 +26984,7 @@ declare const interconnectProps: z.ZodObject<{
|
|
|
26981
26984
|
doNotPlace?: boolean | undefined;
|
|
26982
26985
|
obstructsWithinBounds?: boolean | undefined;
|
|
26983
26986
|
showAsTranslucentModel?: boolean | undefined;
|
|
26987
|
+
pinLabels?: Record<string | number, string | string[]> | undefined;
|
|
26984
26988
|
internallyConnectedPins?: (string | number)[][] | undefined;
|
|
26985
26989
|
standard?: "0603" | "0805" | "1206" | "TSC0001_36P_XALT_2025_11" | undefined;
|
|
26986
26990
|
}>;
|
|
@@ -28210,8 +28214,8 @@ interface PillWithRectPadPlatedHoleProps extends Omit<PcbLayoutProps, "pcbRotati
|
|
|
28210
28214
|
name?: string;
|
|
28211
28215
|
connectsTo?: string | string[];
|
|
28212
28216
|
shape: "pill_hole_with_rect_pad";
|
|
28213
|
-
holeShape
|
|
28214
|
-
padShape
|
|
28217
|
+
holeShape?: "pill";
|
|
28218
|
+
padShape?: "rect";
|
|
28215
28219
|
holeWidth: number | string;
|
|
28216
28220
|
holeHeight: number | string;
|
|
28217
28221
|
rectPadWidth: number | string;
|
|
@@ -28947,8 +28951,8 @@ declare const platedHoleProps: z.ZodEffects<z.ZodDiscriminatedUnion<"shape", [z.
|
|
|
28947
28951
|
name: z.ZodOptional<z.ZodString>;
|
|
28948
28952
|
connectsTo: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
28949
28953
|
shape: z.ZodLiteral<"pill_hole_with_rect_pad">;
|
|
28950
|
-
holeShape: z.ZodLiteral<"pill"
|
|
28951
|
-
padShape: z.ZodLiteral<"rect"
|
|
28954
|
+
holeShape: z.ZodOptional<z.ZodLiteral<"pill">>;
|
|
28955
|
+
padShape: z.ZodOptional<z.ZodLiteral<"rect">>;
|
|
28952
28956
|
holeWidth: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
28953
28957
|
holeHeight: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
28954
28958
|
rectPadWidth: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
@@ -28964,8 +28968,6 @@ declare const platedHoleProps: z.ZodEffects<z.ZodDiscriminatedUnion<"shape", [z.
|
|
|
28964
28968
|
holeHeight: number;
|
|
28965
28969
|
rectPadWidth: number;
|
|
28966
28970
|
rectPadHeight: number;
|
|
28967
|
-
holeShape: "pill";
|
|
28968
|
-
padShape: "rect";
|
|
28969
28971
|
pcbX?: string | number | undefined;
|
|
28970
28972
|
pcbY?: string | number | undefined;
|
|
28971
28973
|
pcbLeftEdgeX?: string | number | undefined;
|
|
@@ -29001,14 +29003,14 @@ declare const platedHoleProps: z.ZodEffects<z.ZodDiscriminatedUnion<"shape", [z.
|
|
|
29001
29003
|
coveredWithSolderMask?: boolean | undefined;
|
|
29002
29004
|
holeOffsetX?: number | undefined;
|
|
29003
29005
|
holeOffsetY?: number | undefined;
|
|
29006
|
+
holeShape?: "pill" | undefined;
|
|
29007
|
+
padShape?: "rect" | undefined;
|
|
29004
29008
|
}, {
|
|
29005
29009
|
shape: "pill_hole_with_rect_pad";
|
|
29006
29010
|
holeWidth: string | number;
|
|
29007
29011
|
holeHeight: string | number;
|
|
29008
29012
|
rectPadWidth: string | number;
|
|
29009
29013
|
rectPadHeight: string | number;
|
|
29010
|
-
holeShape: "pill";
|
|
29011
|
-
padShape: "rect";
|
|
29012
29014
|
pcbX?: string | number | undefined;
|
|
29013
29015
|
pcbY?: string | number | undefined;
|
|
29014
29016
|
pcbLeftEdgeX?: string | number | undefined;
|
|
@@ -29044,6 +29046,8 @@ declare const platedHoleProps: z.ZodEffects<z.ZodDiscriminatedUnion<"shape", [z.
|
|
|
29044
29046
|
coveredWithSolderMask?: boolean | undefined;
|
|
29045
29047
|
holeOffsetX?: string | number | undefined;
|
|
29046
29048
|
holeOffsetY?: string | number | undefined;
|
|
29049
|
+
holeShape?: "pill" | undefined;
|
|
29050
|
+
padShape?: "rect" | undefined;
|
|
29047
29051
|
}>, z.ZodObject<Omit<{
|
|
29048
29052
|
pcbX: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>]>>;
|
|
29049
29053
|
pcbY: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>]>>;
|
|
@@ -29394,8 +29398,6 @@ declare const platedHoleProps: z.ZodEffects<z.ZodDiscriminatedUnion<"shape", [z.
|
|
|
29394
29398
|
holeHeight: number;
|
|
29395
29399
|
rectPadWidth: number;
|
|
29396
29400
|
rectPadHeight: number;
|
|
29397
|
-
holeShape: "pill";
|
|
29398
|
-
padShape: "rect";
|
|
29399
29401
|
pcbX?: string | number | undefined;
|
|
29400
29402
|
pcbY?: string | number | undefined;
|
|
29401
29403
|
pcbLeftEdgeX?: string | number | undefined;
|
|
@@ -29431,6 +29433,8 @@ declare const platedHoleProps: z.ZodEffects<z.ZodDiscriminatedUnion<"shape", [z.
|
|
|
29431
29433
|
coveredWithSolderMask?: boolean | undefined;
|
|
29432
29434
|
holeOffsetX?: number | undefined;
|
|
29433
29435
|
holeOffsetY?: number | undefined;
|
|
29436
|
+
holeShape?: "pill" | undefined;
|
|
29437
|
+
padShape?: "rect" | undefined;
|
|
29434
29438
|
} | {
|
|
29435
29439
|
shape: "hole_with_polygon_pad";
|
|
29436
29440
|
holeOffsetX: number;
|
|
@@ -29650,8 +29654,6 @@ declare const platedHoleProps: z.ZodEffects<z.ZodDiscriminatedUnion<"shape", [z.
|
|
|
29650
29654
|
holeHeight: string | number;
|
|
29651
29655
|
rectPadWidth: string | number;
|
|
29652
29656
|
rectPadHeight: string | number;
|
|
29653
|
-
holeShape: "pill";
|
|
29654
|
-
padShape: "rect";
|
|
29655
29657
|
pcbX?: string | number | undefined;
|
|
29656
29658
|
pcbY?: string | number | undefined;
|
|
29657
29659
|
pcbLeftEdgeX?: string | number | undefined;
|
|
@@ -29687,6 +29689,8 @@ declare const platedHoleProps: z.ZodEffects<z.ZodDiscriminatedUnion<"shape", [z.
|
|
|
29687
29689
|
coveredWithSolderMask?: boolean | undefined;
|
|
29688
29690
|
holeOffsetX?: string | number | undefined;
|
|
29689
29691
|
holeOffsetY?: string | number | undefined;
|
|
29692
|
+
holeShape?: "pill" | undefined;
|
|
29693
|
+
padShape?: "rect" | undefined;
|
|
29690
29694
|
} | {
|
|
29691
29695
|
shape: "hole_with_polygon_pad";
|
|
29692
29696
|
holeOffsetX: string | number;
|
package/dist/index.js
CHANGED
|
@@ -903,6 +903,10 @@ expectTypesMatch(true);
|
|
|
903
903
|
import { z as z39 } from "zod";
|
|
904
904
|
var interconnectProps = commonComponentProps.extend({
|
|
905
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(),
|
|
906
910
|
internallyConnectedPins: z39.array(z39.array(z39.union([z39.string(), z39.number()]))).optional()
|
|
907
911
|
});
|
|
908
912
|
expectTypesMatch(true);
|
|
@@ -995,8 +999,8 @@ var platedHoleProps = z41.discriminatedUnion("shape", [
|
|
|
995
999
|
name: z41.string().optional(),
|
|
996
1000
|
connectsTo: z41.string().or(z41.array(z41.string())).optional(),
|
|
997
1001
|
shape: z41.literal("pill_hole_with_rect_pad"),
|
|
998
|
-
holeShape: z41.literal("pill"),
|
|
999
|
-
padShape: z41.literal("rect"),
|
|
1002
|
+
holeShape: z41.literal("pill").optional(),
|
|
1003
|
+
padShape: z41.literal("rect").optional(),
|
|
1000
1004
|
holeWidth: distance14,
|
|
1001
1005
|
holeHeight: distance14,
|
|
1002
1006
|
rectPadWidth: distance14,
|