@tscircuit/props 0.0.505 → 0.0.506

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.
@@ -60,6 +60,11 @@ export interface ChipPropsSU<
60
60
  noSchematicRepresentation?: boolean
61
61
  internallyConnectedPins?: (string | number)[][]
62
62
  externallyConnectedPins?: string[][]
63
+ /**
64
+ * Pins intentionally left unconnected. This is a shorthand for marking
65
+ * those pins as do-not-connect without repeating pinAttributes entries.
66
+ */
67
+ noConnect?: readonly PinLabel[] | PinLabel[]
63
68
  connections?: Connections<PinLabel>
64
69
  }
65
70
 
@@ -115,6 +120,11 @@ const connectionTarget = z
115
120
  .or(z.array(z.string()).readonly())
116
121
  .or(z.array(z.string()))
117
122
 
123
+ const noConnectProp = z
124
+ .array(schematicPinLabel)
125
+ .readonly()
126
+ .or(z.array(schematicPinLabel))
127
+
118
128
  const connectionsProp = z
119
129
  .custom<Connections>()
120
130
  .pipe(z.record(z.string(), connectionTarget))
@@ -150,6 +160,7 @@ export const chipProps = commonComponentProps.extend({
150
160
  schWidth: distance.optional(),
151
161
  schHeight: distance.optional(),
152
162
  noSchematicRepresentation: z.boolean().optional(),
163
+ noConnect: noConnectProp.optional(),
153
164
  connections: connectionsProp.optional(),
154
165
  })
155
166
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tscircuit/props",
3
- "version": "0.0.505",
3
+ "version": "0.0.506",
4
4
  "description": "Props for tscircuit builtin component types",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",