@tscircuit/props 0.0.430 → 0.0.432

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.
@@ -7,12 +7,20 @@ import { z } from "zod"
7
7
 
8
8
  export interface InterconnectProps extends CommonComponentProps {
9
9
  standard?: "TSC0001_36P_XALT_2025_11" | "0805" | "0603" | "1206"
10
+ /**
11
+ * Groups of pins that are internally connected
12
+ * e.g., [["1","2"], ["2","3"]]
13
+ */
14
+ internallyConnectedPins?: (string | number)[][]
10
15
  }
11
16
 
12
17
  export const interconnectProps = commonComponentProps.extend({
13
18
  standard: z
14
19
  .enum(["TSC0001_36P_XALT_2025_11", "0805", "0603", "1206"])
15
20
  .optional(),
21
+ internallyConnectedPins: z
22
+ .array(z.array(z.union([z.string(), z.number()])))
23
+ .optional(),
16
24
  })
17
25
 
18
26
  type InferredInterconnectProps = z.input<typeof interconnectProps>
@@ -9,6 +9,8 @@ export const portRef = z.union([
9
9
  ),
10
10
  ])
11
11
 
12
+ const pcbPath = z.array(z.union([point, z.string()]))
13
+
12
14
  const baseTraceProps = z.object({
13
15
  key: z.string().optional(),
14
16
  thickness: distance.optional(),
@@ -16,7 +18,8 @@ const baseTraceProps = z.object({
16
18
  schematicRouteHints: z.array(point).optional(),
17
19
  pcbRouteHints: z.array(route_hint_point).optional(),
18
20
  pcbPathRelativeTo: z.string().optional(),
19
- pcbPath: z.array(z.union([point, z.string()])).optional(),
21
+ pcbPath: pcbPath.optional(),
22
+ pcbPaths: z.array(pcbPath).optional(),
20
23
  pcbStraightLine: z
21
24
  .boolean()
22
25
  .optional()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tscircuit/props",
3
- "version": "0.0.430",
3
+ "version": "0.0.432",
4
4
  "description": "Props for tscircuit builtin component types",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",