@tscircuit/props 0.0.590 → 0.0.591

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.js CHANGED
@@ -18191,62 +18191,84 @@ var schematicBoxProps = z112.object({
18191
18191
  );
18192
18192
  expectTypesMatch(true);
18193
18193
 
18194
+ // lib/components/schematic-symbol.ts
18195
+ import { rotation as rotation8 } from "circuit-json";
18196
+ import { z as z113 } from "zod";
18197
+ var schematicSymbolConnections = z113.custom().pipe(z113.record(z113.string(), connectionTarget)).refine((value) => Object.keys(value).length > 0, {
18198
+ message: "connections must map at least one schematic symbol port"
18199
+ });
18200
+ var schematicSymbolProps = z113.object({
18201
+ name: z113.string().min(1),
18202
+ displayName: z113.string().optional(),
18203
+ chipRef: z113.string().min(1).optional(),
18204
+ symbolName: z113.string().min(1),
18205
+ connections: schematicSymbolConnections.optional(),
18206
+ schX: distance.optional(),
18207
+ schY: distance.optional(),
18208
+ schRotation: rotation8.optional(),
18209
+ schSectionName: z113.string().optional(),
18210
+ schSheetName: z113.string().optional()
18211
+ });
18212
+ expectTypesMatch(
18213
+ true
18214
+ );
18215
+
18194
18216
  // lib/components/schematic-circle.ts
18195
18217
  import { distance as distance32, point as point6 } from "circuit-json";
18196
- import { z as z113 } from "zod";
18197
- var schematicCircleProps = z113.object({
18218
+ import { z as z114 } from "zod";
18219
+ var schematicCircleProps = z114.object({
18198
18220
  center: point6,
18199
18221
  radius: distance32,
18200
18222
  strokeWidth: distance32.optional(),
18201
- color: z113.string().optional(),
18202
- isFilled: z113.boolean().optional().default(false),
18203
- fillColor: z113.string().optional(),
18204
- isDashed: z113.boolean().optional().default(false)
18223
+ color: z114.string().optional(),
18224
+ isFilled: z114.boolean().optional().default(false),
18225
+ fillColor: z114.string().optional(),
18226
+ isDashed: z114.boolean().optional().default(false)
18205
18227
  });
18206
18228
  expectTypesMatch(
18207
18229
  true
18208
18230
  );
18209
18231
 
18210
18232
  // lib/components/schematic-rect.ts
18211
- import { distance as distance33, rotation as rotation8 } from "circuit-json";
18212
- import { z as z114 } from "zod";
18213
- var schematicRectProps = z114.object({
18233
+ import { distance as distance33, rotation as rotation9 } from "circuit-json";
18234
+ import { z as z115 } from "zod";
18235
+ var schematicRectProps = z115.object({
18214
18236
  schX: distance33.optional(),
18215
18237
  schY: distance33.optional(),
18216
18238
  width: distance33,
18217
18239
  height: distance33,
18218
- rotation: rotation8.default(0),
18240
+ rotation: rotation9.default(0),
18219
18241
  strokeWidth: distance33.optional(),
18220
- color: z114.string().optional(),
18221
- isFilled: z114.boolean().optional().default(false),
18222
- fillColor: z114.string().optional(),
18223
- isDashed: z114.boolean().optional().default(false)
18242
+ color: z115.string().optional(),
18243
+ isFilled: z115.boolean().optional().default(false),
18244
+ fillColor: z115.string().optional(),
18245
+ isDashed: z115.boolean().optional().default(false)
18224
18246
  });
18225
18247
  expectTypesMatch(true);
18226
18248
 
18227
18249
  // lib/components/schematic-line.ts
18228
18250
  import { distance as distance34 } from "circuit-json";
18229
- import { z as z115 } from "zod";
18230
- var schematicLineProps = z115.object({
18251
+ import { z as z116 } from "zod";
18252
+ var schematicLineProps = z116.object({
18231
18253
  x1: distance34,
18232
18254
  y1: distance34,
18233
18255
  x2: distance34,
18234
18256
  y2: distance34,
18235
18257
  strokeWidth: distance34.optional(),
18236
- color: z115.string().optional(),
18237
- isDashed: z115.boolean().optional().default(false),
18258
+ color: z116.string().optional(),
18259
+ isDashed: z116.boolean().optional().default(false),
18238
18260
  dashLength: distance34.optional(),
18239
18261
  dashGap: distance34.optional()
18240
18262
  });
18241
18263
  expectTypesMatch(true);
18242
18264
 
18243
18265
  // lib/components/schematic-text.ts
18244
- import { distance as distance35, rotation as rotation9 } from "circuit-json";
18245
- import { z as z117 } from "zod";
18266
+ import { distance as distance35, rotation as rotation10 } from "circuit-json";
18267
+ import { z as z118 } from "zod";
18246
18268
 
18247
18269
  // lib/common/fivePointAnchor.ts
18248
- import { z as z116 } from "zod";
18249
- var fivePointAnchor = z116.enum([
18270
+ import { z as z117 } from "zod";
18271
+ var fivePointAnchor = z117.enum([
18250
18272
  "center",
18251
18273
  "left",
18252
18274
  "right",
@@ -18255,39 +18277,39 @@ var fivePointAnchor = z116.enum([
18255
18277
  ]);
18256
18278
 
18257
18279
  // lib/components/schematic-text.ts
18258
- var schematicTextProps = z117.object({
18280
+ var schematicTextProps = z118.object({
18259
18281
  schX: distance35.optional(),
18260
18282
  schY: distance35.optional(),
18261
- text: z117.string(),
18262
- fontSize: z117.number().default(1),
18263
- anchor: z117.union([fivePointAnchor.describe("legacy"), ninePointAnchor]).default("center"),
18264
- color: z117.string().default("#000000"),
18265
- schRotation: rotation9.default(0)
18283
+ text: z118.string(),
18284
+ fontSize: z118.number().default(1),
18285
+ anchor: z118.union([fivePointAnchor.describe("legacy"), ninePointAnchor]).default("center"),
18286
+ color: z118.string().default("#000000"),
18287
+ schRotation: rotation10.default(0)
18266
18288
  });
18267
18289
  expectTypesMatch(true);
18268
18290
 
18269
18291
  // lib/components/schematic-path.ts
18270
18292
  import { distance as distance36, point as point7 } from "circuit-json";
18271
- import { z as z118 } from "zod";
18272
- var schematicPathProps = z118.object({
18273
- points: z118.array(point7).optional(),
18274
- svgPath: z118.string().optional(),
18293
+ import { z as z119 } from "zod";
18294
+ var schematicPathProps = z119.object({
18295
+ points: z119.array(point7).optional(),
18296
+ svgPath: z119.string().optional(),
18275
18297
  strokeWidth: distance36.optional(),
18276
- strokeColor: z118.string().optional(),
18298
+ strokeColor: z119.string().optional(),
18277
18299
  dashLength: distance36.optional(),
18278
18300
  dashGap: distance36.optional(),
18279
- isFilled: z118.boolean().optional().default(false),
18280
- fillColor: z118.string().optional()
18301
+ isFilled: z119.boolean().optional().default(false),
18302
+ fillColor: z119.string().optional()
18281
18303
  });
18282
18304
  expectTypesMatch(true);
18283
18305
 
18284
18306
  // lib/components/schematic-table.ts
18285
18307
  import { distance as distance37 } from "circuit-json";
18286
- import { z as z119 } from "zod";
18287
- var schematicTableProps = z119.object({
18308
+ import { z as z120 } from "zod";
18309
+ var schematicTableProps = z120.object({
18288
18310
  schX: distance37.optional(),
18289
18311
  schY: distance37.optional(),
18290
- children: z119.any().optional(),
18312
+ children: z120.any().optional(),
18291
18313
  cellPadding: distance37.optional(),
18292
18314
  borderWidth: distance37.optional(),
18293
18315
  anchor: ninePointAnchor.optional(),
@@ -18297,34 +18319,34 @@ expectTypesMatch(true);
18297
18319
 
18298
18320
  // lib/components/schematic-row.ts
18299
18321
  import { distance as distance38 } from "circuit-json";
18300
- import { z as z120 } from "zod";
18301
- var schematicRowProps = z120.object({
18302
- children: z120.any().optional(),
18322
+ import { z as z121 } from "zod";
18323
+ var schematicRowProps = z121.object({
18324
+ children: z121.any().optional(),
18303
18325
  height: distance38.optional()
18304
18326
  });
18305
18327
  expectTypesMatch(true);
18306
18328
 
18307
18329
  // lib/components/schematic-cell.ts
18308
18330
  import { distance as distance39 } from "circuit-json";
18309
- import { z as z121 } from "zod";
18310
- var schematicCellProps = z121.object({
18311
- children: z121.string().optional(),
18312
- horizontalAlign: z121.enum(["left", "center", "right"]).optional(),
18313
- verticalAlign: z121.enum(["top", "middle", "bottom"]).optional(),
18331
+ import { z as z122 } from "zod";
18332
+ var schematicCellProps = z122.object({
18333
+ children: z122.string().optional(),
18334
+ horizontalAlign: z122.enum(["left", "center", "right"]).optional(),
18335
+ verticalAlign: z122.enum(["top", "middle", "bottom"]).optional(),
18314
18336
  fontSize: distance39.optional(),
18315
- rowSpan: z121.number().optional(),
18316
- colSpan: z121.number().optional(),
18337
+ rowSpan: z122.number().optional(),
18338
+ colSpan: z122.number().optional(),
18317
18339
  width: distance39.optional(),
18318
- text: z121.string().optional()
18340
+ text: z122.string().optional()
18319
18341
  });
18320
18342
  expectTypesMatch(true);
18321
18343
 
18322
18344
  // lib/components/schematic-section.ts
18323
18345
  import { distance as distance40 } from "circuit-json";
18324
- import { z as z122 } from "zod";
18325
- var schematicSectionProps = z122.object({
18326
- displayName: z122.string().optional(),
18327
- name: z122.string(),
18346
+ import { z as z123 } from "zod";
18347
+ var schematicSectionProps = z123.object({
18348
+ displayName: z123.string().optional(),
18349
+ name: z123.string(),
18328
18350
  sectionTitleFontSize: distance40.optional()
18329
18351
  });
18330
18352
  expectTypesMatch(
@@ -18332,51 +18354,51 @@ expectTypesMatch(
18332
18354
  );
18333
18355
 
18334
18356
  // lib/components/schematic-sheet.ts
18335
- import { z as z123 } from "zod";
18336
- var schematicSheetProps = z123.object({
18337
- name: z123.string(),
18338
- displayName: z123.string(),
18339
- sheetIndex: z123.number().optional(),
18340
- children: z123.any().optional()
18357
+ import { z as z124 } from "zod";
18358
+ var schematicSheetProps = z124.object({
18359
+ name: z124.string(),
18360
+ displayName: z124.string(),
18361
+ sheetIndex: z124.number().optional(),
18362
+ children: z124.any().optional()
18341
18363
  });
18342
18364
  expectTypesMatch(true);
18343
18365
 
18344
18366
  // lib/components/copper-text.ts
18345
18367
  import { layer_ref as layer_ref10, length as length8 } from "circuit-json";
18346
- import { z as z124 } from "zod";
18368
+ import { z as z125 } from "zod";
18347
18369
  var copperTextProps = pcbLayoutProps.extend({
18348
- text: z124.string(),
18370
+ text: z125.string(),
18349
18371
  anchorAlignment: ninePointAnchor.default("center"),
18350
- font: z124.enum(["tscircuit2024"]).optional(),
18372
+ font: z125.enum(["tscircuit2024"]).optional(),
18351
18373
  fontSize: length8.optional(),
18352
- layers: z124.array(layer_ref10).optional(),
18353
- knockout: z124.boolean().optional(),
18354
- mirrored: z124.boolean().optional()
18374
+ layers: z125.array(layer_ref10).optional(),
18375
+ knockout: z125.boolean().optional(),
18376
+ mirrored: z125.boolean().optional()
18355
18377
  });
18356
18378
 
18357
18379
  // lib/components/silkscreen-text.ts
18358
18380
  import { layer_ref as layer_ref11, length as length9 } from "circuit-json";
18359
- import { z as z125 } from "zod";
18381
+ import { z as z126 } from "zod";
18360
18382
  var silkscreenTextProps = pcbLayoutProps.extend({
18361
- text: z125.string(),
18383
+ text: z126.string(),
18362
18384
  anchorAlignment: ninePointAnchor.default("center"),
18363
- font: z125.enum(["tscircuit2024"]).optional(),
18385
+ font: z126.enum(["tscircuit2024"]).optional(),
18364
18386
  fontSize: length9.optional(),
18365
18387
  /**
18366
18388
  * If true, text will knock out underlying silkscreen
18367
18389
  */
18368
- isKnockout: z125.boolean().optional(),
18390
+ isKnockout: z126.boolean().optional(),
18369
18391
  knockoutPadding: length9.optional(),
18370
18392
  knockoutPaddingLeft: length9.optional(),
18371
18393
  knockoutPaddingRight: length9.optional(),
18372
18394
  knockoutPaddingTop: length9.optional(),
18373
18395
  knockoutPaddingBottom: length9.optional(),
18374
- layers: z125.array(layer_ref11).optional()
18396
+ layers: z126.array(layer_ref11).optional()
18375
18397
  });
18376
18398
 
18377
18399
  // lib/components/silkscreen-path.ts
18378
18400
  import { length as length10, route_hint_point as route_hint_point5 } from "circuit-json";
18379
- import { z as z126 } from "zod";
18401
+ import { z as z127 } from "zod";
18380
18402
  var silkscreenPathProps = pcbLayoutProps.omit({
18381
18403
  pcbLeftEdgeX: true,
18382
18404
  pcbRightEdgeX: true,
@@ -18388,7 +18410,7 @@ var silkscreenPathProps = pcbLayoutProps.omit({
18388
18410
  pcbOffsetY: true,
18389
18411
  pcbRotation: true
18390
18412
  }).extend({
18391
- route: z126.array(route_hint_point5),
18413
+ route: z127.array(route_hint_point5),
18392
18414
  strokeWidth: length10.optional()
18393
18415
  });
18394
18416
 
@@ -18410,10 +18432,10 @@ var silkscreenLineProps = pcbLayoutProps.omit({
18410
18432
 
18411
18433
  // lib/components/silkscreen-rect.ts
18412
18434
  import { distance as distance42 } from "circuit-json";
18413
- import { z as z127 } from "zod";
18435
+ import { z as z128 } from "zod";
18414
18436
  var silkscreenRectProps = pcbLayoutProps.omit({ pcbRotation: true }).extend({
18415
- filled: z127.boolean().default(true).optional(),
18416
- stroke: z127.enum(["dashed", "solid", "none"]).optional(),
18437
+ filled: z128.boolean().default(true).optional(),
18438
+ stroke: z128.enum(["dashed", "solid", "none"]).optional(),
18417
18439
  strokeWidth: distance42.optional(),
18418
18440
  width: distance42,
18419
18441
  height: distance42,
@@ -18422,10 +18444,10 @@ var silkscreenRectProps = pcbLayoutProps.omit({ pcbRotation: true }).extend({
18422
18444
 
18423
18445
  // lib/components/silkscreen-circle.ts
18424
18446
  import { distance as distance43 } from "circuit-json";
18425
- import { z as z128 } from "zod";
18447
+ import { z as z129 } from "zod";
18426
18448
  var silkscreenCircleProps = pcbLayoutProps.omit({ pcbRotation: true }).extend({
18427
- isFilled: z128.boolean().optional(),
18428
- isOutline: z128.boolean().optional(),
18449
+ isFilled: z129.boolean().optional(),
18450
+ isOutline: z129.boolean().optional(),
18429
18451
  strokeWidth: distance43.optional(),
18430
18452
  radius: distance43
18431
18453
  });
@@ -18443,63 +18465,63 @@ expectTypesMatch(true);
18443
18465
 
18444
18466
  // lib/components/trace-hint.ts
18445
18467
  import { distance as distance44, layer_ref as layer_ref12, route_hint_point as route_hint_point6 } from "circuit-json";
18446
- import { z as z130 } from "zod";
18447
- var routeHintPointProps = z130.object({
18468
+ import { z as z131 } from "zod";
18469
+ var routeHintPointProps = z131.object({
18448
18470
  x: distance44,
18449
18471
  y: distance44,
18450
- via: z130.boolean().optional(),
18472
+ via: z131.boolean().optional(),
18451
18473
  toLayer: layer_ref12.optional()
18452
18474
  });
18453
- var traceHintProps = z130.object({
18454
- for: z130.string().optional().describe(
18475
+ var traceHintProps = z131.object({
18476
+ for: z131.string().optional().describe(
18455
18477
  "Selector for the port you're targeting, not required if you're inside a trace"
18456
18478
  ),
18457
- order: z130.number().optional(),
18479
+ order: z131.number().optional(),
18458
18480
  offset: route_hint_point6.or(routeHintPointProps).optional(),
18459
- offsets: z130.array(route_hint_point6).or(z130.array(routeHintPointProps)).optional(),
18460
- traceWidth: z130.number().optional()
18481
+ offsets: z131.array(route_hint_point6).or(z131.array(routeHintPointProps)).optional(),
18482
+ traceWidth: z131.number().optional()
18461
18483
  });
18462
18484
 
18463
18485
  // lib/components/port.ts
18464
- import { z as z131 } from "zod";
18486
+ import { z as z132 } from "zod";
18465
18487
  var portProps = commonLayoutProps.extend({
18466
- name: z131.string().optional(),
18467
- pinNumber: z131.number().optional(),
18468
- schStemLength: z131.number().optional(),
18469
- aliases: z131.array(z131.string()).optional(),
18470
- layer: z131.string().optional(),
18471
- layers: z131.array(z131.string()).optional(),
18472
- schX: z131.number().optional(),
18473
- schY: z131.number().optional(),
18488
+ name: z132.string().optional(),
18489
+ pinNumber: z132.number().optional(),
18490
+ schStemLength: z132.number().optional(),
18491
+ aliases: z132.array(z132.string()).optional(),
18492
+ layer: z132.string().optional(),
18493
+ layers: z132.array(z132.string()).optional(),
18494
+ schX: z132.number().optional(),
18495
+ schY: z132.number().optional(),
18474
18496
  direction: direction.optional(),
18475
- connectsTo: z131.string().or(z131.array(z131.string())).optional(),
18497
+ connectsTo: z132.string().or(z132.array(z132.string())).optional(),
18476
18498
  kicadPinMetadata: kicadPinMetadata.optional(),
18477
- hasInversionCircle: z131.boolean().optional()
18499
+ hasInversionCircle: z132.boolean().optional()
18478
18500
  });
18479
18501
 
18480
18502
  // lib/components/pcb-note-text.ts
18481
18503
  import { length as length11 } from "circuit-json";
18482
- import { z as z132 } from "zod";
18504
+ import { z as z133 } from "zod";
18483
18505
  var pcbNoteTextProps = pcbLayoutProps.extend({
18484
- text: z132.string(),
18485
- anchorAlignment: z132.enum(["center", "top_left", "top_right", "bottom_left", "bottom_right"]).default("center"),
18486
- font: z132.enum(["tscircuit2024"]).optional(),
18506
+ text: z133.string(),
18507
+ anchorAlignment: z133.enum(["center", "top_left", "top_right", "bottom_left", "bottom_right"]).default("center"),
18508
+ font: z133.enum(["tscircuit2024"]).optional(),
18487
18509
  fontSize: length11.optional(),
18488
- color: z132.string().optional()
18510
+ color: z133.string().optional()
18489
18511
  });
18490
18512
  expectTypesMatch(true);
18491
18513
 
18492
18514
  // lib/components/pcb-note-rect.ts
18493
18515
  import { distance as distance45 } from "circuit-json";
18494
- import { z as z133 } from "zod";
18516
+ import { z as z134 } from "zod";
18495
18517
  var pcbNoteRectProps = pcbLayoutProps.omit({ pcbRotation: true }).extend({
18496
18518
  width: distance45,
18497
18519
  height: distance45,
18498
18520
  strokeWidth: distance45.optional(),
18499
- isFilled: z133.boolean().optional(),
18500
- hasStroke: z133.boolean().optional(),
18501
- isStrokeDashed: z133.boolean().optional(),
18502
- color: z133.string().optional(),
18521
+ isFilled: z134.boolean().optional(),
18522
+ hasStroke: z134.boolean().optional(),
18523
+ isStrokeDashed: z134.boolean().optional(),
18524
+ color: z134.string().optional(),
18503
18525
  cornerRadius: distance45.optional()
18504
18526
  });
18505
18527
  expectTypesMatch(true);
@@ -18509,7 +18531,7 @@ import {
18509
18531
  length as length12,
18510
18532
  route_hint_point as route_hint_point7
18511
18533
  } from "circuit-json";
18512
- import { z as z134 } from "zod";
18534
+ import { z as z135 } from "zod";
18513
18535
  var pcbNotePathProps = pcbLayoutProps.omit({
18514
18536
  pcbLeftEdgeX: true,
18515
18537
  pcbRightEdgeX: true,
@@ -18521,15 +18543,15 @@ var pcbNotePathProps = pcbLayoutProps.omit({
18521
18543
  pcbOffsetY: true,
18522
18544
  pcbRotation: true
18523
18545
  }).extend({
18524
- route: z134.array(route_hint_point7),
18546
+ route: z135.array(route_hint_point7),
18525
18547
  strokeWidth: length12.optional(),
18526
- color: z134.string().optional()
18548
+ color: z135.string().optional()
18527
18549
  });
18528
18550
  expectTypesMatch(true);
18529
18551
 
18530
18552
  // lib/components/pcb-note-line.ts
18531
18553
  import { distance as distance46 } from "circuit-json";
18532
- import { z as z135 } from "zod";
18554
+ import { z as z136 } from "zod";
18533
18555
  var pcbNoteLineProps = pcbLayoutProps.omit({
18534
18556
  pcbLeftEdgeX: true,
18535
18557
  pcbRightEdgeX: true,
@@ -18546,15 +18568,15 @@ var pcbNoteLineProps = pcbLayoutProps.omit({
18546
18568
  x2: distance46,
18547
18569
  y2: distance46,
18548
18570
  strokeWidth: distance46.optional(),
18549
- color: z135.string().optional(),
18550
- isDashed: z135.boolean().optional()
18571
+ color: z136.string().optional(),
18572
+ isDashed: z136.boolean().optional()
18551
18573
  });
18552
18574
  expectTypesMatch(true);
18553
18575
 
18554
18576
  // lib/components/pcb-note-dimension.ts
18555
18577
  import { distance as distance47, length as length13 } from "circuit-json";
18556
- import { z as z136 } from "zod";
18557
- var dimensionTarget2 = z136.union([z136.string(), point]);
18578
+ import { z as z137 } from "zod";
18579
+ var dimensionTarget2 = z137.union([z137.string(), point]);
18558
18580
  var pcbNoteDimensionProps = pcbLayoutProps.omit({
18559
18581
  pcbLeftEdgeX: true,
18560
18582
  pcbRightEdgeX: true,
@@ -18568,101 +18590,101 @@ var pcbNoteDimensionProps = pcbLayoutProps.omit({
18568
18590
  }).extend({
18569
18591
  from: dimensionTarget2,
18570
18592
  to: dimensionTarget2,
18571
- text: z136.string().optional(),
18593
+ text: z137.string().optional(),
18572
18594
  offset: distance47.optional(),
18573
- font: z136.enum(["tscircuit2024"]).optional(),
18595
+ font: z137.enum(["tscircuit2024"]).optional(),
18574
18596
  fontSize: length13.optional(),
18575
- color: z136.string().optional(),
18597
+ color: z137.string().optional(),
18576
18598
  arrowSize: distance47.optional(),
18577
- units: z136.enum(["in", "mm"]).optional(),
18578
- outerEdgeToEdge: z136.literal(true).optional(),
18579
- centerToCenter: z136.literal(true).optional(),
18580
- innerEdgeToEdge: z136.literal(true).optional()
18599
+ units: z137.enum(["in", "mm"]).optional(),
18600
+ outerEdgeToEdge: z137.literal(true).optional(),
18601
+ centerToCenter: z137.literal(true).optional(),
18602
+ innerEdgeToEdge: z137.literal(true).optional()
18581
18603
  });
18582
18604
  expectTypesMatch(
18583
18605
  true
18584
18606
  );
18585
18607
 
18586
18608
  // lib/platformConfig.ts
18587
- import { z as z137 } from "zod";
18588
- var unvalidatedCircuitJson = z137.array(z137.any()).describe("Circuit JSON");
18589
- var footprintLibraryResult = z137.object({
18590
- footprintCircuitJson: z137.array(z137.any()),
18609
+ import { z as z138 } from "zod";
18610
+ var unvalidatedCircuitJson = z138.array(z138.any()).describe("Circuit JSON");
18611
+ var footprintLibraryResult = z138.object({
18612
+ footprintCircuitJson: z138.array(z138.any()),
18591
18613
  cadModel: cadModelProp.optional()
18592
18614
  });
18593
- var pathToCircuitJsonFn = z137.function().args(z137.string()).returns(z137.promise(footprintLibraryResult)).or(
18594
- z137.function().args(
18595
- z137.string(),
18596
- z137.object({ resolvedPcbStyle: pcbStyle.optional() }).optional()
18597
- ).returns(z137.promise(footprintLibraryResult))
18615
+ var pathToCircuitJsonFn = z138.function().args(z138.string()).returns(z138.promise(footprintLibraryResult)).or(
18616
+ z138.function().args(
18617
+ z138.string(),
18618
+ z138.object({ resolvedPcbStyle: pcbStyle.optional() }).optional()
18619
+ ).returns(z138.promise(footprintLibraryResult))
18598
18620
  ).describe("A function that takes a path and returns Circuit JSON");
18599
- var footprintFileParserEntry = z137.object({
18600
- loadFromUrl: z137.function().args(z137.string()).returns(z137.promise(footprintLibraryResult)).describe(
18621
+ var footprintFileParserEntry = z138.object({
18622
+ loadFromUrl: z138.function().args(z138.string()).returns(z138.promise(footprintLibraryResult)).describe(
18601
18623
  "A function that takes a footprint file URL and returns Circuit JSON"
18602
18624
  )
18603
18625
  });
18604
- var spiceEngineSimulationResult = z137.object({
18605
- engineVersionString: z137.string().optional(),
18626
+ var spiceEngineSimulationResult = z138.object({
18627
+ engineVersionString: z138.string().optional(),
18606
18628
  simulationResultCircuitJson: unvalidatedCircuitJson
18607
18629
  });
18608
- var spiceEngineZod = z137.object({
18609
- simulate: z137.function().args(z137.string()).returns(z137.promise(spiceEngineSimulationResult)).describe(
18630
+ var spiceEngineZod = z138.object({
18631
+ simulate: z138.function().args(z138.string()).returns(z138.promise(spiceEngineSimulationResult)).describe(
18610
18632
  "A function that takes a SPICE string and returns a simulation result"
18611
18633
  )
18612
18634
  });
18613
- var defaultSpiceEngine = z137.custom(
18635
+ var defaultSpiceEngine = z138.custom(
18614
18636
  (value) => typeof value === "string"
18615
18637
  );
18616
- var autorouterInstance = z137.object({
18617
- run: z137.function().args().returns(z137.promise(z137.unknown())).describe("Run the autorouter"),
18618
- getOutputSimpleRouteJson: z137.function().args().returns(z137.promise(z137.any())).describe("Get the resulting SimpleRouteJson")
18638
+ var autorouterInstance = z138.object({
18639
+ run: z138.function().args().returns(z138.promise(z138.unknown())).describe("Run the autorouter"),
18640
+ getOutputSimpleRouteJson: z138.function().args().returns(z138.promise(z138.any())).describe("Get the resulting SimpleRouteJson")
18619
18641
  });
18620
- var autorouterDefinition = z137.object({
18621
- createAutorouter: z137.function().args(z137.any(), z137.any().optional()).returns(z137.union([autorouterInstance, z137.promise(autorouterInstance)])).describe("Create an autorouter instance")
18642
+ var autorouterDefinition = z138.object({
18643
+ createAutorouter: z138.function().args(z138.any(), z138.any().optional()).returns(z138.union([autorouterInstance, z138.promise(autorouterInstance)])).describe("Create an autorouter instance")
18622
18644
  });
18623
- var platformFetch = z137.custom((value) => typeof value === "function").describe("A fetch-like function to use for platform requests");
18624
- var platformConfig = z137.object({
18645
+ var platformFetch = z138.custom((value) => typeof value === "function").describe("A fetch-like function to use for platform requests");
18646
+ var platformConfig = z138.object({
18625
18647
  partsEngine: partsEngine.optional(),
18626
18648
  autorouter: autorouterProp.optional(),
18627
- autorouterMap: z137.record(z137.string(), autorouterDefinition).optional(),
18649
+ autorouterMap: z138.record(z138.string(), autorouterDefinition).optional(),
18628
18650
  registryApiUrl: url.optional(),
18629
18651
  cloudAutorouterUrl: url.optional(),
18630
- projectName: z137.string().optional(),
18652
+ projectName: z138.string().optional(),
18631
18653
  projectBaseUrl: url.optional(),
18632
- version: z137.string().optional(),
18654
+ version: z138.string().optional(),
18633
18655
  url: url.optional(),
18634
- printBoardInformationToSilkscreen: z137.boolean().optional(),
18635
- includeBoardFiles: z137.array(z137.string()).describe(
18656
+ printBoardInformationToSilkscreen: z138.boolean().optional(),
18657
+ includeBoardFiles: z138.array(z138.string()).describe(
18636
18658
  'The board files to automatically build with "tsci build", defaults to ["**/*.circuit.tsx"]. Can be an array of files or globs'
18637
18659
  ).optional(),
18638
- snapshotsDir: z137.string().describe(
18660
+ snapshotsDir: z138.string().describe(
18639
18661
  'The directory where snapshots are stored for "tsci snapshot", defaults to "tests/__snapshots__"'
18640
18662
  ).optional(),
18641
18663
  defaultSpiceEngine: defaultSpiceEngine.optional(),
18642
- unitPreference: z137.enum(["mm", "in", "mil"]).optional(),
18643
- localCacheEngine: z137.any().optional(),
18644
- pcbDisabled: z137.boolean().optional(),
18645
- routingDisabled: z137.boolean().optional(),
18646
- schematicDisabled: z137.boolean().optional(),
18647
- partsEngineDisabled: z137.boolean().optional(),
18648
- drcChecksDisabled: z137.boolean().optional(),
18649
- netlistDrcChecksDisabled: z137.boolean().optional(),
18650
- routingDrcChecksDisabled: z137.boolean().optional(),
18651
- placementDrcChecksDisabled: z137.boolean().optional(),
18652
- pinSpecificationDrcChecksDisabled: z137.boolean().optional(),
18653
- spiceEngineMap: z137.record(z137.string(), spiceEngineZod).optional(),
18654
- footprintLibraryMap: z137.record(
18655
- z137.string(),
18656
- z137.union([
18664
+ unitPreference: z138.enum(["mm", "in", "mil"]).optional(),
18665
+ localCacheEngine: z138.any().optional(),
18666
+ pcbDisabled: z138.boolean().optional(),
18667
+ routingDisabled: z138.boolean().optional(),
18668
+ schematicDisabled: z138.boolean().optional(),
18669
+ partsEngineDisabled: z138.boolean().optional(),
18670
+ drcChecksDisabled: z138.boolean().optional(),
18671
+ netlistDrcChecksDisabled: z138.boolean().optional(),
18672
+ routingDrcChecksDisabled: z138.boolean().optional(),
18673
+ placementDrcChecksDisabled: z138.boolean().optional(),
18674
+ pinSpecificationDrcChecksDisabled: z138.boolean().optional(),
18675
+ spiceEngineMap: z138.record(z138.string(), spiceEngineZod).optional(),
18676
+ footprintLibraryMap: z138.record(
18677
+ z138.string(),
18678
+ z138.union([
18657
18679
  pathToCircuitJsonFn,
18658
- z137.record(
18659
- z137.string(),
18660
- z137.union([unvalidatedCircuitJson, pathToCircuitJsonFn])
18680
+ z138.record(
18681
+ z138.string(),
18682
+ z138.union([unvalidatedCircuitJson, pathToCircuitJsonFn])
18661
18683
  )
18662
18684
  ])
18663
18685
  ).optional(),
18664
- footprintFileParserMap: z137.record(z137.string(), footprintFileParserEntry).optional(),
18665
- resolveProjectStaticFileImportUrl: z137.function().args(z137.string()).returns(z137.promise(z137.string())).describe(
18686
+ footprintFileParserMap: z138.record(z138.string(), footprintFileParserEntry).optional(),
18687
+ resolveProjectStaticFileImportUrl: z138.function().args(z138.string()).returns(z138.promise(z138.string())).describe(
18666
18688
  "A function that returns a string URL for static files for the project"
18667
18689
  ).optional(),
18668
18690
  platformFetch: platformFetch.optional()
@@ -18889,6 +18911,7 @@ export {
18889
18911
  schematicRowProps,
18890
18912
  schematicSectionProps,
18891
18913
  schematicSheetProps,
18914
+ schematicSymbolProps,
18892
18915
  schematicSymbolSize,
18893
18916
  schematicTableProps,
18894
18917
  schematicTextProps,