@tscircuit/props 0.0.523 → 0.0.525

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
@@ -219,6 +219,7 @@ export interface AutoroutingPhaseProps {
219
219
  autorouter?: AutorouterProp;
220
220
  phaseIndex?: number;
221
221
  region?: {
222
+ shape?: "rect";
222
223
  minX: number;
223
224
  maxX: number;
224
225
  minY: number;
package/dist/index.d.ts CHANGED
@@ -121483,6 +121483,7 @@ interface AutoroutingPhaseProps {
121483
121483
  autorouter?: AutorouterProp;
121484
121484
  phaseIndex?: number;
121485
121485
  region?: {
121486
+ shape?: "rect";
121486
121487
  minX: number;
121487
121488
  maxX: number;
121488
121489
  minY: number;
@@ -121495,6 +121496,7 @@ declare const autoroutingPhaseProps: z.ZodEffects<z.ZodObject<{
121495
121496
  autorouter: z.ZodOptional<z.ZodType<AutorouterProp, z.ZodTypeDef, AutorouterProp>>;
121496
121497
  phaseIndex: z.ZodOptional<z.ZodNumber>;
121497
121498
  region: z.ZodOptional<z.ZodObject<{
121499
+ shape: z.ZodOptional<z.ZodLiteral<"rect">>;
121498
121500
  minX: z.ZodNumber;
121499
121501
  maxX: z.ZodNumber;
121500
121502
  minY: z.ZodNumber;
@@ -121504,11 +121506,13 @@ declare const autoroutingPhaseProps: z.ZodEffects<z.ZodObject<{
121504
121506
  maxX: number;
121505
121507
  minY: number;
121506
121508
  maxY: number;
121509
+ shape?: "rect" | undefined;
121507
121510
  }, {
121508
121511
  minX: number;
121509
121512
  maxX: number;
121510
121513
  minY: number;
121511
121514
  maxY: number;
121515
+ shape?: "rect" | undefined;
121512
121516
  }>>;
121513
121517
  reroute: z.ZodOptional<z.ZodBoolean>;
121514
121518
  }, "strip", z.ZodTypeAny, {
@@ -121520,6 +121524,7 @@ declare const autoroutingPhaseProps: z.ZodEffects<z.ZodObject<{
121520
121524
  maxX: number;
121521
121525
  minY: number;
121522
121526
  maxY: number;
121527
+ shape?: "rect" | undefined;
121523
121528
  } | undefined;
121524
121529
  reroute?: boolean | undefined;
121525
121530
  }, {
@@ -121531,6 +121536,7 @@ declare const autoroutingPhaseProps: z.ZodEffects<z.ZodObject<{
121531
121536
  maxX: number;
121532
121537
  minY: number;
121533
121538
  maxY: number;
121539
+ shape?: "rect" | undefined;
121534
121540
  } | undefined;
121535
121541
  reroute?: boolean | undefined;
121536
121542
  }>, {
@@ -121542,6 +121548,7 @@ declare const autoroutingPhaseProps: z.ZodEffects<z.ZodObject<{
121542
121548
  maxX: number;
121543
121549
  minY: number;
121544
121550
  maxY: number;
121551
+ shape?: "rect" | undefined;
121545
121552
  } | undefined;
121546
121553
  reroute?: boolean | undefined;
121547
121554
  }, {
@@ -121553,6 +121560,7 @@ declare const autoroutingPhaseProps: z.ZodEffects<z.ZodObject<{
121553
121560
  maxX: number;
121554
121561
  minY: number;
121555
121562
  maxY: number;
121563
+ shape?: "rect" | undefined;
121556
121564
  } | undefined;
121557
121565
  reroute?: boolean | undefined;
121558
121566
  }>;
@@ -184284,7 +184292,7 @@ declare const portProps: z.ZodObject<{
184284
184292
  schRelative: z.ZodOptional<z.ZodBoolean>;
184285
184293
  pcbRelative: z.ZodOptional<z.ZodBoolean>;
184286
184294
  } & {
184287
- name: z.ZodString;
184295
+ name: z.ZodOptional<z.ZodString>;
184288
184296
  pinNumber: z.ZodOptional<z.ZodNumber>;
184289
184297
  schStemLength: z.ZodOptional<z.ZodNumber>;
184290
184298
  aliases: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -184315,9 +184323,9 @@ declare const portProps: z.ZodObject<{
184315
184323
  }>>;
184316
184324
  hasInversionCircle: z.ZodOptional<z.ZodBoolean>;
184317
184325
  }, "strip", z.ZodTypeAny, {
184318
- name: string;
184319
184326
  symbol?: SymbolProp | undefined;
184320
184327
  layer?: string | undefined;
184328
+ name?: string | undefined;
184321
184329
  layers?: string[] | undefined;
184322
184330
  pcbX?: string | number | undefined;
184323
184331
  pcbY?: string | number | undefined;
@@ -184379,9 +184387,9 @@ declare const portProps: z.ZodObject<{
184379
184387
  } | undefined;
184380
184388
  hasInversionCircle?: boolean | undefined;
184381
184389
  }, {
184382
- name: string;
184383
184390
  symbol?: SymbolProp | undefined;
184384
184391
  layer?: string | undefined;
184392
+ name?: string | undefined;
184385
184393
  layers?: string[] | undefined;
184386
184394
  pcbX?: string | number | undefined;
184387
184395
  pcbY?: string | number | undefined;
package/dist/index.js CHANGED
@@ -17353,6 +17353,7 @@ var autoroutingPhaseProps = z73.object({
17353
17353
  autorouter: autorouterProp.optional(),
17354
17354
  phaseIndex: z73.number().optional(),
17355
17355
  region: z73.object({
17356
+ shape: z73.literal("rect").optional(),
17356
17357
  minX: z73.number(),
17357
17358
  maxX: z73.number(),
17358
17359
  minY: z73.number(),
@@ -18200,7 +18201,7 @@ var traceHintProps = z118.object({
18200
18201
  // lib/components/port.ts
18201
18202
  import { z as z119 } from "zod";
18202
18203
  var portProps = commonLayoutProps.extend({
18203
- name: z119.string(),
18204
+ name: z119.string().optional(),
18204
18205
  pinNumber: z119.number().optional(),
18205
18206
  schStemLength: z119.number().optional(),
18206
18207
  aliases: z119.array(z119.string()).optional(),