@tscircuit/props 0.0.498 → 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.
@@ -44,6 +44,7 @@ export interface CadModelBase {
44
44
  pcbRotationOffset?: number
45
45
  zOffsetFromSurface?: Distance
46
46
  showAsTranslucentModel?: boolean
47
+ stepUrl?: string
47
48
  }
48
49
 
49
50
  export const cadModelBase = z.object({
@@ -56,6 +57,7 @@ export const cadModelBase = z.object({
56
57
  pcbRotationOffset: z.number().optional(),
57
58
  zOffsetFromSurface: distance.optional(),
58
59
  showAsTranslucentModel: z.boolean().optional(),
60
+ stepUrl: url.optional(),
59
61
  })
60
62
 
61
63
  expectTypesMatch<CadModelBase, z.input<typeof cadModelBase>>(true)
@@ -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.498",
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",