@tscircuit/props 0.0.653 → 0.0.655

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 CHANGED
@@ -408,6 +408,12 @@ export interface BoardProps extends Omit<
408
408
  "subcircuit" | "connections" | "outline"
409
409
  > {
410
410
  title?: string;
411
+ /** Fabricator preset, preserved as supplied. Omitted leaves the preset unset. */
412
+ fabricatorPreset?:
413
+ | "jlcpcb_economy"
414
+ | "jlcpcb_standard"
415
+ | "jlcpcb_economy_20260912"
416
+ | "jlcpcb_standard_20260912";
411
417
  material?: "fr4" | "fr1" | "flex";
412
418
  /** Number of layers for the PCB */
413
419
  layers?: 1 | 2 | 4 | 6 | 8 | 10;
@@ -416,6 +422,13 @@ export interface BoardProps extends Omit<
416
422
  * false, which restricts newly generated vias to the full board stack.
417
423
  */
418
424
  allowBlindAndBuriedVias?: boolean;
425
+ defaultViaTenting?:
426
+ | boolean
427
+ | "both_sides"
428
+ | "top_and_bottom_tented"
429
+ | "top_tented"
430
+ | "bottom_tented"
431
+ | "exposed";
419
432
  borderRadius?: Distance;
420
433
  thickness?: Distance;
421
434
  boardAnchorPosition?: Point;
@@ -2355,6 +2368,13 @@ export interface ViaProps extends CommonLayoutProps {
2355
2368
  outerDiameter?: number | string;
2356
2369
  connectsTo?: string | string[];
2357
2370
  netIsAssignable?: boolean;
2371
+ tented?:
2372
+ | boolean
2373
+ | "both_sides"
2374
+ | "top_and_bottom_tented"
2375
+ | "top_tented"
2376
+ | "bottom_tented"
2377
+ | "exposed";
2358
2378
  }
2359
2379
  ```
2360
2380
 
package/dist/index.d.ts CHANGED
@@ -27888,6 +27888,8 @@ declare const boardOutlinePoint: z.ZodEffects<z.ZodObject<{
27888
27888
  }>;
27889
27889
  interface BoardProps extends Omit<SubcircuitGroupProps, "subcircuit" | "connections" | "outline"> {
27890
27890
  title?: string;
27891
+ /** Fabricator preset, preserved as supplied. Omitted leaves the preset unset. */
27892
+ fabricatorPreset?: "jlcpcb_economy" | "jlcpcb_standard" | "jlcpcb_economy_20260912" | "jlcpcb_standard_20260912";
27891
27893
  material?: "fr4" | "fr1" | "flex";
27892
27894
  /** Number of layers for the PCB */
27893
27895
  layers?: 1 | 2 | 4 | 6 | 8 | 10;
@@ -27896,6 +27898,7 @@ interface BoardProps extends Omit<SubcircuitGroupProps, "subcircuit" | "connecti
27896
27898
  * false, which restricts newly generated vias to the full board stack.
27897
27899
  */
27898
27900
  allowBlindAndBuriedVias?: boolean;
27901
+ defaultViaTenting?: boolean | "both_sides" | "top_and_bottom_tented" | "top_tented" | "bottom_tented" | "exposed";
27899
27902
  borderRadius?: Distance;
27900
27903
  thickness?: Distance;
27901
27904
  boardAnchorPosition?: Point;
@@ -28696,9 +28699,11 @@ declare const boardProps: z.ZodObject<{
28696
28699
  schPack: z.ZodOptional<z.ZodBoolean>;
28697
28700
  schMatchAdapt: z.ZodOptional<z.ZodBoolean>;
28698
28701
  } & {
28702
+ fabricatorPreset: z.ZodOptional<z.ZodEnum<["jlcpcb_economy", "jlcpcb_standard", "jlcpcb_economy_20260912", "jlcpcb_standard_20260912"]>>;
28699
28703
  material: z.ZodDefault<z.ZodEnum<["fr4", "fr1", "flex"]>>;
28700
28704
  layers: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>, z.ZodLiteral<6>, z.ZodLiteral<8>, z.ZodLiteral<10>]>>;
28701
28705
  allowBlindAndBuriedVias: z.ZodDefault<z.ZodBoolean>;
28706
+ defaultViaTenting: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["both_sides", "top_and_bottom_tented", "top_tented", "bottom_tented", "exposed"]>]>, "top_and_bottom_tented" | "top_tented" | "bottom_tented" | "exposed", boolean | "both_sides" | "top_and_bottom_tented" | "top_tented" | "bottom_tented" | "exposed">>;
28702
28707
  borderRadius: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
28703
28708
  thickness: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
28704
28709
  boardAnchorPosition: z.ZodOptional<z.ZodObject<{
@@ -29092,6 +29097,8 @@ declare const boardProps: z.ZodObject<{
29092
29097
  schPack?: boolean | undefined;
29093
29098
  schMatchAdapt?: boolean | undefined;
29094
29099
  title?: string | undefined;
29100
+ fabricatorPreset?: "jlcpcb_economy" | "jlcpcb_standard" | "jlcpcb_economy_20260912" | "jlcpcb_standard_20260912" | undefined;
29101
+ defaultViaTenting?: "top_and_bottom_tented" | "top_tented" | "bottom_tented" | "exposed" | undefined;
29095
29102
  borderRadius?: number | undefined;
29096
29103
  boardAnchorPosition?: {
29097
29104
  x: number;
@@ -29437,8 +29444,10 @@ declare const boardProps: z.ZodObject<{
29437
29444
  schPack?: boolean | undefined;
29438
29445
  schMatchAdapt?: boolean | undefined;
29439
29446
  title?: string | undefined;
29447
+ fabricatorPreset?: "jlcpcb_economy" | "jlcpcb_standard" | "jlcpcb_economy_20260912" | "jlcpcb_standard_20260912" | undefined;
29440
29448
  material?: "flex" | "fr4" | "fr1" | undefined;
29441
29449
  allowBlindAndBuriedVias?: boolean | undefined;
29450
+ defaultViaTenting?: boolean | "both_sides" | "top_and_bottom_tented" | "top_tented" | "bottom_tented" | "exposed" | undefined;
29442
29451
  borderRadius?: string | number | undefined;
29443
29452
  boardAnchorPosition?: {
29444
29453
  x: string | number;
@@ -102706,9 +102715,11 @@ declare const stampboardProps: z.ZodObject<{
102706
102715
  schPack: z.ZodOptional<z.ZodBoolean>;
102707
102716
  schMatchAdapt: z.ZodOptional<z.ZodBoolean>;
102708
102717
  } & {
102718
+ fabricatorPreset: z.ZodOptional<z.ZodEnum<["jlcpcb_economy", "jlcpcb_standard", "jlcpcb_economy_20260912", "jlcpcb_standard_20260912"]>>;
102709
102719
  material: z.ZodDefault<z.ZodEnum<["fr4", "fr1", "flex"]>>;
102710
102720
  layers: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>, z.ZodLiteral<6>, z.ZodLiteral<8>, z.ZodLiteral<10>]>>;
102711
102721
  allowBlindAndBuriedVias: z.ZodDefault<z.ZodBoolean>;
102722
+ defaultViaTenting: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["both_sides", "top_and_bottom_tented", "top_tented", "bottom_tented", "exposed"]>]>, "top_and_bottom_tented" | "top_tented" | "bottom_tented" | "exposed", boolean | "both_sides" | "top_and_bottom_tented" | "top_tented" | "bottom_tented" | "exposed">>;
102712
102723
  borderRadius: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
102713
102724
  thickness: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
102714
102725
  boardAnchorPosition: z.ZodOptional<z.ZodObject<{
@@ -103117,6 +103128,8 @@ declare const stampboardProps: z.ZodObject<{
103117
103128
  schPack?: boolean | undefined;
103118
103129
  schMatchAdapt?: boolean | undefined;
103119
103130
  title?: string | undefined;
103131
+ fabricatorPreset?: "jlcpcb_economy" | "jlcpcb_standard" | "jlcpcb_economy_20260912" | "jlcpcb_standard_20260912" | undefined;
103132
+ defaultViaTenting?: "top_and_bottom_tented" | "top_tented" | "bottom_tented" | "exposed" | undefined;
103120
103133
  borderRadius?: number | undefined;
103121
103134
  boardAnchorPosition?: {
103122
103135
  x: number;
@@ -103472,8 +103485,10 @@ declare const stampboardProps: z.ZodObject<{
103472
103485
  schPack?: boolean | undefined;
103473
103486
  schMatchAdapt?: boolean | undefined;
103474
103487
  title?: string | undefined;
103488
+ fabricatorPreset?: "jlcpcb_economy" | "jlcpcb_standard" | "jlcpcb_economy_20260912" | "jlcpcb_standard_20260912" | undefined;
103475
103489
  material?: "flex" | "fr4" | "fr1" | undefined;
103476
103490
  allowBlindAndBuriedVias?: boolean | undefined;
103491
+ defaultViaTenting?: boolean | "both_sides" | "top_and_bottom_tented" | "top_tented" | "bottom_tented" | "exposed" | undefined;
103477
103492
  borderRadius?: string | number | undefined;
103478
103493
  boardAnchorPosition?: {
103479
103494
  x: string | number;
@@ -190116,6 +190131,7 @@ interface ViaProps extends CommonLayoutProps {
190116
190131
  outerDiameter?: number | string;
190117
190132
  connectsTo?: string | string[];
190118
190133
  netIsAssignable?: boolean;
190134
+ tented?: boolean | "both_sides" | "top_and_bottom_tented" | "top_tented" | "bottom_tented" | "exposed";
190119
190135
  }
190120
190136
  declare const viaProps: z.ZodObject<{
190121
190137
  pcbX: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>]>>;
@@ -190237,6 +190253,7 @@ declare const viaProps: z.ZodObject<{
190237
190253
  }>, "many">>;
190238
190254
  connectsTo: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
190239
190255
  netIsAssignable: z.ZodOptional<z.ZodBoolean>;
190256
+ tented: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["both_sides", "top_and_bottom_tented", "top_tented", "bottom_tented", "exposed"]>]>, "top_and_bottom_tented" | "top_tented" | "bottom_tented" | "exposed", boolean | "both_sides" | "top_and_bottom_tented" | "top_tented" | "bottom_tented" | "exposed">>;
190240
190257
  }, "strip", z.ZodTypeAny, {
190241
190258
  symbol?: SymbolProp | undefined;
190242
190259
  name?: string | undefined;
@@ -190294,6 +190311,7 @@ declare const viaProps: z.ZodObject<{
190294
190311
  holeDiameter?: number | undefined;
190295
190312
  outerDiameter?: number | undefined;
190296
190313
  netIsAssignable?: boolean | undefined;
190314
+ tented?: "top_and_bottom_tented" | "top_tented" | "bottom_tented" | "exposed" | undefined;
190297
190315
  }, {
190298
190316
  symbol?: SymbolProp | undefined;
190299
190317
  name?: string | undefined;
@@ -190359,6 +190377,7 @@ declare const viaProps: z.ZodObject<{
190359
190377
  holeDiameter?: string | number | undefined;
190360
190378
  outerDiameter?: string | number | undefined;
190361
190379
  netIsAssignable?: boolean | undefined;
190380
+ tented?: boolean | "both_sides" | "top_and_bottom_tented" | "top_tented" | "bottom_tented" | "exposed" | undefined;
190362
190381
  }>;
190363
190382
  type InferredViaProps = z.input<typeof viaProps>;
190364
190383
 
package/dist/index.js CHANGED
@@ -16689,6 +16689,14 @@ var boardOutlinePoint = z44.object({
16689
16689
  }
16690
16690
  });
16691
16691
  var boardProps = subcircuitGroupProps.omit({ connections: true }).extend({
16692
+ fabricatorPreset: z44.enum([
16693
+ "jlcpcb_economy",
16694
+ "jlcpcb_standard",
16695
+ "jlcpcb_economy_20260912",
16696
+ "jlcpcb_standard_20260912"
16697
+ ]).optional().describe(
16698
+ "Fabricator preset, preserved as supplied. Omitted leaves the preset unset."
16699
+ ),
16692
16700
  material: z44.enum(["fr4", "fr1", "flex"]).default("fr4"),
16693
16701
  layers: z44.union([
16694
16702
  z44.literal(1),
@@ -16701,6 +16709,22 @@ var boardProps = subcircuitGroupProps.omit({ connections: true }).extend({
16701
16709
  allowBlindAndBuriedVias: z44.boolean().default(false).describe(
16702
16710
  "Whether the autorouter may generate blind and buried vias. Defaults to false, which restricts newly generated vias to the full board stack."
16703
16711
  ),
16712
+ defaultViaTenting: z44.union([
16713
+ z44.boolean(),
16714
+ z44.enum([
16715
+ "both_sides",
16716
+ "top_and_bottom_tented",
16717
+ "top_tented",
16718
+ "bottom_tented",
16719
+ "exposed"
16720
+ ])
16721
+ ]).transform((value) => {
16722
+ if (value === true || value === "both_sides") {
16723
+ return "top_and_bottom_tented";
16724
+ }
16725
+ if (value === false) return "exposed";
16726
+ return value;
16727
+ }).optional(),
16704
16728
  borderRadius: distance.optional(),
16705
16729
  thickness: distance.optional(),
16706
16730
  boardAnchorPosition: point.optional(),
@@ -18479,7 +18503,23 @@ var viaProps = commonLayoutProps.extend({
18479
18503
  outerDiameter: distance26.optional(),
18480
18504
  layers: z107.array(layer_ref9).optional(),
18481
18505
  connectsTo: z107.string().or(z107.array(z107.string())).optional(),
18482
- netIsAssignable: z107.boolean().optional()
18506
+ netIsAssignable: z107.boolean().optional(),
18507
+ tented: z107.union([
18508
+ z107.boolean(),
18509
+ z107.enum([
18510
+ "both_sides",
18511
+ "top_and_bottom_tented",
18512
+ "top_tented",
18513
+ "bottom_tented",
18514
+ "exposed"
18515
+ ])
18516
+ ]).transform((value) => {
18517
+ if (value === true || value === "both_sides") {
18518
+ return "top_and_bottom_tented";
18519
+ }
18520
+ if (value === false) return "exposed";
18521
+ return value;
18522
+ }).optional()
18483
18523
  });
18484
18524
  expectTypesMatch(true);
18485
18525