@tscircuit/props 0.0.558 → 0.0.560
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 +5 -0
- package/dist/index.d.ts +46 -6
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/lib/components/group.ts +13 -0
- package/package.json +1 -1
package/lib/components/group.ts
CHANGED
|
@@ -175,6 +175,11 @@ export interface BaseGroupProps extends CommonLayoutProps, LayoutConfig {
|
|
|
175
175
|
*/
|
|
176
176
|
schTitle?: string
|
|
177
177
|
|
|
178
|
+
/**
|
|
179
|
+
* This group will be drawn as part of this sheet e.g. "Main"
|
|
180
|
+
*/
|
|
181
|
+
schSheetName?: string
|
|
182
|
+
|
|
178
183
|
/**
|
|
179
184
|
* If true, render this group as a single schematic box
|
|
180
185
|
*/
|
|
@@ -339,6 +344,7 @@ export interface AutorouterConfig {
|
|
|
339
344
|
preset?:
|
|
340
345
|
| "sequential_trace"
|
|
341
346
|
| "subcircuit"
|
|
347
|
+
| "default"
|
|
342
348
|
| "auto"
|
|
343
349
|
| "auto_local"
|
|
344
350
|
| "auto_cloud"
|
|
@@ -356,6 +362,7 @@ export interface AutorouterConfig {
|
|
|
356
362
|
export type AutorouterPreset =
|
|
357
363
|
| "sequential_trace"
|
|
358
364
|
| "subcircuit"
|
|
365
|
+
| "default"
|
|
359
366
|
| "auto"
|
|
360
367
|
| "auto_local"
|
|
361
368
|
| "auto_cloud"
|
|
@@ -409,6 +416,7 @@ export const autorouterConfig = z.object({
|
|
|
409
416
|
.enum([
|
|
410
417
|
"sequential_trace",
|
|
411
418
|
"subcircuit",
|
|
419
|
+
"default",
|
|
412
420
|
"auto",
|
|
413
421
|
"auto_local",
|
|
414
422
|
"auto_cloud",
|
|
@@ -429,6 +437,7 @@ export const autorouterConfig = z.object({
|
|
|
429
437
|
export const autorouterPreset = z.union([
|
|
430
438
|
z.literal("sequential_trace"),
|
|
431
439
|
z.literal("subcircuit"),
|
|
440
|
+
z.literal("default"),
|
|
432
441
|
z.literal("auto"),
|
|
433
442
|
z.literal("auto_local"),
|
|
434
443
|
z.literal("auto_cloud"),
|
|
@@ -531,6 +540,10 @@ export const baseGroupProps = commonLayoutProps.extend({
|
|
|
531
540
|
name: z.string().optional(),
|
|
532
541
|
children: z.any().optional(),
|
|
533
542
|
schTitle: z.string().optional(),
|
|
543
|
+
schSheetName: z
|
|
544
|
+
.string()
|
|
545
|
+
.optional()
|
|
546
|
+
.describe('This group will be drawn as part of this sheet e.g. "Main"'),
|
|
534
547
|
key: z.any().optional(),
|
|
535
548
|
showAsSchematicBox: z.boolean().optional(),
|
|
536
549
|
connections: z.record(z.string(), connectionTarget.optional()).optional(),
|