@tscircuit/props 0.0.499 → 0.0.500

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,4 +1,9 @@
1
- import { layer_ref, length, distance } from "circuit-json"
1
+ import {
2
+ layer_ref,
3
+ length,
4
+ distance,
5
+ type AnyCircuitElement,
6
+ } from "circuit-json"
2
7
  import type { AutocompleteString } from "lib/common/autocomplete"
3
8
  import type { Distance } from "lib/common/distance"
4
9
  import {
@@ -289,6 +294,13 @@ export type PartsEngine = {
289
294
  sourceComponent: AnySourceComponent
290
295
  footprinterString?: string
291
296
  }) => Promise<SupplierPartNumbers> | SupplierPartNumbers
297
+ fetchPartCircuitJson?: (params: {
298
+ supplierPartNumber?: string
299
+ manufacturerPartNumber?: string
300
+ }) =>
301
+ | Promise<AnyCircuitElement[] | undefined>
302
+ | AnyCircuitElement[]
303
+ | undefined
292
304
  }
293
305
 
294
306
  export interface PcbRouteCache {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tscircuit/props",
3
- "version": "0.0.499",
3
+ "version": "0.0.500",
4
4
  "description": "Props for tscircuit builtin component types",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",
@@ -31,7 +31,7 @@
31
31
  "@types/node": "^20.12.11",
32
32
  "@types/react": "^18.3.2",
33
33
  "ava": "^6.1.3",
34
- "circuit-json": "^0.0.377",
34
+ "circuit-json": "^0.0.406",
35
35
  "expect-type": "^1.3.0",
36
36
  "glob": "^11.0.0",
37
37
  "madge": "^8.0.0",