@tscircuit/props 0.0.361 → 0.0.363

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.
@@ -21,6 +21,7 @@ export interface CadModelBase {
21
21
  }
22
22
  size?: { x: number | string; y: number | string; z: number | string }
23
23
  modelUnitToMmScale?: Distance
24
+ zOffsetFromSurface?: Distance
24
25
  }
25
26
 
26
27
  export const cadModelBase = z.object({
@@ -28,6 +29,7 @@ export const cadModelBase = z.object({
28
29
  positionOffset: point3.optional(),
29
30
  size: point3.optional(),
30
31
  modelUnitToMmScale: distance.optional(),
32
+ zOffsetFromSurface: distance.optional(),
31
33
  })
32
34
 
33
35
  expectTypesMatch<CadModelBase, z.input<typeof cadModelBase>>(true)
@@ -7,7 +7,6 @@ import {
7
7
  import { expectTypesMatch } from "./typecheck"
8
8
  import { z } from "zod"
9
9
  import { type CadModelProp, cadModelProp } from "./common/cadModel"
10
- import { frequency, ms } from "circuit-json"
11
10
 
12
11
  export interface FootprintLibraryResult {
13
12
  footprintCircuitJson: any[]
@@ -79,12 +78,6 @@ export interface PlatformConfig {
79
78
  >
80
79
 
81
80
  footprintFileParserMap?: Record<string, FootprintFileParserEntry>
82
-
83
- simSwitchFrequency?: number | string
84
- simCloseAt?: number | string
85
- simOpenAt?: number | string
86
- simStartClosed?: boolean
87
- simStartOpen?: boolean
88
81
  }
89
82
 
90
83
  const unvalidatedCircuitJson = z.array(z.any()).describe("Circuit JSON")
@@ -175,11 +168,6 @@ export const platformConfig = z.object({
175
168
  footprintFileParserMap: z
176
169
  .record(z.string(), footprintFileParserEntry)
177
170
  .optional(),
178
- simSwitchFrequency: frequency.optional(),
179
- simCloseAt: ms.optional(),
180
- simOpenAt: ms.optional(),
181
- simStartClosed: z.boolean().optional(),
182
- simStartOpen: z.boolean().optional(),
183
171
  }) as z.ZodType<PlatformConfig>
184
172
 
185
173
  expectTypesMatch<PlatformConfig, z.infer<typeof platformConfig>>(true)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tscircuit/props",
3
- "version": "0.0.361",
3
+ "version": "0.0.363",
4
4
  "description": "Props for tscircuit builtin component types",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",