@tscircuit/props 0.0.469 → 0.0.471

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
@@ -678,6 +678,10 @@ export interface FootprintProps {
678
678
  * Serialized circuit JSON describing a precompiled footprint
679
679
  */
680
680
  circuitJson?: any[];
681
+ /**
682
+ * Can be a footprint or kicad string
683
+ */
684
+ src?: FootprintProp;
681
685
  }
682
686
  ```
683
687
 
@@ -1489,7 +1493,7 @@ export interface SchematicPathProps {
1489
1493
  strokeWidth?: Distance;
1490
1494
  strokeColor?: string;
1491
1495
  isFilled?: boolean;
1492
- fillColor?: "red" | "blue";
1496
+ fillColor?: string;
1493
1497
  }
1494
1498
  ```
1495
1499
 
package/dist/index.d.ts CHANGED
@@ -94930,6 +94930,10 @@ interface FootprintProps {
94930
94930
  * Serialized circuit JSON describing a precompiled footprint
94931
94931
  */
94932
94932
  circuitJson?: any[];
94933
+ /**
94934
+ * Can be a footprint or kicad string
94935
+ */
94936
+ src?: FootprintProp;
94933
94937
  }
94934
94938
  declare const footprintProps: z.ZodObject<{
94935
94939
  children: z.ZodOptional<z.ZodAny>;
@@ -94943,16 +94947,19 @@ declare const footprintProps: z.ZodObject<{
94943
94947
  name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
94944
94948
  }>>>;
94945
94949
  circuitJson: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
94950
+ src: z.ZodOptional<z.ZodType<FootprintProp, z.ZodTypeDef, FootprintProp>>;
94946
94951
  }, "strip", z.ZodTypeAny, {
94947
94952
  children?: any;
94948
94953
  circuitJson?: any[] | undefined;
94949
94954
  originalLayer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | undefined;
94955
+ src?: FootprintProp | undefined;
94950
94956
  }, {
94951
94957
  children?: any;
94952
94958
  circuitJson?: any[] | undefined;
94953
94959
  originalLayer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
94954
94960
  name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
94955
94961
  } | undefined;
94962
+ src?: FootprintProp | undefined;
94956
94963
  }>;
94957
94964
  type FootprintPropsInput = z.input<typeof footprintProps>;
94958
94965
 
@@ -167443,6 +167450,7 @@ declare const portProps: z.ZodObject<{
167443
167450
  nameTextSize?: string | number | undefined;
167444
167451
  numberTextSize?: string | number | undefined;
167445
167452
  }>>;
167453
+ hasInversionCircle: z.ZodOptional<z.ZodBoolean>;
167446
167454
  }, "strip", z.ZodTypeAny, {
167447
167455
  name: string;
167448
167456
  direction: "up" | "down" | "left" | "right";
@@ -167503,6 +167511,7 @@ declare const portProps: z.ZodObject<{
167503
167511
  nameTextSize?: number | undefined;
167504
167512
  numberTextSize?: number | undefined;
167505
167513
  } | undefined;
167514
+ hasInversionCircle?: boolean | undefined;
167506
167515
  }, {
167507
167516
  name: string;
167508
167517
  direction: "up" | "down" | "left" | "right";
@@ -167565,6 +167574,7 @@ declare const portProps: z.ZodObject<{
167565
167574
  nameTextSize?: string | number | undefined;
167566
167575
  numberTextSize?: string | number | undefined;
167567
167576
  } | undefined;
167577
+ hasInversionCircle?: boolean | undefined;
167568
167578
  }>;
167569
167579
  type PortProps = z.input<typeof portProps>;
167570
167580
 
package/dist/index.js CHANGED
@@ -1661,7 +1661,8 @@ import { z as z62 } from "zod";
1661
1661
  var footprintProps = z62.object({
1662
1662
  children: z62.any().optional(),
1663
1663
  originalLayer: layer_ref5.default("top").optional(),
1664
- circuitJson: z62.array(z62.any()).optional()
1664
+ circuitJson: z62.array(z62.any()).optional(),
1665
+ src: footprintProp.describe("Can be a footprint or kicad string").optional()
1665
1666
  });
1666
1667
  expectTypesMatch(true);
1667
1668
 
@@ -2615,7 +2616,8 @@ var portProps = commonLayoutProps.extend({
2615
2616
  aliases: z116.array(z116.string()).optional(),
2616
2617
  direction,
2617
2618
  connectsTo: z116.string().or(z116.array(z116.string())).optional(),
2618
- kicadPinMetadata: kicadPinMetadata.optional()
2619
+ kicadPinMetadata: kicadPinMetadata.optional(),
2620
+ hasInversionCircle: z116.boolean().optional()
2619
2621
  });
2620
2622
 
2621
2623
  // lib/components/pcb-note-text.ts