@tscircuit/props 0.0.584 → 0.0.586
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 +1 -1
- package/dist/index.d.ts +22 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/lib/components/chip.ts +7 -0
- package/lib/components/differentialpair.ts +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -624,7 +624,7 @@ export interface DifferentialPairProps {
|
|
|
624
624
|
positiveConnection: string;
|
|
625
625
|
/** Name of the trace or pin carrying the negative signal. */
|
|
626
626
|
negativeConnection: string;
|
|
627
|
-
/** Maximum permitted routed-length skew
|
|
627
|
+
/** Maximum permitted routed-length skew in millimeters. */
|
|
628
628
|
maxLengthSkew?: number;
|
|
629
629
|
}
|
|
630
630
|
```
|
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;
|
|
@@ -104658,7 +104676,7 @@ interface DifferentialPairProps {
|
|
|
104658
104676
|
positiveConnection: string;
|
|
104659
104677
|
/** Name of the trace or pin carrying the negative signal. */
|
|
104660
104678
|
negativeConnection: string;
|
|
104661
|
-
/** Maximum permitted routed-length skew
|
|
104679
|
+
/** Maximum permitted routed-length skew in millimeters. */
|
|
104662
104680
|
maxLengthSkew?: number;
|
|
104663
104681
|
}
|
|
104664
104682
|
declare const differentialPairProps: z.ZodObject<{
|
|
@@ -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;
|
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(),
|
|
@@ -17339,7 +17340,7 @@ var differentialPairProps = z69.object({
|
|
|
17339
17340
|
name: z69.string().optional(),
|
|
17340
17341
|
positiveConnection: z69.string(),
|
|
17341
17342
|
negativeConnection: z69.string(),
|
|
17342
|
-
maxLengthSkew: z69.number().min(0).
|
|
17343
|
+
maxLengthSkew: z69.number().min(0).finite().optional()
|
|
17343
17344
|
});
|
|
17344
17345
|
expectTypesMatch(true);
|
|
17345
17346
|
|