@tscircuit/props 0.0.586 → 0.0.587

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,11 +1,21 @@
1
1
  import { distance } from "circuit-json"
2
- import { z } from "zod"
3
2
  import { ninePointAnchor } from "lib/common/ninePointAnchor"
3
+ import {
4
+ type SchematicPinArrangement,
5
+ schematicPinArrangement,
6
+ } from "lib/common/schematicPinDefinitions"
7
+ import { type PinLabelsProp, pinLabelsProp } from "lib/components/chip"
4
8
  import { expectTypesMatch } from "lib/typecheck"
5
9
  import type { Distance } from "lib/common/distance"
10
+ import { z } from "zod"
6
11
 
7
12
  export const schematicBoxProps = z
8
13
  .object({
14
+ name: z.string().optional(),
15
+ chipRef: z.string().optional(),
16
+ pinLabels: pinLabelsProp.optional(),
17
+ schPinArrangement: schematicPinArrangement.optional(),
18
+
9
19
  schX: distance.optional(),
10
20
  schY: distance.optional(),
11
21
  width: distance.optional(),
@@ -49,6 +59,10 @@ export const schematicBoxProps = z
49
59
  )
50
60
 
51
61
  export interface SchematicBoxProps {
62
+ name?: string
63
+ chipRef?: string
64
+ pinLabels?: PinLabelsProp
65
+ schPinArrangement?: SchematicPinArrangement
52
66
  schX?: Distance
53
67
  schY?: Distance
54
68
  width?: Distance
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tscircuit/props",
3
- "version": "0.0.586",
3
+ "version": "0.0.587",
4
4
  "description": "Props for tscircuit builtin component types",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",