@tscircuit/props 0.0.572 → 0.0.574
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 +6 -0
- package/dist/index.d.ts +15 -8
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/lib/components/group.ts +0 -4
- package/lib/components/mosfet.ts +9 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1033,6 +1033,12 @@ export interface MosfetProps<
|
|
|
1033
1033
|
> extends CommonComponentProps<PinLabel> {
|
|
1034
1034
|
channelType: "n" | "p";
|
|
1035
1035
|
mosfetMode: "enhancement" | "depletion";
|
|
1036
|
+
/** The side of the schematic symbol where the drain port is placed. */
|
|
1037
|
+
symbolDrainSide?: "left" | "right" | "top" | "bottom";
|
|
1038
|
+
/** The side of the schematic symbol where the source port is placed. */
|
|
1039
|
+
symbolSourceSide?: "left" | "right" | "top" | "bottom";
|
|
1040
|
+
/** The side of the schematic symbol where the gate port is placed. */
|
|
1041
|
+
symbolGateSide?: "left" | "right" | "top" | "bottom";
|
|
1036
1042
|
connections?: Connections<MosfetPinLabels>;
|
|
1037
1043
|
}
|
|
1038
1044
|
```
|
package/dist/index.d.ts
CHANGED
|
@@ -17859,8 +17859,6 @@ interface RoutingTolerances {
|
|
|
17859
17859
|
}
|
|
17860
17860
|
interface AutorouterConfig {
|
|
17861
17861
|
serverUrl?: string;
|
|
17862
|
-
cacheServerUrl?: string;
|
|
17863
|
-
shouldUploadToCache?: boolean;
|
|
17864
17862
|
inputFormat?: "simplified" | "circuit-json";
|
|
17865
17863
|
serverMode?: "job" | "solve-endpoint";
|
|
17866
17864
|
serverCacheEnabled?: boolean;
|
|
@@ -17907,8 +17905,6 @@ declare const routingTolerances: z.ZodObject<{
|
|
|
17907
17905
|
}>;
|
|
17908
17906
|
declare const autorouterConfig: z.ZodObject<{
|
|
17909
17907
|
serverUrl: z.ZodOptional<z.ZodType<string, z.ZodTypeDef, string>>;
|
|
17910
|
-
cacheServerUrl: z.ZodOptional<z.ZodType<string, z.ZodTypeDef, string>>;
|
|
17911
|
-
shouldUploadToCache: z.ZodOptional<z.ZodBoolean>;
|
|
17912
17908
|
inputFormat: z.ZodOptional<z.ZodEnum<["simplified", "circuit-json"]>>;
|
|
17913
17909
|
serverMode: z.ZodOptional<z.ZodEnum<["job", "solve-endpoint"]>>;
|
|
17914
17910
|
serverCacheEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -17921,8 +17917,6 @@ declare const autorouterConfig: z.ZodObject<{
|
|
|
17921
17917
|
local: z.ZodOptional<z.ZodBoolean>;
|
|
17922
17918
|
}, "strip", z.ZodTypeAny, {
|
|
17923
17919
|
serverUrl?: string | undefined;
|
|
17924
|
-
cacheServerUrl?: string | undefined;
|
|
17925
|
-
shouldUploadToCache?: boolean | undefined;
|
|
17926
17920
|
inputFormat?: "simplified" | "circuit-json" | undefined;
|
|
17927
17921
|
serverMode?: "job" | "solve-endpoint" | undefined;
|
|
17928
17922
|
serverCacheEnabled?: boolean | undefined;
|
|
@@ -17935,8 +17929,6 @@ declare const autorouterConfig: z.ZodObject<{
|
|
|
17935
17929
|
local?: boolean | undefined;
|
|
17936
17930
|
}, {
|
|
17937
17931
|
serverUrl?: string | undefined;
|
|
17938
|
-
cacheServerUrl?: string | undefined;
|
|
17939
|
-
shouldUploadToCache?: boolean | undefined;
|
|
17940
17932
|
inputFormat?: "simplified" | "circuit-json" | undefined;
|
|
17941
17933
|
serverMode?: "job" | "solve-endpoint" | undefined;
|
|
17942
17934
|
serverCacheEnabled?: boolean | undefined;
|
|
@@ -126700,6 +126692,12 @@ type MosfetPinLabels = (typeof mosfetPins)[number];
|
|
|
126700
126692
|
interface MosfetProps<PinLabel extends string = string> extends CommonComponentProps<PinLabel> {
|
|
126701
126693
|
channelType: "n" | "p";
|
|
126702
126694
|
mosfetMode: "enhancement" | "depletion";
|
|
126695
|
+
/** The side of the schematic symbol where the drain port is placed. */
|
|
126696
|
+
symbolDrainSide?: "left" | "right" | "top" | "bottom";
|
|
126697
|
+
/** The side of the schematic symbol where the source port is placed. */
|
|
126698
|
+
symbolSourceSide?: "left" | "right" | "top" | "bottom";
|
|
126699
|
+
/** The side of the schematic symbol where the gate port is placed. */
|
|
126700
|
+
symbolGateSide?: "left" | "right" | "top" | "bottom";
|
|
126703
126701
|
connections?: Connections<MosfetPinLabels>;
|
|
126704
126702
|
}
|
|
126705
126703
|
declare const mosfetProps: z.ZodObject<{
|
|
@@ -130064,6 +130062,9 @@ declare const mosfetProps: z.ZodObject<{
|
|
|
130064
130062
|
} & {
|
|
130065
130063
|
channelType: z.ZodEnum<["n", "p"]>;
|
|
130066
130064
|
mosfetMode: z.ZodEnum<["enhancement", "depletion"]>;
|
|
130065
|
+
symbolDrainSide: z.ZodOptional<z.ZodEnum<["left", "right", "top", "bottom"]>>;
|
|
130066
|
+
symbolSourceSide: z.ZodOptional<z.ZodEnum<["left", "right", "top", "bottom"]>>;
|
|
130067
|
+
symbolGateSide: z.ZodOptional<z.ZodEnum<["left", "right", "top", "bottom"]>>;
|
|
130067
130068
|
connections: z.ZodOptional<z.ZodRecord<z.ZodEnum<["pin1", "drain", "pin2", "source", "pin3", "gate"]>, z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodReadonly<z.ZodArray<z.ZodString, "many">>]>, z.ZodArray<z.ZodString, "many">]>>>;
|
|
130068
130069
|
}, "strip", z.ZodTypeAny, {
|
|
130069
130070
|
name: string;
|
|
@@ -130646,6 +130647,9 @@ declare const mosfetProps: z.ZodObject<{
|
|
|
130646
130647
|
schSectionName?: string | undefined;
|
|
130647
130648
|
schSheetName?: string | undefined;
|
|
130648
130649
|
connections?: Partial<Record<"pin1" | "pin2" | "source" | "pin3" | "gate" | "drain", string | readonly string[] | string[]>> | undefined;
|
|
130650
|
+
symbolDrainSide?: "left" | "right" | "top" | "bottom" | undefined;
|
|
130651
|
+
symbolSourceSide?: "left" | "right" | "top" | "bottom" | undefined;
|
|
130652
|
+
symbolGateSide?: "left" | "right" | "top" | "bottom" | undefined;
|
|
130649
130653
|
}, {
|
|
130650
130654
|
name: string;
|
|
130651
130655
|
channelType: "n" | "p";
|
|
@@ -131229,6 +131233,9 @@ declare const mosfetProps: z.ZodObject<{
|
|
|
131229
131233
|
schSectionName?: string | undefined;
|
|
131230
131234
|
schSheetName?: string | undefined;
|
|
131231
131235
|
connections?: Partial<Record<"pin1" | "pin2" | "source" | "pin3" | "gate" | "drain", string | readonly string[] | string[]>> | undefined;
|
|
131236
|
+
symbolDrainSide?: "left" | "right" | "top" | "bottom" | undefined;
|
|
131237
|
+
symbolSourceSide?: "left" | "right" | "top" | "bottom" | undefined;
|
|
131238
|
+
symbolGateSide?: "left" | "right" | "top" | "bottom" | undefined;
|
|
131232
131239
|
}>;
|
|
131233
131240
|
|
|
131234
131241
|
declare const opampPinLabels: readonly ["inverting_input", "non_inverting_input", "output", "positive_supply", "negative_supply"];
|
package/dist/index.js
CHANGED
|
@@ -16280,8 +16280,6 @@ var routingTolerances = z37.object({
|
|
|
16280
16280
|
});
|
|
16281
16281
|
var autorouterConfig = z37.object({
|
|
16282
16282
|
serverUrl: url.optional(),
|
|
16283
|
-
cacheServerUrl: url.optional(),
|
|
16284
|
-
shouldUploadToCache: z37.boolean().optional(),
|
|
16285
16283
|
inputFormat: z37.enum(["simplified", "circuit-json"]).optional(),
|
|
16286
16284
|
serverMode: z37.enum(["job", "solve-endpoint"]).optional(),
|
|
16287
16285
|
serverCacheEnabled: z37.boolean().optional(),
|
|
@@ -17502,6 +17500,9 @@ var mosfetPins = [
|
|
|
17502
17500
|
var mosfetProps = commonComponentProps.extend({
|
|
17503
17501
|
channelType: z78.enum(["n", "p"]),
|
|
17504
17502
|
mosfetMode: z78.enum(["enhancement", "depletion"]),
|
|
17503
|
+
symbolDrainSide: z78.enum(["left", "right", "top", "bottom"]).optional(),
|
|
17504
|
+
symbolSourceSide: z78.enum(["left", "right", "top", "bottom"]).optional(),
|
|
17505
|
+
symbolGateSide: z78.enum(["left", "right", "top", "bottom"]).optional(),
|
|
17505
17506
|
connections: createConnectionsProp(mosfetPins).optional()
|
|
17506
17507
|
});
|
|
17507
17508
|
expectTypesMatch(true);
|