@tscircuit/props 0.0.557 → 0.0.559

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.
@@ -339,6 +339,7 @@ export interface AutorouterConfig {
339
339
  preset?:
340
340
  | "sequential_trace"
341
341
  | "subcircuit"
342
+ | "default"
342
343
  | "auto"
343
344
  | "auto_local"
344
345
  | "auto_cloud"
@@ -356,6 +357,7 @@ export interface AutorouterConfig {
356
357
  export type AutorouterPreset =
357
358
  | "sequential_trace"
358
359
  | "subcircuit"
360
+ | "default"
359
361
  | "auto"
360
362
  | "auto_local"
361
363
  | "auto_cloud"
@@ -409,6 +411,7 @@ export const autorouterConfig = z.object({
409
411
  .enum([
410
412
  "sequential_trace",
411
413
  "subcircuit",
414
+ "default",
412
415
  "auto",
413
416
  "auto_local",
414
417
  "auto_cloud",
@@ -429,6 +432,7 @@ export const autorouterConfig = z.object({
429
432
  export const autorouterPreset = z.union([
430
433
  z.literal("sequential_trace"),
431
434
  z.literal("subcircuit"),
435
+ z.literal("default"),
432
436
  z.literal("auto"),
433
437
  z.literal("auto_local"),
434
438
  z.literal("auto_cloud"),
@@ -480,6 +484,11 @@ export interface SubcircuitGroupProps
480
484
  */
481
485
  exposedNets?: string[]
482
486
 
487
+ /**
488
+ * If true, all nets defined within this subcircuit are exposed to parent circuits
489
+ */
490
+ exposeNets?: boolean
491
+
483
492
  /**
484
493
  * If true, we'll automatically layout the schematic for this group. Must be
485
494
  * a subcircuit (currently). This is eventually going to be replaced with more
@@ -649,6 +658,7 @@ export const subcircuitGroupProps = baseGroupProps.extend({
649
658
  outlineOffsetY: distance.optional(),
650
659
  circuitJson: z.array(z.any()).optional(),
651
660
  exposedNets: z.array(z.string()).optional(),
661
+ exposeNets: z.boolean().optional(),
652
662
  })
653
663
 
654
664
  export const subcircuitGroupPropsWithBool = subcircuitGroupProps.extend({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tscircuit/props",
3
- "version": "0.0.557",
3
+ "version": "0.0.559",
4
4
  "description": "Props for tscircuit builtin component types",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",