@tscircuit/props 0.0.515 → 0.0.516

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
@@ -228,7 +228,7 @@ export interface BoardProps extends Omit<
228
228
  "subcircuit" | "connections"
229
229
  > {
230
230
  title?: string;
231
- material?: "fr4" | "fr1";
231
+ material?: "fr4" | "fr1" | "flex";
232
232
  /** Number of layers for the PCB */
233
233
  layers?: 1 | 2 | 4 | 6 | 8;
234
234
  borderRadius?: Distance;
@@ -746,7 +746,6 @@ export interface BaseGroupProps extends CommonLayoutProps, LayoutConfig {
746
746
  schPinArrangement?: SchematicPinArrangement;
747
747
 
748
748
  /**
749
- * @deprecated Use schPinStyle instead.
750
749
  * Spacing between pins when rendered as a schematic box
751
750
  */
752
751
  schPinSpacing?: Distance;
@@ -907,7 +906,6 @@ export interface JumperProps extends CommonComponentProps {
907
906
  SchematicPinLabel | SchematicPinLabel[]
908
907
  >;
909
908
  schPinStyle?: SchematicPinStyle;
910
- /** @deprecated Use schPinStyle instead. */
911
909
  schPinSpacing?: number | string;
912
910
  schWidth?: number | string;
913
911
  schHeight?: number | string;
@@ -1287,7 +1285,6 @@ export interface PinHeaderProps extends CommonComponentProps {
1287
1285
  schPinStyle?: SchematicPinStyle;
1288
1286
 
1289
1287
  /**
1290
- * @deprecated Use schPinStyle instead.
1291
1288
  * Schematic pin spacing
1292
1289
  */
1293
1290
  schPinSpacing?: number | string;
package/dist/index.d.ts CHANGED
@@ -24233,7 +24233,7 @@ type BoardColorPreset = (typeof boardColorPresets)[number];
24233
24233
  type BoardColor = AutocompleteString<BoardColorPreset>;
24234
24234
  interface BoardProps extends Omit<SubcircuitGroupProps, "subcircuit" | "connections"> {
24235
24235
  title?: string;
24236
- material?: "fr4" | "fr1";
24236
+ material?: "fr4" | "fr1" | "flex";
24237
24237
  /** Number of layers for the PCB */
24238
24238
  layers?: 1 | 2 | 4 | 6 | 8;
24239
24239
  borderRadius?: Distance;
@@ -25020,7 +25020,7 @@ declare const boardProps: z.ZodObject<Omit<{
25020
25020
  outlineOffsetY: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
25021
25021
  circuitJson: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
25022
25022
  }, "connections"> & {
25023
- material: z.ZodDefault<z.ZodEnum<["fr4", "fr1"]>>;
25023
+ material: z.ZodDefault<z.ZodEnum<["fr4", "fr1", "flex"]>>;
25024
25024
  layers: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>, z.ZodLiteral<6>, z.ZodLiteral<8>]>>;
25025
25025
  borderRadius: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
25026
25026
  thickness: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
@@ -25047,7 +25047,7 @@ declare const boardProps: z.ZodObject<Omit<{
25047
25047
  schematicDisabled: z.ZodOptional<z.ZodBoolean>;
25048
25048
  }, "strip", z.ZodTypeAny, {
25049
25049
  layers: 1 | 2 | 4 | 6 | 8;
25050
- material: "fr4" | "fr1";
25050
+ material: "flex" | "fr4" | "fr1";
25051
25051
  doubleSidedAssembly: boolean;
25052
25052
  symbol?: SymbolProp | undefined;
25053
25053
  key?: any;
@@ -25697,7 +25697,7 @@ declare const boardProps: z.ZodObject<Omit<{
25697
25697
  outlineOffsetY?: string | number | undefined;
25698
25698
  circuitJson?: any[] | undefined;
25699
25699
  title?: string | undefined;
25700
- material?: "fr4" | "fr1" | undefined;
25700
+ material?: "flex" | "fr4" | "fr1" | undefined;
25701
25701
  borderRadius?: string | number | undefined;
25702
25702
  boardAnchorPosition?: {
25703
25703
  x: string | number;
@@ -89240,7 +89240,7 @@ declare const stampboardProps: z.ZodObject<Omit<{
89240
89240
  outlineOffsetY: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
89241
89241
  circuitJson: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
89242
89242
  }, "connections"> & {
89243
- material: z.ZodDefault<z.ZodEnum<["fr4", "fr1"]>>;
89243
+ material: z.ZodDefault<z.ZodEnum<["fr4", "fr1", "flex"]>>;
89244
89244
  layers: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>, z.ZodLiteral<6>, z.ZodLiteral<8>]>>;
89245
89245
  borderRadius: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
89246
89246
  thickness: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
@@ -89278,7 +89278,7 @@ declare const stampboardProps: z.ZodObject<Omit<{
89278
89278
  innerHoles: z.ZodOptional<z.ZodBoolean>;
89279
89279
  }, "strip", z.ZodTypeAny, {
89280
89280
  layers: 1 | 2 | 4 | 6 | 8;
89281
- material: "fr4" | "fr1";
89281
+ material: "flex" | "fr4" | "fr1";
89282
89282
  doubleSidedAssembly: boolean;
89283
89283
  symbol?: SymbolProp | undefined;
89284
89284
  key?: any;
@@ -89942,7 +89942,7 @@ declare const stampboardProps: z.ZodObject<Omit<{
89942
89942
  outlineOffsetY?: string | number | undefined;
89943
89943
  circuitJson?: any[] | undefined;
89944
89944
  title?: string | undefined;
89945
- material?: "fr4" | "fr1" | undefined;
89945
+ material?: "flex" | "fr4" | "fr1" | undefined;
89946
89946
  borderRadius?: string | number | undefined;
89947
89947
  boardAnchorPosition?: {
89948
89948
  x: string | number;
package/dist/index.js CHANGED
@@ -16445,7 +16445,7 @@ expectTypesMatch(true);
16445
16445
  // lib/components/board.ts
16446
16446
  var boardColor = z37.custom((value) => typeof value === "string");
16447
16447
  var boardProps = subcircuitGroupProps.omit({ connections: true }).extend({
16448
- material: z37.enum(["fr4", "fr1"]).default("fr4"),
16448
+ material: z37.enum(["fr4", "fr1", "flex"]).default("fr4"),
16449
16449
  layers: z37.union([
16450
16450
  z37.literal(1),
16451
16451
  z37.literal(2),