@tscircuit/props 0.0.557 → 0.0.558
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.
- package/README.md +1 -0
- package/dist/index.d.ts +28 -0
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/lib/components/group.ts +6 -0
- package/package.json +1 -1
package/lib/components/group.ts
CHANGED
|
@@ -480,6 +480,11 @@ export interface SubcircuitGroupProps
|
|
|
480
480
|
*/
|
|
481
481
|
exposedNets?: string[]
|
|
482
482
|
|
|
483
|
+
/**
|
|
484
|
+
* If true, all nets defined within this subcircuit are exposed to parent circuits
|
|
485
|
+
*/
|
|
486
|
+
exposeNets?: boolean
|
|
487
|
+
|
|
483
488
|
/**
|
|
484
489
|
* If true, we'll automatically layout the schematic for this group. Must be
|
|
485
490
|
* a subcircuit (currently). This is eventually going to be replaced with more
|
|
@@ -649,6 +654,7 @@ export const subcircuitGroupProps = baseGroupProps.extend({
|
|
|
649
654
|
outlineOffsetY: distance.optional(),
|
|
650
655
|
circuitJson: z.array(z.any()).optional(),
|
|
651
656
|
exposedNets: z.array(z.string()).optional(),
|
|
657
|
+
exposeNets: z.boolean().optional(),
|
|
652
658
|
})
|
|
653
659
|
|
|
654
660
|
export const subcircuitGroupPropsWithBool = subcircuitGroupProps.extend({
|