@tscircuit/props 0.0.584 → 0.0.586

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.
@@ -68,6 +68,12 @@ export interface ChipPropsSU<
68
68
  schWidth?: Distance
69
69
  schHeight?: Distance
70
70
  noSchematicRepresentation?: boolean
71
+ /**
72
+ * Whether to show the components from `internalCircuit` in the schematic.
73
+ * When false, the chip's schematic box is shown instead.
74
+ * @default false
75
+ */
76
+ schShowInternalCircuit?: boolean
71
77
  internallyConnectedPins?: (string | number)[][]
72
78
  externallyConnectedPins?: string[][]
73
79
  /**
@@ -184,6 +190,7 @@ export const chipProps = commonComponentProps.extend({
184
190
  schWidth: distance.optional(),
185
191
  schHeight: distance.optional(),
186
192
  noSchematicRepresentation: z.boolean().optional(),
193
+ schShowInternalCircuit: z.boolean().optional().default(false),
187
194
  noConnect: noConnectProp.optional(),
188
195
  connections: connectionsProp.optional(),
189
196
  spiceModel: spicemodelElement.optional(),
@@ -11,7 +11,7 @@ export interface DifferentialPairProps {
11
11
  positiveConnection: string
12
12
  /** Name of the trace or pin carrying the negative signal. */
13
13
  negativeConnection: string
14
- /** Maximum permitted routed-length skew, expressed as a ratio from 0 to 1. */
14
+ /** Maximum permitted routed-length skew in millimeters. */
15
15
  maxLengthSkew?: number
16
16
  }
17
17
 
@@ -19,7 +19,7 @@ export const differentialPairProps = z.object({
19
19
  name: z.string().optional(),
20
20
  positiveConnection: z.string(),
21
21
  negativeConnection: z.string(),
22
- maxLengthSkew: z.number().min(0).max(1).optional(),
22
+ maxLengthSkew: z.number().min(0).finite().optional(),
23
23
  })
24
24
 
25
25
  type InferredDifferentialPairProps = z.input<typeof differentialPairProps>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tscircuit/props",
3
- "version": "0.0.584",
3
+ "version": "0.0.586",
4
4
  "description": "Props for tscircuit builtin component types",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",