@tscircuit/props 0.0.559 → 0.0.561
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 +6 -0
- package/dist/index.d.ts +44 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/lib/components/group.ts +9 -0
- package/lib/components/schematic-sheet.ts +2 -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
|
*/
|
|
@@ -535,6 +540,10 @@ export const baseGroupProps = commonLayoutProps.extend({
|
|
|
535
540
|
name: z.string().optional(),
|
|
536
541
|
children: z.any().optional(),
|
|
537
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"'),
|
|
538
547
|
key: z.any().optional(),
|
|
539
548
|
showAsSchematicBox: z.boolean().optional(),
|
|
540
549
|
connections: z.record(z.string(), connectionTarget.optional()).optional(),
|
|
@@ -4,12 +4,14 @@ import { expectTypesMatch } from "lib/typecheck"
|
|
|
4
4
|
export interface SchematicSheetProps {
|
|
5
5
|
name: string
|
|
6
6
|
displayName: string
|
|
7
|
+
sheetIndex?: number
|
|
7
8
|
children?: any
|
|
8
9
|
}
|
|
9
10
|
|
|
10
11
|
export const schematicSheetProps = z.object({
|
|
11
12
|
name: z.string(),
|
|
12
13
|
displayName: z.string(),
|
|
14
|
+
sheetIndex: z.number().optional(),
|
|
13
15
|
children: z.any().optional(),
|
|
14
16
|
})
|
|
15
17
|
|