@tscircuit/props 0.0.691 → 0.0.692
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 +2 -3
- package/dist/index.js +1 -3
- package/dist/index.js.map +1 -1
- package/lib/assembly/motor.ts +1 -7
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -3157,7 +3157,6 @@ interface AssemblyMotorProps {
|
|
|
3157
3157
|
*/
|
|
3158
3158
|
shaftFacingDirection?: CadModelAxisDirection;
|
|
3159
3159
|
/** Cable connection string, e.g. "jst6_ph".
|
|
3160
|
-
* Legacy "jst-ph-6" and "jst_ph_6" inputs normalize to "jst6_ph".
|
|
3161
3160
|
* Omit to use the model's default termination.
|
|
3162
3161
|
*/
|
|
3163
3162
|
wireConnection?: string;
|
|
@@ -3180,7 +3179,7 @@ declare const assemblyMotorProps: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
3180
3179
|
standard: z.ZodOptional<z.ZodEnum<["nema8", "nema17", "nema23"]>>;
|
|
3181
3180
|
model: z.ZodOptional<z.ZodString>;
|
|
3182
3181
|
shaftFacingDirection: z.ZodOptional<z.ZodEnum<["x+", "x-", "y+", "y-", "z+", "z-"]>>;
|
|
3183
|
-
wireConnection: z.ZodOptional<z.
|
|
3182
|
+
wireConnection: z.ZodOptional<z.ZodString>;
|
|
3184
3183
|
mountedTo: z.ZodOptional<z.ZodString>;
|
|
3185
3184
|
mountFace: z.ZodOptional<z.ZodString>;
|
|
3186
3185
|
mountGap: z.ZodOptional<z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>, z.ZodNumber>>;
|
|
@@ -12047,7 +12046,7 @@ declare const assemblyProps: {
|
|
|
12047
12046
|
standard: zod.ZodOptional<zod.ZodEnum<["nema8", "nema17", "nema23"]>>;
|
|
12048
12047
|
model: zod.ZodOptional<zod.ZodString>;
|
|
12049
12048
|
shaftFacingDirection: zod.ZodOptional<zod.ZodEnum<["x+", "x-", "y+", "y-", "z+", "z-"]>>;
|
|
12050
|
-
wireConnection: zod.ZodOptional<zod.
|
|
12049
|
+
wireConnection: zod.ZodOptional<zod.ZodString>;
|
|
12051
12050
|
mountedTo: zod.ZodOptional<zod.ZodString>;
|
|
12052
12051
|
mountFace: zod.ZodOptional<zod.ZodString>;
|
|
12053
12052
|
mountGap: zod.ZodOptional<zod.ZodPipeline<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>, zod.ZodNumber>>;
|
package/dist/index.js
CHANGED
|
@@ -244,9 +244,7 @@ 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.string().
|
|
248
|
-
(value) => value === "jst-ph-6" || value === "jst_ph_6" ? "jst6_ph" : value
|
|
249
|
-
).optional(),
|
|
247
|
+
wireConnection: z11.string().optional(),
|
|
250
248
|
mountedTo: z11.string().trim().regex(/^.+\.[^.]+$/, "Expected part.face").optional(),
|
|
251
249
|
mountFace: z11.string().trim().min(1).optional(),
|
|
252
250
|
mountGap: distance.pipe(z11.number().nonnegative().finite()).optional()
|