@tscircuit/props 0.0.410 → 0.0.411

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
@@ -217,7 +217,7 @@ export interface BoardProps
217
217
  title?: string;
218
218
  material?: "fr4" | "fr1";
219
219
  /** Number of layers for the PCB */
220
- layers?: 2 | 4;
220
+ layers?: 1 | 2 | 4;
221
221
  borderRadius?: Distance;
222
222
  thickness?: Distance;
223
223
  boardAnchorPosition?: Point;
package/dist/index.d.ts CHANGED
@@ -11434,7 +11434,7 @@ interface BoardProps extends Omit<SubcircuitGroupProps, "subcircuit" | "connecti
11434
11434
  title?: string;
11435
11435
  material?: "fr4" | "fr1";
11436
11436
  /** Number of layers for the PCB */
11437
- layers?: 2 | 4;
11437
+ layers?: 1 | 2 | 4;
11438
11438
  borderRadius?: Distance;
11439
11439
  thickness?: Distance;
11440
11440
  boardAnchorPosition?: Point;
@@ -12160,7 +12160,7 @@ declare const boardProps: z.ZodObject<Omit<{
12160
12160
  circuitJson: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
12161
12161
  }, "connections"> & {
12162
12162
  material: z.ZodDefault<z.ZodEnum<["fr4", "fr1"]>>;
12163
- layers: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<2>, z.ZodLiteral<4>]>>;
12163
+ layers: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>]>>;
12164
12164
  borderRadius: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
12165
12165
  thickness: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
12166
12166
  boardAnchorPosition: z.ZodOptional<z.ZodObject<{
@@ -12185,7 +12185,7 @@ declare const boardProps: z.ZodObject<Omit<{
12185
12185
  schematicDisabled: z.ZodOptional<z.ZodBoolean>;
12186
12186
  }, "strip", z.ZodTypeAny, {
12187
12187
  material: "fr4" | "fr1";
12188
- layers: 2 | 4;
12188
+ layers: 1 | 2 | 4;
12189
12189
  doubleSidedAssembly: boolean;
12190
12190
  symbol?: SymbolProp | undefined;
12191
12191
  key?: any;
@@ -12783,7 +12783,7 @@ declare const boardProps: z.ZodObject<Omit<{
12783
12783
  circuitJson?: any[] | undefined;
12784
12784
  title?: string | undefined;
12785
12785
  material?: "fr4" | "fr1" | undefined;
12786
- layers?: 2 | 4 | undefined;
12786
+ layers?: 1 | 2 | 4 | undefined;
12787
12787
  borderRadius?: string | number | undefined;
12788
12788
  thickness?: string | number | undefined;
12789
12789
  boardAnchorPosition?: {
@@ -31508,7 +31508,7 @@ declare const stampboardProps: z.ZodObject<Omit<{
31508
31508
  circuitJson: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
31509
31509
  }, "connections"> & {
31510
31510
  material: z.ZodDefault<z.ZodEnum<["fr4", "fr1"]>>;
31511
- layers: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<2>, z.ZodLiteral<4>]>>;
31511
+ layers: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>]>>;
31512
31512
  borderRadius: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
31513
31513
  thickness: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
31514
31514
  boardAnchorPosition: z.ZodOptional<z.ZodObject<{
@@ -31544,7 +31544,7 @@ declare const stampboardProps: z.ZodObject<Omit<{
31544
31544
  innerHoles: z.ZodOptional<z.ZodBoolean>;
31545
31545
  }, "strip", z.ZodTypeAny, {
31546
31546
  material: "fr4" | "fr1";
31547
- layers: 2 | 4;
31547
+ layers: 1 | 2 | 4;
31548
31548
  doubleSidedAssembly: boolean;
31549
31549
  symbol?: SymbolProp | undefined;
31550
31550
  key?: any;
@@ -32156,7 +32156,7 @@ declare const stampboardProps: z.ZodObject<Omit<{
32156
32156
  circuitJson?: any[] | undefined;
32157
32157
  title?: string | undefined;
32158
32158
  material?: "fr4" | "fr1" | undefined;
32159
- layers?: 2 | 4 | undefined;
32159
+ layers?: 1 | 2 | 4 | undefined;
32160
32160
  borderRadius?: string | number | undefined;
32161
32161
  thickness?: string | number | undefined;
32162
32162
  boardAnchorPosition?: {
package/dist/index.js CHANGED
@@ -705,7 +705,7 @@ expectTypesMatch(true);
705
705
  var boardColor = z29.custom((value) => typeof value === "string");
706
706
  var boardProps = subcircuitGroupProps.omit({ connections: true }).extend({
707
707
  material: z29.enum(["fr4", "fr1"]).default("fr4"),
708
- layers: z29.union([z29.literal(2), z29.literal(4)]).default(2),
708
+ layers: z29.union([z29.literal(1), z29.literal(2), z29.literal(4)]).default(2),
709
709
  borderRadius: distance.optional(),
710
710
  thickness: distance.optional(),
711
711
  boardAnchorPosition: point.optional(),