@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/lib/assembly/motor.ts
CHANGED
|
@@ -25,7 +25,6 @@ export interface AssemblyMotorProps {
|
|
|
25
25
|
*/
|
|
26
26
|
shaftFacingDirection?: CadModelAxisDirection
|
|
27
27
|
/** Cable connection string, e.g. "jst6_ph".
|
|
28
|
-
* Legacy "jst-ph-6" and "jst_ph_6" inputs normalize to "jst6_ph".
|
|
29
28
|
* Omit to use the model's default termination.
|
|
30
29
|
*/
|
|
31
30
|
wireConnection?: string
|
|
@@ -52,12 +51,7 @@ export const assemblyMotorProps = z
|
|
|
52
51
|
standard: z.enum(["nema8", "nema17", "nema23"]).optional(),
|
|
53
52
|
model: z.string().trim().min(1).optional(),
|
|
54
53
|
shaftFacingDirection: cadModelAxisDirection.optional(),
|
|
55
|
-
wireConnection: z
|
|
56
|
-
.string()
|
|
57
|
-
.transform((value) =>
|
|
58
|
-
value === "jst-ph-6" || value === "jst_ph_6" ? "jst6_ph" : value,
|
|
59
|
-
)
|
|
60
|
-
.optional(),
|
|
54
|
+
wireConnection: z.string().optional(),
|
|
61
55
|
mountedTo: z
|
|
62
56
|
.string()
|
|
63
57
|
.trim()
|
|
@@ -18,5 +18,9 @@ export const fabricationNotePathProps = pcbLayoutProps
|
|
|
18
18
|
route: z.array(route_hint_point),
|
|
19
19
|
strokeWidth: length.optional(),
|
|
20
20
|
color: z.string().optional(),
|
|
21
|
+
/** Fill the route, closing its boundary implicitly. Omitted means false. */
|
|
22
|
+
isFilled: z.boolean().optional(),
|
|
23
|
+
/** Draw the route's outline. Omitted means true; false disables it. */
|
|
24
|
+
hasStroke: z.boolean().optional(),
|
|
21
25
|
})
|
|
22
26
|
export type FabricationNotePathProps = z.input<typeof fabricationNotePathProps>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tscircuit/props",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.693",
|
|
4
4
|
"description": "Props for tscircuit builtin component types",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -32,7 +32,9 @@
|
|
|
32
32
|
"@types/node": "^20.12.11",
|
|
33
33
|
"@types/react": "^18.3.2",
|
|
34
34
|
"ava": "^6.1.3",
|
|
35
|
-
"
|
|
35
|
+
"bun-match-svg": "^0.0.17",
|
|
36
|
+
"circuit-json": "^0.0.518",
|
|
37
|
+
"circuit-to-svg": "^0.0.443",
|
|
36
38
|
"expect-type": "^1.3.0",
|
|
37
39
|
"glob": "^11.0.0",
|
|
38
40
|
"madge": "^8.0.0",
|