@tscircuit/props 0.0.654 → 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
@@ -422,6 +422,13 @@ export interface BoardProps extends Omit<
422
422
  * false, which restricts newly generated vias to the full board stack.
423
423
  */
424
424
  allowBlindAndBuriedVias?: boolean;
425
+ defaultViaTenting?:
426
+ | boolean
427
+ | "both_sides"
428
+ | "top_and_bottom_tented"
429
+ | "top_tented"
430
+ | "bottom_tented"
431
+ | "exposed";
425
432
  borderRadius?: Distance;
426
433
  thickness?: Distance;
427
434
  boardAnchorPosition?: Point;
@@ -2361,6 +2368,13 @@ export interface ViaProps extends CommonLayoutProps {
2361
2368
  outerDiameter?: number | string;
2362
2369
  connectsTo?: string | string[];
2363
2370
  netIsAssignable?: boolean;
2371
+ tented?:
2372
+ | boolean
2373
+ | "both_sides"
2374
+ | "top_and_bottom_tented"
2375
+ | "top_tented"
2376
+ | "bottom_tented"
2377
+ | "exposed";
2364
2378
  }
2365
2379
  ```
2366
2380
 
package/dist/index.d.ts CHANGED
@@ -27898,6 +27898,7 @@ interface BoardProps extends Omit<SubcircuitGroupProps, "subcircuit" | "connecti
27898
27898
  * false, which restricts newly generated vias to the full board stack.
27899
27899
  */
27900
27900
  allowBlindAndBuriedVias?: boolean;
27901
+ defaultViaTenting?: boolean | "both_sides" | "top_and_bottom_tented" | "top_tented" | "bottom_tented" | "exposed";
27901
27902
  borderRadius?: Distance;
27902
27903
  thickness?: Distance;
27903
27904
  boardAnchorPosition?: Point;
@@ -28702,6 +28703,7 @@ declare const boardProps: z.ZodObject<{
28702
28703
  material: z.ZodDefault<z.ZodEnum<["fr4", "fr1", "flex"]>>;
28703
28704
  layers: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>, z.ZodLiteral<6>, z.ZodLiteral<8>, z.ZodLiteral<10>]>>;
28704
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">>;
28705
28707
  borderRadius: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
28706
28708
  thickness: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
28707
28709
  boardAnchorPosition: z.ZodOptional<z.ZodObject<{
@@ -29096,6 +29098,7 @@ declare const boardProps: z.ZodObject<{
29096
29098
  schMatchAdapt?: boolean | undefined;
29097
29099
  title?: string | undefined;
29098
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;
29099
29102
  borderRadius?: number | undefined;
29100
29103
  boardAnchorPosition?: {
29101
29104
  x: number;
@@ -29444,6 +29447,7 @@ declare const boardProps: z.ZodObject<{
29444
29447
  fabricatorPreset?: "jlcpcb_economy" | "jlcpcb_standard" | "jlcpcb_economy_20260912" | "jlcpcb_standard_20260912" | undefined;
29445
29448
  material?: "flex" | "fr4" | "fr1" | undefined;
29446
29449
  allowBlindAndBuriedVias?: boolean | undefined;
29450
+ defaultViaTenting?: boolean | "both_sides" | "top_and_bottom_tented" | "top_tented" | "bottom_tented" | "exposed" | undefined;
29447
29451
  borderRadius?: string | number | undefined;
29448
29452
  boardAnchorPosition?: {
29449
29453
  x: string | number;
@@ -102715,6 +102719,7 @@ declare const stampboardProps: z.ZodObject<{
102715
102719
  material: z.ZodDefault<z.ZodEnum<["fr4", "fr1", "flex"]>>;
102716
102720
  layers: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>, z.ZodLiteral<6>, z.ZodLiteral<8>, z.ZodLiteral<10>]>>;
102717
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">>;
102718
102723
  borderRadius: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
102719
102724
  thickness: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
102720
102725
  boardAnchorPosition: z.ZodOptional<z.ZodObject<{
@@ -103124,6 +103129,7 @@ declare const stampboardProps: z.ZodObject<{
103124
103129
  schMatchAdapt?: boolean | undefined;
103125
103130
  title?: string | undefined;
103126
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;
103127
103133
  borderRadius?: number | undefined;
103128
103134
  boardAnchorPosition?: {
103129
103135
  x: number;
@@ -103482,6 +103488,7 @@ declare const stampboardProps: z.ZodObject<{
103482
103488
  fabricatorPreset?: "jlcpcb_economy" | "jlcpcb_standard" | "jlcpcb_economy_20260912" | "jlcpcb_standard_20260912" | undefined;
103483
103489
  material?: "flex" | "fr4" | "fr1" | undefined;
103484
103490
  allowBlindAndBuriedVias?: boolean | undefined;
103491
+ defaultViaTenting?: boolean | "both_sides" | "top_and_bottom_tented" | "top_tented" | "bottom_tented" | "exposed" | undefined;
103485
103492
  borderRadius?: string | number | undefined;
103486
103493
  boardAnchorPosition?: {
103487
103494
  x: string | number;
@@ -190124,6 +190131,7 @@ interface ViaProps extends CommonLayoutProps {
190124
190131
  outerDiameter?: number | string;
190125
190132
  connectsTo?: string | string[];
190126
190133
  netIsAssignable?: boolean;
190134
+ tented?: boolean | "both_sides" | "top_and_bottom_tented" | "top_tented" | "bottom_tented" | "exposed";
190127
190135
  }
190128
190136
  declare const viaProps: z.ZodObject<{
190129
190137
  pcbX: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>]>>;
@@ -190245,6 +190253,7 @@ declare const viaProps: z.ZodObject<{
190245
190253
  }>, "many">>;
190246
190254
  connectsTo: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
190247
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">>;
190248
190257
  }, "strip", z.ZodTypeAny, {
190249
190258
  symbol?: SymbolProp | undefined;
190250
190259
  name?: string | undefined;
@@ -190302,6 +190311,7 @@ declare const viaProps: z.ZodObject<{
190302
190311
  holeDiameter?: number | undefined;
190303
190312
  outerDiameter?: number | undefined;
190304
190313
  netIsAssignable?: boolean | undefined;
190314
+ tented?: "top_and_bottom_tented" | "top_tented" | "bottom_tented" | "exposed" | undefined;
190305
190315
  }, {
190306
190316
  symbol?: SymbolProp | undefined;
190307
190317
  name?: string | undefined;
@@ -190367,6 +190377,7 @@ declare const viaProps: z.ZodObject<{
190367
190377
  holeDiameter?: string | number | undefined;
190368
190378
  outerDiameter?: string | number | undefined;
190369
190379
  netIsAssignable?: boolean | undefined;
190380
+ tented?: boolean | "both_sides" | "top_and_bottom_tented" | "top_tented" | "bottom_tented" | "exposed" | undefined;
190370
190381
  }>;
190371
190382
  type InferredViaProps = z.input<typeof viaProps>;
190372
190383
 
package/dist/index.js CHANGED
@@ -16709,6 +16709,22 @@ var boardProps = subcircuitGroupProps.omit({ connections: true }).extend({
16709
16709
  allowBlindAndBuriedVias: z44.boolean().default(false).describe(
16710
16710
  "Whether the autorouter may generate blind and buried vias. Defaults to false, which restricts newly generated vias to the full board stack."
16711
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(),
16712
16728
  borderRadius: distance.optional(),
16713
16729
  thickness: distance.optional(),
16714
16730
  boardAnchorPosition: point.optional(),
@@ -18487,7 +18503,23 @@ var viaProps = commonLayoutProps.extend({
18487
18503
  outerDiameter: distance26.optional(),
18488
18504
  layers: z107.array(layer_ref9).optional(),
18489
18505
  connectsTo: z107.string().or(z107.array(z107.string())).optional(),
18490
- 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()
18491
18523
  });
18492
18524
  expectTypesMatch(true);
18493
18525