@tscircuit/props 0.0.376 → 0.0.377

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.d.ts CHANGED
@@ -33499,10 +33499,9 @@ declare const portRef: z.ZodUnion<[z.ZodString, z.ZodType<{
33499
33499
  }, z.ZodTypeDef, {
33500
33500
  getPortSelector: () => string;
33501
33501
  }>]>;
33502
- declare const traceProps: z.ZodEffects<z.ZodUnion<[z.ZodObject<{
33502
+ declare const traceProps: z.ZodUnion<[z.ZodObject<{
33503
33503
  key: z.ZodOptional<z.ZodString>;
33504
33504
  thickness: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
33505
- width: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
33506
33505
  schematicRouteHints: z.ZodOptional<z.ZodArray<z.ZodObject<{
33507
33506
  x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
33508
33507
  y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
@@ -33569,7 +33568,6 @@ declare const traceProps: z.ZodEffects<z.ZodUnion<[z.ZodObject<{
33569
33568
  })[];
33570
33569
  key?: string | undefined;
33571
33570
  highlightColor?: string | undefined;
33572
- width?: number | undefined;
33573
33571
  thickness?: number | undefined;
33574
33572
  maxLength?: number | undefined;
33575
33573
  schematicRouteHints?: {
@@ -33596,7 +33594,6 @@ declare const traceProps: z.ZodEffects<z.ZodUnion<[z.ZodObject<{
33596
33594
  })[];
33597
33595
  key?: string | undefined;
33598
33596
  highlightColor?: string | undefined;
33599
- width?: string | number | undefined;
33600
33597
  thickness?: string | number | undefined;
33601
33598
  maxLength?: string | number | undefined;
33602
33599
  schematicRouteHints?: {
@@ -33622,7 +33619,6 @@ declare const traceProps: z.ZodEffects<z.ZodUnion<[z.ZodObject<{
33622
33619
  }>, z.ZodObject<{
33623
33620
  key: z.ZodOptional<z.ZodString>;
33624
33621
  thickness: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
33625
- width: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
33626
33622
  schematicRouteHints: z.ZodOptional<z.ZodArray<z.ZodObject<{
33627
33623
  x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
33628
33624
  y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
@@ -33697,7 +33693,6 @@ declare const traceProps: z.ZodEffects<z.ZodUnion<[z.ZodObject<{
33697
33693
  };
33698
33694
  key?: string | undefined;
33699
33695
  highlightColor?: string | undefined;
33700
- width?: number | undefined;
33701
33696
  thickness?: number | undefined;
33702
33697
  maxLength?: number | undefined;
33703
33698
  schematicRouteHints?: {
@@ -33727,125 +33722,6 @@ declare const traceProps: z.ZodEffects<z.ZodUnion<[z.ZodObject<{
33727
33722
  };
33728
33723
  key?: string | undefined;
33729
33724
  highlightColor?: string | undefined;
33730
- width?: string | number | undefined;
33731
- thickness?: string | number | undefined;
33732
- maxLength?: string | number | undefined;
33733
- schematicRouteHints?: {
33734
- x: string | number;
33735
- y: string | number;
33736
- }[] | undefined;
33737
- pcbRouteHints?: {
33738
- x: string | number;
33739
- y: string | number;
33740
- via?: boolean | undefined;
33741
- to_layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
33742
- name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
33743
- } | undefined;
33744
- trace_width?: string | number | undefined;
33745
- }[] | undefined;
33746
- pcbPathRelativeTo?: string | undefined;
33747
- pcbPath?: (string | {
33748
- x: string | number;
33749
- y: string | number;
33750
- })[] | undefined;
33751
- schDisplayLabel?: string | undefined;
33752
- schStroke?: string | undefined;
33753
- }>]>, {
33754
- thickness: number | undefined;
33755
- path: (string | {
33756
- getPortSelector: () => string;
33757
- })[];
33758
- key?: string | undefined;
33759
- highlightColor?: string | undefined;
33760
- width?: number | undefined;
33761
- maxLength?: number | undefined;
33762
- schematicRouteHints?: {
33763
- x: number;
33764
- y: number;
33765
- }[] | undefined;
33766
- pcbRouteHints?: {
33767
- x: number;
33768
- y: number;
33769
- via?: boolean | undefined;
33770
- to_layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | undefined;
33771
- trace_width?: number | undefined;
33772
- }[] | undefined;
33773
- pcbPathRelativeTo?: string | undefined;
33774
- pcbPath?: (string | {
33775
- x: number;
33776
- y: number;
33777
- })[] | undefined;
33778
- schDisplayLabel?: string | undefined;
33779
- schStroke?: string | undefined;
33780
- } | {
33781
- thickness: number | undefined;
33782
- from: string | {
33783
- getPortSelector: () => string;
33784
- };
33785
- to: string | {
33786
- getPortSelector: () => string;
33787
- };
33788
- key?: string | undefined;
33789
- highlightColor?: string | undefined;
33790
- width?: number | undefined;
33791
- maxLength?: number | undefined;
33792
- schematicRouteHints?: {
33793
- x: number;
33794
- y: number;
33795
- }[] | undefined;
33796
- pcbRouteHints?: {
33797
- x: number;
33798
- y: number;
33799
- via?: boolean | undefined;
33800
- to_layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | undefined;
33801
- trace_width?: number | undefined;
33802
- }[] | undefined;
33803
- pcbPathRelativeTo?: string | undefined;
33804
- pcbPath?: (string | {
33805
- x: number;
33806
- y: number;
33807
- })[] | undefined;
33808
- schDisplayLabel?: string | undefined;
33809
- schStroke?: string | undefined;
33810
- }, {
33811
- path: (string | {
33812
- getPortSelector: () => string;
33813
- })[];
33814
- key?: string | undefined;
33815
- highlightColor?: string | undefined;
33816
- width?: string | number | undefined;
33817
- thickness?: string | number | undefined;
33818
- maxLength?: string | number | undefined;
33819
- schematicRouteHints?: {
33820
- x: string | number;
33821
- y: string | number;
33822
- }[] | undefined;
33823
- pcbRouteHints?: {
33824
- x: string | number;
33825
- y: string | number;
33826
- via?: boolean | undefined;
33827
- to_layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
33828
- name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
33829
- } | undefined;
33830
- trace_width?: string | number | undefined;
33831
- }[] | undefined;
33832
- pcbPathRelativeTo?: string | undefined;
33833
- pcbPath?: (string | {
33834
- x: string | number;
33835
- y: string | number;
33836
- })[] | undefined;
33837
- schDisplayLabel?: string | undefined;
33838
- schStroke?: string | undefined;
33839
- } | {
33840
- from: string | {
33841
- getPortSelector: () => string;
33842
- };
33843
- to: string | {
33844
- getPortSelector: () => string;
33845
- };
33846
- key?: string | undefined;
33847
- highlightColor?: string | undefined;
33848
- width?: string | number | undefined;
33849
33725
  thickness?: string | number | undefined;
33850
33726
  maxLength?: string | number | undefined;
33851
33727
  schematicRouteHints?: {
@@ -33868,7 +33744,7 @@ declare const traceProps: z.ZodEffects<z.ZodUnion<[z.ZodObject<{
33868
33744
  })[] | undefined;
33869
33745
  schDisplayLabel?: string | undefined;
33870
33746
  schStroke?: string | undefined;
33871
- }>;
33747
+ }>]>;
33872
33748
  type TraceProps = z.input<typeof traceProps>;
33873
33749
 
33874
33750
  interface FootprintProps {
package/dist/index.js CHANGED
@@ -1194,7 +1194,6 @@ var portRef = z50.union([
1194
1194
  var baseTraceProps = z50.object({
1195
1195
  key: z50.string().optional(),
1196
1196
  thickness: distance13.optional(),
1197
- width: distance13.optional(),
1198
1197
  schematicRouteHints: z50.array(point).optional(),
1199
1198
  pcbRouteHints: z50.array(route_hint_point2).optional(),
1200
1199
  pcbPathRelativeTo: z50.string().optional(),
@@ -1212,10 +1211,7 @@ var traceProps = z50.union([
1212
1211
  from: portRef,
1213
1212
  to: portRef
1214
1213
  })
1215
- ]).transform((trace) => ({
1216
- ...trace,
1217
- thickness: trace.thickness ?? trace.width
1218
- }));
1214
+ ]);
1219
1215
 
1220
1216
  // lib/components/footprint.ts
1221
1217
  import { layer_ref as layer_ref4 } from "circuit-json";