@tscircuit/props 0.0.635 → 0.0.637

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(),
@@ -16608,9 +16641,13 @@ var boardProps = subcircuitGroupProps.omit({ connections: true }).extend({
16608
16641
  isViaInPadAllowed: z42.boolean().optional().describe(
16609
16642
  "Allows intentional via-in-pad designs to pass DRC. Omitted or false keeps via-in-pad disallowed."
16610
16643
  ),
16644
+ automaticPoursEnabled: z42.boolean().default(false).describe(
16645
+ "Whether implicit copper pours should be generated automatically. Defaults to false."
16646
+ ),
16611
16647
  schematicDisabled: z42.boolean().optional()
16612
16648
  });
16613
16649
  expectTypesMatch(true);
16650
+ expectTypesMatch(true);
16614
16651
 
16615
16652
  // lib/components/panel.ts
16616
16653
  import { z as z43 } from "zod";
@@ -19181,6 +19218,7 @@ export {
19181
19218
  base_manual_edit_event,
19182
19219
  batteryPins,
19183
19220
  batteryProps,
19221
+ boardOutlinePoint,
19184
19222
  boardProps,
19185
19223
  border,
19186
19224
  breakoutPointProps,