@tscircuit/props 0.0.634 → 0.0.636

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
@@ -16579,6 +16579,38 @@ expectTypesMatch(true);
16579
16579
 
16580
16580
  // lib/components/board.ts
16581
16581
  var boardColor = z42.custom((value) => typeof value === "string");
16582
+ var boardOutlinePoint = z42.object({
16583
+ ...point.shape,
16584
+ isCastellatedHole: z42.boolean().optional(),
16585
+ holeDiameter: distance.optional(),
16586
+ padDiameter: distance.optional(),
16587
+ connectsTo: z42.string().or(z42.array(z42.string())).optional()
16588
+ }).superRefine((outlinePoint, ctx) => {
16589
+ if (outlinePoint.isCastellatedHole) {
16590
+ if (outlinePoint.holeDiameter === void 0) {
16591
+ ctx.addIssue({
16592
+ code: z42.ZodIssueCode.custom,
16593
+ path: ["holeDiameter"],
16594
+ message: "holeDiameter is required for a castellated hole"
16595
+ });
16596
+ }
16597
+ if (outlinePoint.padDiameter === void 0) {
16598
+ ctx.addIssue({
16599
+ code: z42.ZodIssueCode.custom,
16600
+ path: ["padDiameter"],
16601
+ message: "padDiameter is required for a castellated hole"
16602
+ });
16603
+ }
16604
+ return;
16605
+ }
16606
+ if (outlinePoint.holeDiameter !== void 0 || outlinePoint.padDiameter !== void 0 || outlinePoint.connectsTo !== void 0) {
16607
+ ctx.addIssue({
16608
+ code: z42.ZodIssueCode.custom,
16609
+ path: ["isCastellatedHole"],
16610
+ message: "isCastellatedHole must be true when castellated hole props are provided"
16611
+ });
16612
+ }
16613
+ });
16582
16614
  var boardProps = subcircuitGroupProps.omit({ connections: true }).extend({
16583
16615
  material: z42.enum(["fr4", "fr1", "flex"]).default("fr4"),
16584
16616
  layers: z42.union([
@@ -16597,6 +16629,7 @@ var boardProps = subcircuitGroupProps.omit({ connections: true }).extend({
16597
16629
  boardAnchorPosition: point.optional(),
16598
16630
  anchorAlignment: ninePointAnchor.optional(),
16599
16631
  boardAnchorAlignment: ninePointAnchor.optional().describe("Prefer using anchorAlignment when possible"),
16632
+ outline: z42.array(boardOutlinePoint).optional(),
16600
16633
  title: z42.string().optional(),
16601
16634
  solderMaskColor: boardColor.optional(),
16602
16635
  topSolderMaskColor: boardColor.optional(),
@@ -16611,6 +16644,7 @@ var boardProps = subcircuitGroupProps.omit({ connections: true }).extend({
16611
16644
  schematicDisabled: z42.boolean().optional()
16612
16645
  });
16613
16646
  expectTypesMatch(true);
16647
+ expectTypesMatch(true);
16614
16648
 
16615
16649
  // lib/components/panel.ts
16616
16650
  import { z as z43 } from "zod";
@@ -17666,6 +17700,7 @@ var netLabelProps = z80.object({
17666
17700
  net: z80.string().optional(),
17667
17701
  connection: z80.string().optional(),
17668
17702
  connectsTo: z80.string().or(z80.array(z80.string())).optional(),
17703
+ inline: z80.boolean().optional(),
17669
17704
  schX: distance.optional(),
17670
17705
  schY: distance.optional(),
17671
17706
  schRotation: rotation4.optional(),
@@ -19180,6 +19215,7 @@ export {
19180
19215
  base_manual_edit_event,
19181
19216
  batteryPins,
19182
19217
  batteryProps,
19218
+ boardOutlinePoint,
19183
19219
  boardProps,
19184
19220
  border,
19185
19221
  breakoutPointProps,