@tscircuit/props 0.0.334 → 0.0.336

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.
@@ -152,6 +152,7 @@ export interface PinAttributeMap {
152
152
  requiresVoltage?: string | number
153
153
  doNotConnect?: boolean
154
154
  includeInBoardPinout?: boolean
155
+ highlightColor?: string
155
156
  }
156
157
 
157
158
  export const pinAttributeMap = z.object({
@@ -163,6 +164,7 @@ export const pinAttributeMap = z.object({
163
164
  requiresVoltage: z.union([z.string(), z.number()]).optional(),
164
165
  doNotConnect: z.boolean().optional(),
165
166
  includeInBoardPinout: z.boolean().optional(),
167
+ highlightColor: z.string().optional(),
166
168
  })
167
169
 
168
170
  expectTypesMatch<PinAttributeMap, z.input<typeof pinAttributeMap>>(true)
@@ -4,11 +4,13 @@ import { expectTypesMatch } from "lib/typecheck"
4
4
  export interface NetProps {
5
5
  name: string
6
6
  connectsTo?: string | string[]
7
+ highlightColor?: string
7
8
  }
8
9
 
9
10
  export const netProps = z.object({
10
11
  name: z.string(),
11
12
  connectsTo: z.string().or(z.array(z.string())).optional(),
13
+ highlightColor: z.string().optional(),
12
14
  })
13
15
 
14
16
  type InferredNetProps = z.input<typeof netProps>
@@ -18,6 +18,7 @@ const baseTraceProps = z.object({
18
18
  pcbPath: z.array(point).optional(),
19
19
  schDisplayLabel: z.string().optional(),
20
20
  schStroke: z.string().optional(),
21
+ highlightColor: z.string().optional(),
21
22
  maxLength: distance.optional(),
22
23
  })
23
24
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tscircuit/props",
3
- "version": "0.0.334",
3
+ "version": "0.0.336",
4
4
  "description": "Props for tscircuit builtin component types",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",