@tscircuit/props 0.0.663 → 0.0.664
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/dist/index.d.ts +0 -20
- package/dist/index.js +0 -3
- package/dist/index.js.map +1 -1
- package/lib/assembly/subassembly.ts +0 -14
- package/package.json +1 -1
|
@@ -8,14 +8,6 @@ export interface AssemblySubassemblyProps {
|
|
|
8
8
|
name: string
|
|
9
9
|
/** Human-facing alternate to the stable name. */
|
|
10
10
|
displayName?: string
|
|
11
|
-
/**
|
|
12
|
-
* Attachment target selector, resolved within the nearest assembly.device.
|
|
13
|
-
* May select a connector, assembly.screen, assembly.subassembly, or its
|
|
14
|
-
* assembly.cadassembly alias. Omit for an independently placed assembly.
|
|
15
|
-
* This establishes attachment, not a copy of the target's geometry.
|
|
16
|
-
* Target existence, ambiguity, and attachment cycles are checked by core.
|
|
17
|
-
*/
|
|
18
|
-
connectsTo?: string
|
|
19
11
|
/** Optional CAD geometry using the existing component cadModel formats. */
|
|
20
12
|
cadModel?: CadModelProp
|
|
21
13
|
/** Nested assembly elements or CAD geometry; preserved without parsing. */
|
|
@@ -27,12 +19,6 @@ export const assemblySubassemblyProps = z.object({
|
|
|
27
19
|
message: "name cannot be empty",
|
|
28
20
|
}),
|
|
29
21
|
displayName: z.string().optional(),
|
|
30
|
-
connectsTo: z
|
|
31
|
-
.string()
|
|
32
|
-
.refine((value) => value.trim().length > 0, {
|
|
33
|
-
message: "connectsTo cannot be empty",
|
|
34
|
-
})
|
|
35
|
-
.optional(),
|
|
36
22
|
cadModel: cadModelProp.optional(),
|
|
37
23
|
children: z.custom<ReactNode>().optional(),
|
|
38
24
|
})
|