@tscircuit/props 0.0.626 → 0.0.628

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
@@ -16374,6 +16374,9 @@ var autorouterConfig = z41.object({
16374
16374
  algorithmFn: z41.custom(
16375
16375
  (v) => typeof v === "function" || v === void 0
16376
16376
  ).optional(),
16377
+ implicitBreakoutPointSolverFn: z41.custom(
16378
+ (value) => typeof value === "function" || value === void 0
16379
+ ).optional(),
16377
16380
  preset: z41.enum([
16378
16381
  "sequential_trace",
16379
16382
  "subcircuit",
@@ -17599,7 +17602,19 @@ var pinHeaderProps = commonComponentProps.extend({
17599
17602
  schPinStyle: schematicPinStyle.optional(),
17600
17603
  schPinSpacing: distance22.optional(),
17601
17604
  schWidth: distance22.optional(),
17602
- schHeight: distance22.optional()
17605
+ schHeight: distance22.optional(),
17606
+ connectsFromAbove: z78.boolean().optional(),
17607
+ connectsFromBelow: z78.boolean().optional()
17608
+ }).superRefine((props, ctx) => {
17609
+ if (props.connectsFromAbove && props.connectsFromBelow) {
17610
+ ctx.addIssue({
17611
+ code: z78.ZodIssueCode.custom,
17612
+ message: "connectsFromAbove and connectsFromBelow are opposites; set at most one"
17613
+ });
17614
+ }
17615
+ }).transform((props) => {
17616
+ const layer = props.layer ?? (props.connectsFromBelow ? "bottom" : props.connectsFromAbove ? "top" : void 0);
17617
+ return layer === void 0 ? props : { ...props, layer };
17603
17618
  });
17604
17619
  expectTypesMatch(true);
17605
17620