@tscircuit/props 0.0.469 → 0.0.471

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.
@@ -1,6 +1,7 @@
1
1
  import { type LayerRef, layer_ref } from "circuit-json"
2
2
  import { expectTypesMatch } from "lib/typecheck"
3
3
  import { z } from "zod"
4
+ import { type FootprintProp, footprintProp } from "../common/footprintProp"
4
5
 
5
6
  export interface FootprintProps {
6
7
  children?: any
@@ -19,12 +20,17 @@ export interface FootprintProps {
19
20
  * Serialized circuit JSON describing a precompiled footprint
20
21
  */
21
22
  circuitJson?: any[]
23
+ /**
24
+ * Can be a footprint or kicad string
25
+ */
26
+ src?: FootprintProp
22
27
  }
23
28
 
24
29
  export const footprintProps = z.object({
25
30
  children: z.any().optional(),
26
31
  originalLayer: layer_ref.default("top").optional(),
27
32
  circuitJson: z.array(z.any()).optional(),
33
+ src: footprintProp.describe("Can be a footprint or kicad string").optional(),
28
34
  })
29
35
 
30
36
  export type FootprintPropsInput = z.input<typeof footprintProps>
@@ -10,5 +10,6 @@ export const portProps = commonLayoutProps.extend({
10
10
  direction: direction,
11
11
  connectsTo: z.string().or(z.array(z.string())).optional(),
12
12
  kicadPinMetadata: kicadPinMetadata.optional(),
13
+ hasInversionCircle: z.boolean().optional(),
13
14
  })
14
15
  export type PortProps = z.input<typeof portProps>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tscircuit/props",
3
- "version": "0.0.469",
3
+ "version": "0.0.471",
4
4
  "description": "Props for tscircuit builtin component types",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",