@tscircuit/props 0.0.416 → 0.0.417

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
@@ -218,7 +218,7 @@ export interface BoardProps
218
218
  title?: string;
219
219
  material?: "fr4" | "fr1";
220
220
  /** Number of layers for the PCB */
221
- layers?: 1 | 2 | 4;
221
+ layers?: 1 | 2 | 4 | 6 | 8;
222
222
  borderRadius?: Distance;
223
223
  thickness?: Distance;
224
224
  boardAnchorPosition?: Point;
package/dist/index.d.ts CHANGED
@@ -11444,7 +11444,7 @@ interface BoardProps extends Omit<SubcircuitGroupProps, "subcircuit" | "connecti
11444
11444
  title?: string;
11445
11445
  material?: "fr4" | "fr1";
11446
11446
  /** Number of layers for the PCB */
11447
- layers?: 1 | 2 | 4;
11447
+ layers?: 1 | 2 | 4 | 6 | 8;
11448
11448
  borderRadius?: Distance;
11449
11449
  thickness?: Distance;
11450
11450
  boardAnchorPosition?: Point;
@@ -12170,7 +12170,7 @@ declare const boardProps: z.ZodObject<Omit<{
12170
12170
  circuitJson: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
12171
12171
  }, "connections"> & {
12172
12172
  material: z.ZodDefault<z.ZodEnum<["fr4", "fr1"]>>;
12173
- layers: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>]>>;
12173
+ layers: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>, z.ZodLiteral<6>, z.ZodLiteral<8>]>>;
12174
12174
  borderRadius: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
12175
12175
  thickness: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
12176
12176
  boardAnchorPosition: z.ZodOptional<z.ZodObject<{
@@ -12195,7 +12195,7 @@ declare const boardProps: z.ZodObject<Omit<{
12195
12195
  schematicDisabled: z.ZodOptional<z.ZodBoolean>;
12196
12196
  }, "strip", z.ZodTypeAny, {
12197
12197
  material: "fr4" | "fr1";
12198
- layers: 1 | 2 | 4;
12198
+ layers: 1 | 2 | 4 | 6 | 8;
12199
12199
  doubleSidedAssembly: boolean;
12200
12200
  symbol?: SymbolProp | undefined;
12201
12201
  key?: any;
@@ -12793,7 +12793,7 @@ declare const boardProps: z.ZodObject<Omit<{
12793
12793
  circuitJson?: any[] | undefined;
12794
12794
  title?: string | undefined;
12795
12795
  material?: "fr4" | "fr1" | undefined;
12796
- layers?: 1 | 2 | 4 | undefined;
12796
+ layers?: 1 | 2 | 4 | 6 | 8 | undefined;
12797
12797
  borderRadius?: string | number | undefined;
12798
12798
  thickness?: string | number | undefined;
12799
12799
  boardAnchorPosition?: {
@@ -32639,7 +32639,7 @@ declare const stampboardProps: z.ZodObject<Omit<{
32639
32639
  circuitJson: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
32640
32640
  }, "connections"> & {
32641
32641
  material: z.ZodDefault<z.ZodEnum<["fr4", "fr1"]>>;
32642
- layers: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>]>>;
32642
+ layers: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>, z.ZodLiteral<6>, z.ZodLiteral<8>]>>;
32643
32643
  borderRadius: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
32644
32644
  thickness: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
32645
32645
  boardAnchorPosition: z.ZodOptional<z.ZodObject<{
@@ -32675,7 +32675,7 @@ declare const stampboardProps: z.ZodObject<Omit<{
32675
32675
  innerHoles: z.ZodOptional<z.ZodBoolean>;
32676
32676
  }, "strip", z.ZodTypeAny, {
32677
32677
  material: "fr4" | "fr1";
32678
- layers: 1 | 2 | 4;
32678
+ layers: 1 | 2 | 4 | 6 | 8;
32679
32679
  doubleSidedAssembly: boolean;
32680
32680
  symbol?: SymbolProp | undefined;
32681
32681
  key?: any;
@@ -33287,7 +33287,7 @@ declare const stampboardProps: z.ZodObject<Omit<{
33287
33287
  circuitJson?: any[] | undefined;
33288
33288
  title?: string | undefined;
33289
33289
  material?: "fr4" | "fr1" | undefined;
33290
- layers?: 1 | 2 | 4 | undefined;
33290
+ layers?: 1 | 2 | 4 | 6 | 8 | undefined;
33291
33291
  borderRadius?: string | number | undefined;
33292
33292
  thickness?: string | number | undefined;
33293
33293
  boardAnchorPosition?: {
package/dist/index.js CHANGED
@@ -708,7 +708,13 @@ expectTypesMatch(true);
708
708
  var boardColor = z29.custom((value) => typeof value === "string");
709
709
  var boardProps = subcircuitGroupProps.omit({ connections: true }).extend({
710
710
  material: z29.enum(["fr4", "fr1"]).default("fr4"),
711
- layers: z29.union([z29.literal(1), z29.literal(2), z29.literal(4)]).default(2),
711
+ layers: z29.union([
712
+ z29.literal(1),
713
+ z29.literal(2),
714
+ z29.literal(4),
715
+ z29.literal(6),
716
+ z29.literal(8)
717
+ ]).default(2),
712
718
  borderRadius: distance.optional(),
713
719
  thickness: distance.optional(),
714
720
  boardAnchorPosition: point.optional(),