@tscircuit/props 0.0.560 → 0.0.562
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 +2 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/lib/components/footprint.ts +2 -0
- package/lib/components/schematic-sheet.ts +2 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -725,6 +725,7 @@ export interface FiducialProps extends CommonComponentProps {
|
|
|
725
725
|
```ts
|
|
726
726
|
export interface FootprintProps {
|
|
727
727
|
children?: any;
|
|
728
|
+
name?: string;
|
|
728
729
|
/**
|
|
729
730
|
* The layer that the footprint is designed for. If you set this to "top"
|
|
730
731
|
* then it means the children were intended to represent the top layer. If
|
|
@@ -1633,6 +1634,7 @@ export interface SchematicSectionProps {
|
|
|
1633
1634
|
export interface SchematicSheetProps {
|
|
1634
1635
|
name: string;
|
|
1635
1636
|
displayName: string;
|
|
1637
|
+
sheetIndex?: number;
|
|
1636
1638
|
children?: any;
|
|
1637
1639
|
}
|
|
1638
1640
|
```
|
package/dist/index.d.ts
CHANGED
|
@@ -104337,6 +104337,7 @@ type FootprintInsertionDirection = "from_above" | "from_left" | "from_right" | "
|
|
|
104337
104337
|
declare const footprintInsertionDirection: z.ZodEnum<["from_above", "from_left", "from_right", "from_front", "from_back"]>;
|
|
104338
104338
|
interface FootprintProps {
|
|
104339
104339
|
children?: any;
|
|
104340
|
+
name?: string;
|
|
104340
104341
|
/**
|
|
104341
104342
|
* The layer that the footprint is designed for. If you set this to "top"
|
|
104342
104343
|
* then it means the children were intended to represent the top layer. If
|
|
@@ -104364,6 +104365,7 @@ interface FootprintProps {
|
|
|
104364
104365
|
}
|
|
104365
104366
|
declare const footprintProps: z.ZodObject<{
|
|
104366
104367
|
children: z.ZodOptional<z.ZodAny>;
|
|
104368
|
+
name: z.ZodOptional<z.ZodString>;
|
|
104367
104369
|
originalLayer: z.ZodOptional<z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6"]>, z.ZodObject<{
|
|
104368
104370
|
name: z.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6"]>;
|
|
104369
104371
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -104377,12 +104379,14 @@ declare const footprintProps: z.ZodObject<{
|
|
|
104377
104379
|
src: z.ZodOptional<z.ZodType<FootprintProp, z.ZodTypeDef, FootprintProp>>;
|
|
104378
104380
|
insertionDirection: z.ZodOptional<z.ZodEnum<["from_above", "from_left", "from_right", "from_front", "from_back"]>>;
|
|
104379
104381
|
}, "strip", z.ZodTypeAny, {
|
|
104382
|
+
name?: string | undefined;
|
|
104380
104383
|
children?: any;
|
|
104381
104384
|
circuitJson?: any[] | undefined;
|
|
104382
104385
|
originalLayer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | undefined;
|
|
104383
104386
|
src?: FootprintProp | undefined;
|
|
104384
104387
|
insertionDirection?: "from_above" | "from_left" | "from_right" | "from_front" | "from_back" | undefined;
|
|
104385
104388
|
}, {
|
|
104389
|
+
name?: string | undefined;
|
|
104386
104390
|
children?: any;
|
|
104387
104391
|
circuitJson?: any[] | undefined;
|
|
104388
104392
|
originalLayer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
|
|
@@ -188282,20 +188286,24 @@ type InferredSchematicSectionProps = z.input<typeof schematicSectionProps>;
|
|
|
188282
188286
|
interface SchematicSheetProps {
|
|
188283
188287
|
name: string;
|
|
188284
188288
|
displayName: string;
|
|
188289
|
+
sheetIndex?: number;
|
|
188285
188290
|
children?: any;
|
|
188286
188291
|
}
|
|
188287
188292
|
declare const schematicSheetProps: z.ZodObject<{
|
|
188288
188293
|
name: z.ZodString;
|
|
188289
188294
|
displayName: z.ZodString;
|
|
188295
|
+
sheetIndex: z.ZodOptional<z.ZodNumber>;
|
|
188290
188296
|
children: z.ZodOptional<z.ZodAny>;
|
|
188291
188297
|
}, "strip", z.ZodTypeAny, {
|
|
188292
188298
|
name: string;
|
|
188293
188299
|
displayName: string;
|
|
188294
188300
|
children?: any;
|
|
188301
|
+
sheetIndex?: number | undefined;
|
|
188295
188302
|
}, {
|
|
188296
188303
|
name: string;
|
|
188297
188304
|
displayName: string;
|
|
188298
188305
|
children?: any;
|
|
188306
|
+
sheetIndex?: number | undefined;
|
|
188299
188307
|
}>;
|
|
188300
188308
|
type InferredSchematicSheetProps = z.input<typeof schematicSheetProps>;
|
|
188301
188309
|
|
package/dist/index.js
CHANGED
|
@@ -17265,6 +17265,7 @@ var footprintInsertionDirection = z65.enum([
|
|
|
17265
17265
|
expectTypesMatch(true);
|
|
17266
17266
|
var footprintProps = z65.object({
|
|
17267
17267
|
children: z65.any().optional(),
|
|
17268
|
+
name: z65.string().optional(),
|
|
17268
17269
|
originalLayer: layer_ref5.default("top").optional(),
|
|
17269
17270
|
circuitJson: z65.array(z65.any()).optional(),
|
|
17270
17271
|
src: footprintProp.describe("Can be a footprint or kicad string").optional(),
|
|
@@ -18215,6 +18216,7 @@ import { z as z117 } from "zod";
|
|
|
18215
18216
|
var schematicSheetProps = z117.object({
|
|
18216
18217
|
name: z117.string(),
|
|
18217
18218
|
displayName: z117.string(),
|
|
18219
|
+
sheetIndex: z117.number().optional(),
|
|
18218
18220
|
children: z117.any().optional()
|
|
18219
18221
|
});
|
|
18220
18222
|
expectTypesMatch(true);
|