@tscircuit/props 0.0.319 → 0.0.321
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/README.md +24 -0
- package/dist/index.d.ts +112 -108
- package/dist/index.js +24 -3
- package/dist/index.js.map +1 -1
- package/lib/components/group.ts +29 -8
- package/lib/index.ts +1 -0
- package/lib/projectConfig.ts +25 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -455,14 +455,18 @@ var autorouterConfig = z25.object({
|
|
|
455
455
|
serverCacheEnabled: z25.boolean().optional(),
|
|
456
456
|
cache: z25.custom((v) => true).optional(),
|
|
457
457
|
traceClearance: length2.optional(),
|
|
458
|
-
groupMode: z25.enum(["
|
|
458
|
+
groupMode: z25.enum(["sequential_trace", "subcircuit", "sequential-trace"]).optional(),
|
|
459
459
|
algorithmFn: z25.custom(
|
|
460
460
|
(v) => typeof v === "function" || v === void 0
|
|
461
461
|
).optional(),
|
|
462
462
|
preset: z25.enum([
|
|
463
|
-
"
|
|
463
|
+
"sequential_trace",
|
|
464
464
|
"subcircuit",
|
|
465
465
|
"auto",
|
|
466
|
+
"auto_local",
|
|
467
|
+
"auto_cloud",
|
|
468
|
+
"freerouting",
|
|
469
|
+
"sequential-trace",
|
|
466
470
|
"auto-local",
|
|
467
471
|
"auto-cloud"
|
|
468
472
|
]).optional(),
|
|
@@ -470,9 +474,13 @@ var autorouterConfig = z25.object({
|
|
|
470
474
|
});
|
|
471
475
|
var autorouterProp = z25.union([
|
|
472
476
|
autorouterConfig,
|
|
473
|
-
z25.literal("
|
|
477
|
+
z25.literal("sequential_trace"),
|
|
474
478
|
z25.literal("subcircuit"),
|
|
475
479
|
z25.literal("auto"),
|
|
480
|
+
z25.literal("auto_local"),
|
|
481
|
+
z25.literal("auto_cloud"),
|
|
482
|
+
z25.literal("freerouting"),
|
|
483
|
+
z25.literal("sequential-trace"),
|
|
476
484
|
z25.literal("auto-local"),
|
|
477
485
|
z25.literal("auto-cloud")
|
|
478
486
|
]);
|
|
@@ -1813,6 +1821,18 @@ var platformConfig = z89.object({
|
|
|
1813
1821
|
).optional()
|
|
1814
1822
|
});
|
|
1815
1823
|
expectTypesMatch(true);
|
|
1824
|
+
|
|
1825
|
+
// lib/projectConfig.ts
|
|
1826
|
+
import "zod";
|
|
1827
|
+
var platformConfigObject = platformConfig;
|
|
1828
|
+
var projectConfig = platformConfigObject.pick({
|
|
1829
|
+
projectName: true,
|
|
1830
|
+
projectBaseUrl: true,
|
|
1831
|
+
version: true,
|
|
1832
|
+
url: true,
|
|
1833
|
+
printBoardInformationToSilkscreen: true
|
|
1834
|
+
});
|
|
1835
|
+
expectTypesMatch(true);
|
|
1816
1836
|
export {
|
|
1817
1837
|
autorouterConfig,
|
|
1818
1838
|
autorouterProp,
|
|
@@ -1916,6 +1936,7 @@ export {
|
|
|
1916
1936
|
portRef,
|
|
1917
1937
|
potentiometerProps,
|
|
1918
1938
|
powerSourceProps,
|
|
1939
|
+
projectConfig,
|
|
1919
1940
|
pushButtonProps,
|
|
1920
1941
|
rectCutoutProps,
|
|
1921
1942
|
rectSmtPadProps,
|