@tscircuit/props 0.0.522 → 0.0.524
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/dist/index.d.ts +6 -6
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/lib/components/port.ts +2 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -184284,7 +184284,7 @@ declare const portProps: z.ZodObject<{
|
|
|
184284
184284
|
schRelative: z.ZodOptional<z.ZodBoolean>;
|
|
184285
184285
|
pcbRelative: z.ZodOptional<z.ZodBoolean>;
|
|
184286
184286
|
} & {
|
|
184287
|
-
name: z.ZodString
|
|
184287
|
+
name: z.ZodOptional<z.ZodString>;
|
|
184288
184288
|
pinNumber: z.ZodOptional<z.ZodNumber>;
|
|
184289
184289
|
schStemLength: z.ZodOptional<z.ZodNumber>;
|
|
184290
184290
|
aliases: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -184292,7 +184292,7 @@ declare const portProps: z.ZodObject<{
|
|
|
184292
184292
|
layers: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
184293
184293
|
schX: z.ZodOptional<z.ZodNumber>;
|
|
184294
184294
|
schY: z.ZodOptional<z.ZodNumber>;
|
|
184295
|
-
direction: z.ZodEnum<["up", "down", "left", "right"]
|
|
184295
|
+
direction: z.ZodOptional<z.ZodEnum<["up", "down", "left", "right"]>>;
|
|
184296
184296
|
connectsTo: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
184297
184297
|
kicadPinMetadata: z.ZodOptional<z.ZodObject<{
|
|
184298
184298
|
electricalType: z.ZodOptional<z.ZodEnum<["input", "output", "bidirectional", "tri_state", "passive", "free", "unspecified", "power_in", "power_out", "open_collector", "open_emitter", "no_connect"]>>;
|
|
@@ -184315,10 +184315,9 @@ declare const portProps: z.ZodObject<{
|
|
|
184315
184315
|
}>>;
|
|
184316
184316
|
hasInversionCircle: z.ZodOptional<z.ZodBoolean>;
|
|
184317
184317
|
}, "strip", z.ZodTypeAny, {
|
|
184318
|
-
name: string;
|
|
184319
|
-
direction: "up" | "down" | "left" | "right";
|
|
184320
184318
|
symbol?: SymbolProp | undefined;
|
|
184321
184319
|
layer?: string | undefined;
|
|
184320
|
+
name?: string | undefined;
|
|
184322
184321
|
layers?: string[] | undefined;
|
|
184323
184322
|
pcbX?: string | number | undefined;
|
|
184324
184323
|
pcbY?: string | number | undefined;
|
|
@@ -184366,6 +184365,7 @@ declare const portProps: z.ZodObject<{
|
|
|
184366
184365
|
defaultCapacitorOrientation?: "none" | "vertical" | undefined;
|
|
184367
184366
|
} | undefined;
|
|
184368
184367
|
schRelative?: boolean | undefined;
|
|
184368
|
+
direction?: "up" | "down" | "left" | "right" | undefined;
|
|
184369
184369
|
connectsTo?: string | string[] | undefined;
|
|
184370
184370
|
pinNumber?: number | undefined;
|
|
184371
184371
|
schStemLength?: number | undefined;
|
|
@@ -184379,10 +184379,9 @@ declare const portProps: z.ZodObject<{
|
|
|
184379
184379
|
} | undefined;
|
|
184380
184380
|
hasInversionCircle?: boolean | undefined;
|
|
184381
184381
|
}, {
|
|
184382
|
-
name: string;
|
|
184383
|
-
direction: "up" | "down" | "left" | "right";
|
|
184384
184382
|
symbol?: SymbolProp | undefined;
|
|
184385
184383
|
layer?: string | undefined;
|
|
184384
|
+
name?: string | undefined;
|
|
184386
184385
|
layers?: string[] | undefined;
|
|
184387
184386
|
pcbX?: string | number | undefined;
|
|
184388
184387
|
pcbY?: string | number | undefined;
|
|
@@ -184430,6 +184429,7 @@ declare const portProps: z.ZodObject<{
|
|
|
184430
184429
|
defaultCapacitorOrientation?: "none" | "vertical" | undefined;
|
|
184431
184430
|
} | undefined;
|
|
184432
184431
|
schRelative?: boolean | undefined;
|
|
184432
|
+
direction?: "up" | "down" | "left" | "right" | undefined;
|
|
184433
184433
|
connectsTo?: string | string[] | undefined;
|
|
184434
184434
|
pinNumber?: number | undefined;
|
|
184435
184435
|
schStemLength?: number | undefined;
|
package/dist/index.js
CHANGED
|
@@ -18200,7 +18200,7 @@ var traceHintProps = z118.object({
|
|
|
18200
18200
|
// lib/components/port.ts
|
|
18201
18201
|
import { z as z119 } from "zod";
|
|
18202
18202
|
var portProps = commonLayoutProps.extend({
|
|
18203
|
-
name: z119.string(),
|
|
18203
|
+
name: z119.string().optional(),
|
|
18204
18204
|
pinNumber: z119.number().optional(),
|
|
18205
18205
|
schStemLength: z119.number().optional(),
|
|
18206
18206
|
aliases: z119.array(z119.string()).optional(),
|
|
@@ -18208,7 +18208,7 @@ var portProps = commonLayoutProps.extend({
|
|
|
18208
18208
|
layers: z119.array(z119.string()).optional(),
|
|
18209
18209
|
schX: z119.number().optional(),
|
|
18210
18210
|
schY: z119.number().optional(),
|
|
18211
|
-
direction,
|
|
18211
|
+
direction: direction.optional(),
|
|
18212
18212
|
connectsTo: z119.string().or(z119.array(z119.string())).optional(),
|
|
18213
18213
|
kicadPinMetadata: kicadPinMetadata.optional(),
|
|
18214
18214
|
hasInversionCircle: z119.boolean().optional()
|