@tscircuit/props 0.0.637 → 0.0.638

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,10 +1,14 @@
1
1
  import { z } from "zod"
2
2
  import { expectTypesMatch } from "lib/typecheck"
3
3
 
4
+ export type SchematicSheetSize = "A4" | "ANSI_B"
5
+
4
6
  export interface SchematicSheetProps {
5
7
  name: string
6
8
  displayName: string
7
9
  sheetIndex?: number
10
+ /** Sheet size used to render the schematic. Defaults to A4. */
11
+ sheetSize?: SchematicSheetSize
8
12
  children?: any
9
13
  }
10
14
 
@@ -12,6 +16,7 @@ export const schematicSheetProps = z.object({
12
16
  name: z.string(),
13
17
  displayName: z.string(),
14
18
  sheetIndex: z.number().optional(),
19
+ sheetSize: z.enum(["A4", "ANSI_B"]).default("A4"),
15
20
  children: z.any().optional(),
16
21
  })
17
22
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tscircuit/props",
3
- "version": "0.0.637",
3
+ "version": "0.0.638",
4
4
  "description": "Props for tscircuit builtin component types",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",