@tscircuit/props 0.0.689 → 0.0.691

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.
@@ -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
- /** e.g. "jst-ph-6". */
28
- wireConnection?: "none" | "stubs" | "jst-ph-6"
27
+ /** Cable connection string, e.g. "jst6_ph".
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?: string
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.enum(["none", "stubs", "jst-ph-6"]).optional(),
55
+ wireConnection: z
56
+ .string()
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()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tscircuit/props",
3
- "version": "0.0.689",
3
+ "version": "0.0.691",
4
4
  "description": "Props for tscircuit builtin component types",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",