@tscircuit/props 0.0.691 → 0.0.693
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 +10 -3
- package/dist/index.js +6 -4
- package/dist/index.js.map +1 -1
- package/lib/assembly/motor.ts +1 -7
- package/lib/components/fabrication-note-path.ts +4 -0
- package/package.json +4 -2
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>>;
|
|
@@ -209417,6 +209416,10 @@ declare const fabricationNotePathProps: z.ZodObject<Omit<{
|
|
|
209417
209416
|
}>, "many">;
|
|
209418
209417
|
strokeWidth: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
209419
209418
|
color: z.ZodOptional<z.ZodString>;
|
|
209419
|
+
/** Fill the route, closing its boundary implicitly. Omitted means false. */
|
|
209420
|
+
isFilled: z.ZodOptional<z.ZodBoolean>;
|
|
209421
|
+
/** Draw the route's outline. Omitted means true; false disables it. */
|
|
209422
|
+
hasStroke: z.ZodOptional<z.ZodBoolean>;
|
|
209420
209423
|
}, "strip", z.ZodTypeAny, {
|
|
209421
209424
|
route: {
|
|
209422
209425
|
x: number;
|
|
@@ -209450,6 +209453,8 @@ declare const fabricationNotePathProps: z.ZodObject<Omit<{
|
|
|
209450
209453
|
relative?: boolean | undefined;
|
|
209451
209454
|
strokeWidth?: number | undefined;
|
|
209452
209455
|
color?: string | undefined;
|
|
209456
|
+
isFilled?: boolean | undefined;
|
|
209457
|
+
hasStroke?: boolean | undefined;
|
|
209453
209458
|
}, {
|
|
209454
209459
|
route: {
|
|
209455
209460
|
x: string | number;
|
|
@@ -209487,6 +209492,8 @@ declare const fabricationNotePathProps: z.ZodObject<Omit<{
|
|
|
209487
209492
|
relative?: boolean | undefined;
|
|
209488
209493
|
strokeWidth?: string | number | undefined;
|
|
209489
209494
|
color?: string | undefined;
|
|
209495
|
+
isFilled?: boolean | undefined;
|
|
209496
|
+
hasStroke?: boolean | undefined;
|
|
209490
209497
|
}>;
|
|
209491
209498
|
type FabricationNotePathProps = z.input<typeof fabricationNotePathProps>;
|
|
209492
209499
|
|
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()
|
|
@@ -19048,7 +19046,11 @@ var fabricationNotePathProps = pcbLayoutProps.omit({
|
|
|
19048
19046
|
}).extend({
|
|
19049
19047
|
route: z115.array(route_hint_point3),
|
|
19050
19048
|
strokeWidth: length5.optional(),
|
|
19051
|
-
color: z115.string().optional()
|
|
19049
|
+
color: z115.string().optional(),
|
|
19050
|
+
/** Fill the route, closing its boundary implicitly. Omitted means false. */
|
|
19051
|
+
isFilled: z115.boolean().optional(),
|
|
19052
|
+
/** Draw the route's outline. Omitted means true; false disables it. */
|
|
19053
|
+
hasStroke: z115.boolean().optional()
|
|
19052
19054
|
});
|
|
19053
19055
|
|
|
19054
19056
|
// lib/components/fabrication-note-dimension.ts
|