@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 CHANGED
@@ -3156,8 +3156,11 @@ interface AssemblyMotorProps {
3156
3156
  * shaft. Defaults to "z+", the native shaft axis of the NEMA models.
3157
3157
  */
3158
3158
  shaftFacingDirection?: CadModelAxisDirection;
3159
- /** e.g. "jst-ph-6". */
3160
- wireConnection?: "none" | "stubs" | "jst-ph-6";
3159
+ /** Six-pin JST PH termination: "jst6_ph", matching footprinter.
3160
+ * Legacy "jst-ph-6" and "jst_ph_6" inputs normalize to "jst6_ph".
3161
+ * Omit to use the model's default termination.
3162
+ */
3163
+ wireConnection?: "none" | "stubs" | "jst6_ph" | "jst-ph-6" | "jst_ph_6";
3161
3164
  /** Assembly mounting target, e.g. "FRAME.xMotor"; paired with mountFace.
3162
3165
  * Face mating determines orientation, so shaftFacingDirection must be omitted.
3163
3166
  */
@@ -3177,7 +3180,7 @@ declare const assemblyMotorProps: z.ZodEffects<z.ZodEffects<z.ZodObject<{
3177
3180
  standard: z.ZodOptional<z.ZodEnum<["nema8", "nema17", "nema23"]>>;
3178
3181
  model: z.ZodOptional<z.ZodString>;
3179
3182
  shaftFacingDirection: z.ZodOptional<z.ZodEnum<["x+", "x-", "y+", "y-", "z+", "z-"]>>;
3180
- wireConnection: z.ZodOptional<z.ZodEnum<["none", "stubs", "jst-ph-6"]>>;
3183
+ wireConnection: z.ZodOptional<z.ZodEffects<z.ZodEnum<["none", "stubs", "jst6_ph", "jst-ph-6", "jst_ph_6"]>, "none" | "stubs" | "jst6_ph", "none" | "stubs" | "jst6_ph" | "jst-ph-6" | "jst_ph_6">>;
3181
3184
  mountedTo: z.ZodOptional<z.ZodString>;
3182
3185
  mountFace: z.ZodOptional<z.ZodString>;
3183
3186
  mountGap: z.ZodOptional<z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>, z.ZodNumber>>;
@@ -3190,7 +3193,7 @@ declare const assemblyMotorProps: z.ZodEffects<z.ZodEffects<z.ZodObject<{
3190
3193
  mountFace?: string | undefined;
3191
3194
  mountGap?: number | undefined;
3192
3195
  shaftFacingDirection?: "x+" | "x-" | "y+" | "y-" | "z+" | "z-" | undefined;
3193
- wireConnection?: "none" | "stubs" | "jst-ph-6" | undefined;
3196
+ wireConnection?: "none" | "stubs" | "jst6_ph" | undefined;
3194
3197
  }, {
3195
3198
  name: string;
3196
3199
  displayName?: string | undefined;
@@ -3200,7 +3203,7 @@ declare const assemblyMotorProps: z.ZodEffects<z.ZodEffects<z.ZodObject<{
3200
3203
  mountFace?: string | undefined;
3201
3204
  mountGap?: string | number | undefined;
3202
3205
  shaftFacingDirection?: "x+" | "x-" | "y+" | "y-" | "z+" | "z-" | undefined;
3203
- wireConnection?: "none" | "stubs" | "jst-ph-6" | undefined;
3206
+ wireConnection?: "none" | "stubs" | "jst6_ph" | "jst-ph-6" | "jst_ph_6" | undefined;
3204
3207
  }>, {
3205
3208
  name: string;
3206
3209
  displayName?: string | undefined;
@@ -3210,7 +3213,7 @@ declare const assemblyMotorProps: z.ZodEffects<z.ZodEffects<z.ZodObject<{
3210
3213
  mountFace?: string | undefined;
3211
3214
  mountGap?: number | undefined;
3212
3215
  shaftFacingDirection?: "x+" | "x-" | "y+" | "y-" | "z+" | "z-" | undefined;
3213
- wireConnection?: "none" | "stubs" | "jst-ph-6" | undefined;
3216
+ wireConnection?: "none" | "stubs" | "jst6_ph" | undefined;
3214
3217
  }, {
3215
3218
  name: string;
3216
3219
  displayName?: string | undefined;
@@ -3220,7 +3223,7 @@ declare const assemblyMotorProps: z.ZodEffects<z.ZodEffects<z.ZodObject<{
3220
3223
  mountFace?: string | undefined;
3221
3224
  mountGap?: string | number | undefined;
3222
3225
  shaftFacingDirection?: "x+" | "x-" | "y+" | "y-" | "z+" | "z-" | undefined;
3223
- wireConnection?: "none" | "stubs" | "jst-ph-6" | undefined;
3226
+ wireConnection?: "none" | "stubs" | "jst6_ph" | "jst-ph-6" | "jst_ph_6" | undefined;
3224
3227
  }>, {
3225
3228
  name: string;
3226
3229
  displayName?: string | undefined;
@@ -3230,7 +3233,7 @@ declare const assemblyMotorProps: z.ZodEffects<z.ZodEffects<z.ZodObject<{
3230
3233
  mountFace?: string | undefined;
3231
3234
  mountGap?: number | undefined;
3232
3235
  shaftFacingDirection?: "x+" | "x-" | "y+" | "y-" | "z+" | "z-" | undefined;
3233
- wireConnection?: "none" | "stubs" | "jst-ph-6" | undefined;
3236
+ wireConnection?: "none" | "stubs" | "jst6_ph" | undefined;
3234
3237
  }, {
3235
3238
  name: string;
3236
3239
  displayName?: string | undefined;
@@ -3240,7 +3243,7 @@ declare const assemblyMotorProps: z.ZodEffects<z.ZodEffects<z.ZodObject<{
3240
3243
  mountFace?: string | undefined;
3241
3244
  mountGap?: string | number | undefined;
3242
3245
  shaftFacingDirection?: "x+" | "x-" | "y+" | "y-" | "z+" | "z-" | undefined;
3243
- wireConnection?: "none" | "stubs" | "jst-ph-6" | undefined;
3246
+ wireConnection?: "none" | "stubs" | "jst6_ph" | "jst-ph-6" | "jst_ph_6" | undefined;
3244
3247
  }>;
3245
3248
  type AssemblyMotorPropsInput = z.input<typeof assemblyMotorProps>;
3246
3249
 
@@ -12044,7 +12047,7 @@ declare const assemblyProps: {
12044
12047
  standard: zod.ZodOptional<zod.ZodEnum<["nema8", "nema17", "nema23"]>>;
12045
12048
  model: zod.ZodOptional<zod.ZodString>;
12046
12049
  shaftFacingDirection: zod.ZodOptional<zod.ZodEnum<["x+", "x-", "y+", "y-", "z+", "z-"]>>;
12047
- wireConnection: zod.ZodOptional<zod.ZodEnum<["none", "stubs", "jst-ph-6"]>>;
12050
+ wireConnection: zod.ZodOptional<zod.ZodEffects<zod.ZodEnum<["none", "stubs", "jst6_ph", "jst-ph-6", "jst_ph_6"]>, "none" | "stubs" | "jst6_ph", "none" | "stubs" | "jst6_ph" | "jst-ph-6" | "jst_ph_6">>;
12048
12051
  mountedTo: zod.ZodOptional<zod.ZodString>;
12049
12052
  mountFace: zod.ZodOptional<zod.ZodString>;
12050
12053
  mountGap: zod.ZodOptional<zod.ZodPipeline<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>, zod.ZodNumber>>;
@@ -12057,7 +12060,7 @@ declare const assemblyProps: {
12057
12060
  mountFace?: string | undefined;
12058
12061
  mountGap?: number | undefined;
12059
12062
  shaftFacingDirection?: "x+" | "x-" | "y+" | "y-" | "z+" | "z-" | undefined;
12060
- wireConnection?: "none" | "stubs" | "jst-ph-6" | undefined;
12063
+ wireConnection?: "none" | "stubs" | "jst6_ph" | undefined;
12061
12064
  }, {
12062
12065
  name: string;
12063
12066
  displayName?: string | undefined;
@@ -12067,7 +12070,7 @@ declare const assemblyProps: {
12067
12070
  mountFace?: string | undefined;
12068
12071
  mountGap?: string | number | undefined;
12069
12072
  shaftFacingDirection?: "x+" | "x-" | "y+" | "y-" | "z+" | "z-" | undefined;
12070
- wireConnection?: "none" | "stubs" | "jst-ph-6" | undefined;
12073
+ wireConnection?: "none" | "stubs" | "jst6_ph" | "jst-ph-6" | "jst_ph_6" | undefined;
12071
12074
  }>, {
12072
12075
  name: string;
12073
12076
  displayName?: string | undefined;
@@ -12077,7 +12080,7 @@ declare const assemblyProps: {
12077
12080
  mountFace?: string | undefined;
12078
12081
  mountGap?: number | undefined;
12079
12082
  shaftFacingDirection?: "x+" | "x-" | "y+" | "y-" | "z+" | "z-" | undefined;
12080
- wireConnection?: "none" | "stubs" | "jst-ph-6" | undefined;
12083
+ wireConnection?: "none" | "stubs" | "jst6_ph" | undefined;
12081
12084
  }, {
12082
12085
  name: string;
12083
12086
  displayName?: string | undefined;
@@ -12087,7 +12090,7 @@ declare const assemblyProps: {
12087
12090
  mountFace?: string | undefined;
12088
12091
  mountGap?: string | number | undefined;
12089
12092
  shaftFacingDirection?: "x+" | "x-" | "y+" | "y-" | "z+" | "z-" | undefined;
12090
- wireConnection?: "none" | "stubs" | "jst-ph-6" | undefined;
12093
+ wireConnection?: "none" | "stubs" | "jst6_ph" | "jst-ph-6" | "jst_ph_6" | undefined;
12091
12094
  }>, {
12092
12095
  name: string;
12093
12096
  displayName?: string | undefined;
@@ -12097,7 +12100,7 @@ declare const assemblyProps: {
12097
12100
  mountFace?: string | undefined;
12098
12101
  mountGap?: number | undefined;
12099
12102
  shaftFacingDirection?: "x+" | "x-" | "y+" | "y-" | "z+" | "z-" | undefined;
12100
- wireConnection?: "none" | "stubs" | "jst-ph-6" | undefined;
12103
+ wireConnection?: "none" | "stubs" | "jst6_ph" | undefined;
12101
12104
  }, {
12102
12105
  name: string;
12103
12106
  displayName?: string | undefined;
@@ -12107,7 +12110,7 @@ declare const assemblyProps: {
12107
12110
  mountFace?: string | undefined;
12108
12111
  mountGap?: string | number | undefined;
12109
12112
  shaftFacingDirection?: "x+" | "x-" | "y+" | "y-" | "z+" | "z-" | undefined;
12110
- wireConnection?: "none" | "stubs" | "jst-ph-6" | undefined;
12113
+ wireConnection?: "none" | "stubs" | "jst6_ph" | "jst-ph-6" | "jst_ph_6" | undefined;
12111
12114
  }>;
12112
12115
  readonly printedpart: zod.ZodEffects<zod.ZodObject<{
12113
12116
  name: zod.ZodString;
package/dist/index.js CHANGED
@@ -244,7 +244,9 @@ var assemblyMotorProps = z11.object({
244
244
  standard: z11.enum(["nema8", "nema17", "nema23"]).optional(),
245
245
  model: z11.string().trim().min(1).optional(),
246
246
  shaftFacingDirection: cadModelAxisDirection.optional(),
247
- wireConnection: z11.enum(["none", "stubs", "jst-ph-6"]).optional(),
247
+ wireConnection: z11.enum(["none", "stubs", "jst6_ph", "jst-ph-6", "jst_ph_6"]).transform(
248
+ (value) => value === "jst-ph-6" || value === "jst_ph_6" ? "jst6_ph" : value
249
+ ).optional(),
248
250
  mountedTo: z11.string().trim().regex(/^.+\.[^.]+$/, "Expected part.face").optional(),
249
251
  mountFace: z11.string().trim().min(1).optional(),
250
252
  mountGap: distance.pipe(z11.number().nonnegative().finite()).optional()