@tscircuit/props 0.0.476 → 0.0.478
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 +1260 -1254
- package/dist/index.js +5 -2
- package/dist/index.js.map +1 -1
- package/lib/common/cadModel.ts +2 -2
- package/lib/components/potentiometer.ts +8 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -74,7 +74,7 @@ var cadModelBase = z6.object({
|
|
|
74
74
|
size: point3.optional(),
|
|
75
75
|
modelUnitToMmScale: distance.optional(),
|
|
76
76
|
zOffsetFromSurface: distance.optional(),
|
|
77
|
-
|
|
77
|
+
showAsTranslucentModel: z6.boolean().optional()
|
|
78
78
|
});
|
|
79
79
|
expectTypesMatch(true);
|
|
80
80
|
var cadModelStl = cadModelBase.extend({
|
|
@@ -1286,9 +1286,11 @@ expectTypesMatch(true);
|
|
|
1286
1286
|
// lib/components/potentiometer.ts
|
|
1287
1287
|
import { resistance as resistance2 } from "circuit-json";
|
|
1288
1288
|
import { z as z48 } from "zod";
|
|
1289
|
+
var potentiometerPinLabels = ["pin1", "pin2", "pin3"];
|
|
1289
1290
|
var potentiometerProps = commonComponentProps.extend({
|
|
1290
1291
|
maxResistance: resistance2,
|
|
1291
|
-
pinVariant: z48.enum(["two_pin", "three_pin"]).optional()
|
|
1292
|
+
pinVariant: z48.enum(["two_pin", "three_pin"]).optional(),
|
|
1293
|
+
connections: createConnectionsProp(potentiometerPinLabels).optional()
|
|
1292
1294
|
});
|
|
1293
1295
|
expectTypesMatch(true);
|
|
1294
1296
|
|
|
@@ -2985,6 +2987,7 @@ export {
|
|
|
2985
2987
|
portHints,
|
|
2986
2988
|
portProps,
|
|
2987
2989
|
portRef,
|
|
2990
|
+
potentiometerPinLabels,
|
|
2988
2991
|
potentiometerProps,
|
|
2989
2992
|
powerSourceProps,
|
|
2990
2993
|
projectConfig,
|