@tscircuit/props 0.0.530 → 0.0.532

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
@@ -16803,8 +16803,9 @@ var mapResistorFootprint = (footprint) => {
16803
16803
  if (!resistorImperialFootprintNames.has(footprint)) return footprint;
16804
16804
  return `res${footprint}`;
16805
16805
  };
16806
+ var resistorFootprintProp = footprintProp.optional().transform(mapResistorFootprint);
16806
16807
  var resistorProps = commonComponentProps.extend({
16807
- footprint: footprintProp.optional().transform(mapResistorFootprint),
16808
+ footprint: resistorFootprintProp,
16808
16809
  resistance,
16809
16810
  tolerance: z48.union([z48.string(), z48.number()]).transform((val) => {
16810
16811
  if (typeof val === "string") {
@@ -17704,10 +17705,11 @@ import { distance as distance22, layer_ref as layer_ref6 } from "circuit-json";
17704
17705
  import { z as z86 } from "zod";
17705
17706
  var viaProps = commonLayoutProps.extend({
17706
17707
  name: z86.string().optional(),
17707
- fromLayer: layer_ref6,
17708
- toLayer: layer_ref6,
17708
+ fromLayer: layer_ref6.optional(),
17709
+ toLayer: layer_ref6.optional(),
17709
17710
  holeDiameter: distance22.optional(),
17710
17711
  outerDiameter: distance22.optional(),
17712
+ layers: z86.array(layer_ref6).optional(),
17711
17713
  connectsTo: z86.string().or(z86.array(z86.string())).optional(),
17712
17714
  netIsAssignable: z86.boolean().optional()
17713
17715
  });