@tscircuit/props 0.0.689 → 0.0.690
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 +19 -16
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/lib/assembly/motor.ts +11 -3
- package/package.json +1 -1
package/lib/assembly/motor.ts
CHANGED
|
@@ -24,8 +24,11 @@ export interface AssemblyMotorProps {
|
|
|
24
24
|
* shaft. Defaults to "z+", the native shaft axis of the NEMA models.
|
|
25
25
|
*/
|
|
26
26
|
shaftFacingDirection?: CadModelAxisDirection
|
|
27
|
-
/**
|
|
28
|
-
|
|
27
|
+
/** Six-pin JST PH termination: "jst6_ph", matching footprinter.
|
|
28
|
+
* Legacy "jst-ph-6" and "jst_ph_6" inputs normalize to "jst6_ph".
|
|
29
|
+
* Omit to use the model's default termination.
|
|
30
|
+
*/
|
|
31
|
+
wireConnection?: "none" | "stubs" | "jst6_ph" | "jst-ph-6" | "jst_ph_6"
|
|
29
32
|
/** Assembly mounting target, e.g. "FRAME.xMotor"; paired with mountFace.
|
|
30
33
|
* Face mating determines orientation, so shaftFacingDirection must be omitted.
|
|
31
34
|
*/
|
|
@@ -49,7 +52,12 @@ export const assemblyMotorProps = z
|
|
|
49
52
|
standard: z.enum(["nema8", "nema17", "nema23"]).optional(),
|
|
50
53
|
model: z.string().trim().min(1).optional(),
|
|
51
54
|
shaftFacingDirection: cadModelAxisDirection.optional(),
|
|
52
|
-
wireConnection: z
|
|
55
|
+
wireConnection: z
|
|
56
|
+
.enum(["none", "stubs", "jst6_ph", "jst-ph-6", "jst_ph_6"])
|
|
57
|
+
.transform((value) =>
|
|
58
|
+
value === "jst-ph-6" || value === "jst_ph_6" ? "jst6_ph" : value,
|
|
59
|
+
)
|
|
60
|
+
.optional(),
|
|
53
61
|
mountedTo: z
|
|
54
62
|
.string()
|
|
55
63
|
.trim()
|