@tscircuit/props 0.0.440 → 0.0.441
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 +6 -6
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/lib/components/group.ts +8 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -5670,9 +5670,9 @@ interface AutorouterConfig {
|
|
|
5670
5670
|
groupMode?: "sequential_trace" | "subcircuit" | /** @deprecated Use "sequential_trace" */ "sequential-trace";
|
|
5671
5671
|
local?: boolean;
|
|
5672
5672
|
algorithmFn?: (simpleRouteJson: any) => Promise<any>;
|
|
5673
|
-
preset?: "sequential_trace" | "subcircuit" | "auto" | "auto_local" | "auto_cloud" | "tscircuit_beta" | "freerouting" | "laser_prefab" | /** @deprecated Use "sequential_trace" */ "sequential-trace" | /** @deprecated Use "auto_local" */ "auto-local" | /** @deprecated Use "auto_cloud" */ "auto-cloud";
|
|
5673
|
+
preset?: "sequential_trace" | "subcircuit" | "auto" | "auto_local" | "auto_cloud" | "auto_jumper" | "tscircuit_beta" | "freerouting" | "laser_prefab" | /** @deprecated Use "auto_jumper" */ "auto-jumper" | /** @deprecated Use "sequential_trace" */ "sequential-trace" | /** @deprecated Use "auto_local" */ "auto-local" | /** @deprecated Use "auto_cloud" */ "auto-cloud";
|
|
5674
5674
|
}
|
|
5675
|
-
type AutorouterPreset = "sequential_trace" | "subcircuit" | "auto" | "auto_local" | "auto_cloud" | "tscircuit_beta" | "freerouting" | "laser_prefab" | "sequential-trace" | "auto-local" | "auto-cloud";
|
|
5675
|
+
type AutorouterPreset = "sequential_trace" | "subcircuit" | "auto" | "auto_local" | "auto_cloud" | "auto_jumper" | "tscircuit_beta" | "freerouting" | "laser_prefab" | "auto-jumper" | "sequential-trace" | "auto-local" | "auto-cloud";
|
|
5676
5676
|
type AutorouterProp = AutorouterConfig | AutocompleteString<AutorouterPreset>;
|
|
5677
5677
|
declare const autorouterConfig: z.ZodObject<{
|
|
5678
5678
|
serverUrl: z.ZodOptional<z.ZodString>;
|
|
@@ -5683,7 +5683,7 @@ declare const autorouterConfig: z.ZodObject<{
|
|
|
5683
5683
|
traceClearance: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
5684
5684
|
groupMode: z.ZodOptional<z.ZodEnum<["sequential_trace", "subcircuit", "sequential-trace"]>>;
|
|
5685
5685
|
algorithmFn: z.ZodOptional<z.ZodType<(simpleRouteJson: any) => Promise<any>, z.ZodTypeDef, (simpleRouteJson: any) => Promise<any>>>;
|
|
5686
|
-
preset: z.ZodOptional<z.ZodEnum<["sequential_trace", "subcircuit", "auto", "auto_local", "auto_cloud", "tscircuit_beta", "freerouting", "laser_prefab", "sequential-trace", "auto-local", "auto-cloud"]>>;
|
|
5686
|
+
preset: z.ZodOptional<z.ZodEnum<["sequential_trace", "subcircuit", "auto", "auto_local", "auto_cloud", "auto_jumper", "tscircuit_beta", "freerouting", "laser_prefab", "auto-jumper", "sequential-trace", "auto-local", "auto-cloud"]>>;
|
|
5687
5687
|
local: z.ZodOptional<z.ZodBoolean>;
|
|
5688
5688
|
}, "strip", z.ZodTypeAny, {
|
|
5689
5689
|
serverUrl?: string | undefined;
|
|
@@ -5694,7 +5694,7 @@ declare const autorouterConfig: z.ZodObject<{
|
|
|
5694
5694
|
traceClearance?: number | undefined;
|
|
5695
5695
|
groupMode?: "sequential_trace" | "subcircuit" | "sequential-trace" | undefined;
|
|
5696
5696
|
algorithmFn?: ((simpleRouteJson: any) => Promise<any>) | undefined;
|
|
5697
|
-
preset?: "auto" | "sequential_trace" | "subcircuit" | "sequential-trace" | "auto_local" | "auto_cloud" | "tscircuit_beta" | "freerouting" | "laser_prefab" | "auto-local" | "auto-cloud" | undefined;
|
|
5697
|
+
preset?: "auto" | "sequential_trace" | "subcircuit" | "sequential-trace" | "auto_local" | "auto_cloud" | "auto_jumper" | "tscircuit_beta" | "freerouting" | "laser_prefab" | "auto-jumper" | "auto-local" | "auto-cloud" | undefined;
|
|
5698
5698
|
local?: boolean | undefined;
|
|
5699
5699
|
}, {
|
|
5700
5700
|
serverUrl?: string | undefined;
|
|
@@ -5705,10 +5705,10 @@ declare const autorouterConfig: z.ZodObject<{
|
|
|
5705
5705
|
traceClearance?: string | number | undefined;
|
|
5706
5706
|
groupMode?: "sequential_trace" | "subcircuit" | "sequential-trace" | undefined;
|
|
5707
5707
|
algorithmFn?: ((simpleRouteJson: any) => Promise<any>) | undefined;
|
|
5708
|
-
preset?: "auto" | "sequential_trace" | "subcircuit" | "sequential-trace" | "auto_local" | "auto_cloud" | "tscircuit_beta" | "freerouting" | "laser_prefab" | "auto-local" | "auto-cloud" | undefined;
|
|
5708
|
+
preset?: "auto" | "sequential_trace" | "subcircuit" | "sequential-trace" | "auto_local" | "auto_cloud" | "auto_jumper" | "tscircuit_beta" | "freerouting" | "laser_prefab" | "auto-jumper" | "auto-local" | "auto-cloud" | undefined;
|
|
5709
5709
|
local?: boolean | undefined;
|
|
5710
5710
|
}>;
|
|
5711
|
-
declare const autorouterPreset: z.ZodUnion<[z.ZodLiteral<"sequential_trace">, z.ZodLiteral<"subcircuit">, z.ZodLiteral<"auto">, z.ZodLiteral<"auto_local">, z.ZodLiteral<"auto_cloud">, z.ZodLiteral<"tscircuit_beta">, z.ZodLiteral<"freerouting">, z.ZodLiteral<"laser_prefab">, z.ZodLiteral<"sequential-trace">, z.ZodLiteral<"auto-local">, z.ZodLiteral<"auto-cloud">]>;
|
|
5711
|
+
declare const autorouterPreset: z.ZodUnion<[z.ZodLiteral<"sequential_trace">, z.ZodLiteral<"subcircuit">, z.ZodLiteral<"auto">, z.ZodLiteral<"auto_local">, z.ZodLiteral<"auto_cloud">, z.ZodLiteral<"auto_jumper">, z.ZodLiteral<"tscircuit_beta">, z.ZodLiteral<"freerouting">, z.ZodLiteral<"laser_prefab">, z.ZodLiteral<"auto-jumper">, z.ZodLiteral<"sequential-trace">, z.ZodLiteral<"auto-local">, z.ZodLiteral<"auto-cloud">]>;
|
|
5712
5712
|
declare const autorouterProp: z.ZodType<AutorouterProp>;
|
|
5713
5713
|
declare const autorouterEffortLevel: z.ZodEnum<["1x", "2x", "5x", "10x", "100x"]>;
|
|
5714
5714
|
interface SubcircuitGroupProps extends BaseGroupProps {
|
package/dist/index.js
CHANGED
|
@@ -585,9 +585,11 @@ var autorouterConfig = z30.object({
|
|
|
585
585
|
"auto",
|
|
586
586
|
"auto_local",
|
|
587
587
|
"auto_cloud",
|
|
588
|
+
"auto_jumper",
|
|
588
589
|
"tscircuit_beta",
|
|
589
590
|
"freerouting",
|
|
590
591
|
"laser_prefab",
|
|
592
|
+
"auto-jumper",
|
|
591
593
|
"sequential-trace",
|
|
592
594
|
"auto-local",
|
|
593
595
|
"auto-cloud"
|
|
@@ -600,10 +602,12 @@ var autorouterPreset = z30.union([
|
|
|
600
602
|
z30.literal("auto"),
|
|
601
603
|
z30.literal("auto_local"),
|
|
602
604
|
z30.literal("auto_cloud"),
|
|
605
|
+
z30.literal("auto_jumper"),
|
|
603
606
|
z30.literal("tscircuit_beta"),
|
|
604
607
|
z30.literal("freerouting"),
|
|
605
608
|
z30.literal("laser_prefab"),
|
|
606
609
|
// Prefabricated PCB with laser copper ablation
|
|
610
|
+
z30.literal("auto-jumper"),
|
|
607
611
|
z30.literal("sequential-trace"),
|
|
608
612
|
z30.literal("auto-local"),
|
|
609
613
|
z30.literal("auto-cloud")
|