@tscircuit/props 0.0.397 → 0.0.399
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 +3 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/lib/components/board.ts +3 -0
- package/lib/components/footprint.ts +2 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -236,6 +236,8 @@ export interface BoardProps
|
|
|
236
236
|
bottomSilkscreenColor?: BoardColor;
|
|
237
237
|
/** Whether the board should be assembled on both sides */
|
|
238
238
|
doubleSidedAssembly?: boolean;
|
|
239
|
+
/** Whether this board should be omitted from the schematic view */
|
|
240
|
+
schematicDisabled?: boolean;
|
|
239
241
|
}
|
|
240
242
|
```
|
|
241
243
|
|
|
@@ -579,6 +581,7 @@ export interface FabricationNoteTextProps extends PcbLayoutProps {
|
|
|
579
581
|
|
|
580
582
|
```ts
|
|
581
583
|
export interface FootprintProps {
|
|
584
|
+
children?: any;
|
|
582
585
|
/**
|
|
583
586
|
* The layer that the footprint is designed for. If you set this to "top"
|
|
584
587
|
* then it means the children were intended to represent the top layer. If
|
package/dist/index.d.ts
CHANGED
|
@@ -11434,6 +11434,8 @@ interface BoardProps extends Omit<SubcircuitGroupProps, "subcircuit" | "connecti
|
|
|
11434
11434
|
bottomSilkscreenColor?: BoardColor;
|
|
11435
11435
|
/** Whether the board should be assembled on both sides */
|
|
11436
11436
|
doubleSidedAssembly?: boolean;
|
|
11437
|
+
/** Whether this board should be omitted from the schematic view */
|
|
11438
|
+
schematicDisabled?: boolean;
|
|
11437
11439
|
}
|
|
11438
11440
|
declare const boardProps: z.ZodObject<Omit<{
|
|
11439
11441
|
pcbX: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
@@ -12161,6 +12163,7 @@ declare const boardProps: z.ZodObject<Omit<{
|
|
|
12161
12163
|
topSilkscreenColor: z.ZodOptional<z.ZodType<BoardColor, z.ZodTypeDef, BoardColor>>;
|
|
12162
12164
|
bottomSilkscreenColor: z.ZodOptional<z.ZodType<BoardColor, z.ZodTypeDef, BoardColor>>;
|
|
12163
12165
|
doubleSidedAssembly: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
12166
|
+
schematicDisabled: z.ZodOptional<z.ZodBoolean>;
|
|
12164
12167
|
}, "strip", z.ZodTypeAny, {
|
|
12165
12168
|
material: "fr4" | "fr1";
|
|
12166
12169
|
layers: 2 | 4;
|
|
@@ -12466,6 +12469,7 @@ declare const boardProps: z.ZodObject<Omit<{
|
|
|
12466
12469
|
silkscreenColor?: BoardColor | undefined;
|
|
12467
12470
|
topSilkscreenColor?: BoardColor | undefined;
|
|
12468
12471
|
bottomSilkscreenColor?: BoardColor | undefined;
|
|
12472
|
+
schematicDisabled?: boolean | undefined;
|
|
12469
12473
|
}, {
|
|
12470
12474
|
symbol?: SymbolProp | undefined;
|
|
12471
12475
|
key?: any;
|
|
@@ -12775,6 +12779,7 @@ declare const boardProps: z.ZodObject<Omit<{
|
|
|
12775
12779
|
topSilkscreenColor?: BoardColor | undefined;
|
|
12776
12780
|
bottomSilkscreenColor?: BoardColor | undefined;
|
|
12777
12781
|
doubleSidedAssembly?: boolean | undefined;
|
|
12782
|
+
schematicDisabled?: boolean | undefined;
|
|
12778
12783
|
}>;
|
|
12779
12784
|
|
|
12780
12785
|
interface PanelProps extends BaseGroupProps {
|
|
@@ -31122,6 +31127,7 @@ declare const stampboardProps: z.ZodObject<Omit<{
|
|
|
31122
31127
|
topSilkscreenColor: z.ZodOptional<z.ZodType<BoardColor, z.ZodTypeDef, BoardColor>>;
|
|
31123
31128
|
bottomSilkscreenColor: z.ZodOptional<z.ZodType<BoardColor, z.ZodTypeDef, BoardColor>>;
|
|
31124
31129
|
doubleSidedAssembly: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
31130
|
+
schematicDisabled: z.ZodOptional<z.ZodBoolean>;
|
|
31125
31131
|
} & {
|
|
31126
31132
|
leftPinCount: z.ZodOptional<z.ZodNumber>;
|
|
31127
31133
|
rightPinCount: z.ZodOptional<z.ZodNumber>;
|
|
@@ -31442,6 +31448,7 @@ declare const stampboardProps: z.ZodObject<Omit<{
|
|
|
31442
31448
|
silkscreenColor?: BoardColor | undefined;
|
|
31443
31449
|
topSilkscreenColor?: BoardColor | undefined;
|
|
31444
31450
|
bottomSilkscreenColor?: BoardColor | undefined;
|
|
31451
|
+
schematicDisabled?: boolean | undefined;
|
|
31445
31452
|
leftPins?: string[] | undefined;
|
|
31446
31453
|
rightPins?: string[] | undefined;
|
|
31447
31454
|
topPins?: string[] | undefined;
|
|
@@ -31761,6 +31768,7 @@ declare const stampboardProps: z.ZodObject<Omit<{
|
|
|
31761
31768
|
topSilkscreenColor?: BoardColor | undefined;
|
|
31762
31769
|
bottomSilkscreenColor?: BoardColor | undefined;
|
|
31763
31770
|
doubleSidedAssembly?: boolean | undefined;
|
|
31771
|
+
schematicDisabled?: boolean | undefined;
|
|
31764
31772
|
leftPins?: string[] | undefined;
|
|
31765
31773
|
rightPins?: string[] | undefined;
|
|
31766
31774
|
topPins?: string[] | undefined;
|
|
@@ -36320,6 +36328,7 @@ declare const traceProps: z.ZodUnion<[z.ZodObject<{
|
|
|
36320
36328
|
type TraceProps = z.input<typeof traceProps>;
|
|
36321
36329
|
|
|
36322
36330
|
interface FootprintProps {
|
|
36331
|
+
children?: any;
|
|
36323
36332
|
/**
|
|
36324
36333
|
* The layer that the footprint is designed for. If you set this to "top"
|
|
36325
36334
|
* then it means the children were intended to represent the top layer. If
|
|
@@ -36333,6 +36342,7 @@ interface FootprintProps {
|
|
|
36333
36342
|
originalLayer?: LayerRef;
|
|
36334
36343
|
}
|
|
36335
36344
|
declare const footprintProps: z.ZodObject<{
|
|
36345
|
+
children: z.ZodOptional<z.ZodAny>;
|
|
36336
36346
|
originalLayer: z.ZodOptional<z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6"]>, z.ZodObject<{
|
|
36337
36347
|
name: z.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6"]>;
|
|
36338
36348
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -36343,8 +36353,10 @@ declare const footprintProps: z.ZodObject<{
|
|
|
36343
36353
|
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
36344
36354
|
}>>>;
|
|
36345
36355
|
}, "strip", z.ZodTypeAny, {
|
|
36356
|
+
children?: any;
|
|
36346
36357
|
originalLayer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | undefined;
|
|
36347
36358
|
}, {
|
|
36359
|
+
children?: any;
|
|
36348
36360
|
originalLayer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
|
|
36349
36361
|
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
36350
36362
|
} | undefined;
|
package/dist/index.js
CHANGED
|
@@ -690,7 +690,8 @@ var boardProps = subcircuitGroupProps.omit({ connections: true }).extend({
|
|
|
690
690
|
silkscreenColor: boardColor.optional(),
|
|
691
691
|
topSilkscreenColor: boardColor.optional(),
|
|
692
692
|
bottomSilkscreenColor: boardColor.optional(),
|
|
693
|
-
doubleSidedAssembly: z29.boolean().optional().default(false)
|
|
693
|
+
doubleSidedAssembly: z29.boolean().optional().default(false),
|
|
694
|
+
schematicDisabled: z29.boolean().optional()
|
|
694
695
|
});
|
|
695
696
|
expectTypesMatch(true);
|
|
696
697
|
|
|
@@ -1252,6 +1253,7 @@ var traceProps = z51.union([
|
|
|
1252
1253
|
import { layer_ref as layer_ref4 } from "circuit-json";
|
|
1253
1254
|
import { z as z52 } from "zod";
|
|
1254
1255
|
var footprintProps = z52.object({
|
|
1256
|
+
children: z52.any().optional(),
|
|
1255
1257
|
originalLayer: layer_ref4.default("top").optional()
|
|
1256
1258
|
});
|
|
1257
1259
|
expectTypesMatch(true);
|