@tscircuit/props 0.0.532 → 0.0.534

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.
@@ -3,6 +3,7 @@ import type { ReactElement } from "react"
3
3
  import { z } from "zod"
4
4
  import { type AutocompleteString } from "./autocomplete"
5
5
  import type { KicadAutocompleteStringPath } from "../generated/kicad-autocomplete"
6
+ import type { JlcpcbAutocompleteStringPath } from "../generated/jlcpcb-autocomplete"
6
7
  import type { FootprinterStringExample } from "../generated/footprinter-autocomplete"
7
8
 
8
9
  /**
@@ -51,6 +52,7 @@ type FootprinterStringAutocomplete = BasicFootprint | FootprinterStringExample
51
52
  export type FootprintProp =
52
53
  | AutocompleteString<FootprinterStringAutocomplete>
53
54
  | KicadAutocompleteStringPath
55
+ | JlcpcbAutocompleteStringPath
54
56
  | ReactElement
55
57
  | FootprintSoupElements[]
56
58
 
@@ -5,6 +5,7 @@ import { z } from "zod"
5
5
 
6
6
  export type PcbSxSelector =
7
7
  | "& footprint[src^='kicad:'] silkscreentext"
8
+ | "& footprint[src^='jlcpcb:'] silkscreentext"
8
9
  | "& silkscreentext"
9
10
  | "& fabricationnotetext"
10
11
 
@@ -1,4 +1,6 @@
1
+ import { distance } from "circuit-json"
1
2
  import { z } from "zod"
3
+ import type { Distance } from "lib/common/distance"
2
4
  import { expectTypesMatch } from "lib/typecheck"
3
5
 
4
6
  export interface NetProps {
@@ -8,6 +10,7 @@ export interface NetProps {
8
10
  highlightColor?: string
9
11
  isPowerNet?: boolean
10
12
  isGroundNet?: boolean
13
+ nominalTraceWidth?: Distance
11
14
  }
12
15
 
13
16
  export const netProps = z.object({
@@ -17,6 +20,7 @@ export const netProps = z.object({
17
20
  highlightColor: z.string().optional(),
18
21
  isPowerNet: z.boolean().optional(),
19
22
  isGroundNet: z.boolean().optional(),
23
+ nominalTraceWidth: distance.optional(),
20
24
  })
21
25
 
22
26
  type InferredNetProps = z.input<typeof netProps>