@tscircuit/props 0.0.505 → 0.0.506
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 +5 -0
- package/dist/index.d.ts +20 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/lib/components/chip.ts +11 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -379,6 +379,11 @@ export interface ChipPropsSU<
|
|
|
379
379
|
noSchematicRepresentation?: boolean;
|
|
380
380
|
internallyConnectedPins?: (string | number)[][];
|
|
381
381
|
externallyConnectedPins?: string[][];
|
|
382
|
+
/**
|
|
383
|
+
* Pins intentionally left unconnected. This is a shorthand for marking
|
|
384
|
+
* those pins as do-not-connect without repeating pinAttributes entries.
|
|
385
|
+
*/
|
|
386
|
+
noConnect?: readonly PinLabel[] | PinLabel[];
|
|
382
387
|
connections?: Connections<PinLabel>;
|
|
383
388
|
}
|
|
384
389
|
```
|
package/dist/index.d.ts
CHANGED
|
@@ -29331,6 +29331,11 @@ interface ChipPropsSU<PinLabel extends SchematicPinLabel = SchematicPinLabel> ex
|
|
|
29331
29331
|
noSchematicRepresentation?: boolean;
|
|
29332
29332
|
internallyConnectedPins?: (string | number)[][];
|
|
29333
29333
|
externallyConnectedPins?: string[][];
|
|
29334
|
+
/**
|
|
29335
|
+
* Pins intentionally left unconnected. This is a shorthand for marking
|
|
29336
|
+
* those pins as do-not-connect without repeating pinAttributes entries.
|
|
29337
|
+
*/
|
|
29338
|
+
noConnect?: readonly PinLabel[] | PinLabel[];
|
|
29334
29339
|
connections?: Connections<PinLabel>;
|
|
29335
29340
|
}
|
|
29336
29341
|
type ChipProps<PinLabelMap extends PinLabelsProp | string = string> = ChipPropsSU<PinLabelMap extends PinLabelsProp ? PinLabelFromPinLabelMap<PinLabelMap> | keyof PinLabelMap : PinLabelMap>;
|
|
@@ -33025,6 +33030,7 @@ declare const chipProps: z.ZodObject<{
|
|
|
33025
33030
|
schWidth: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
33026
33031
|
schHeight: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
33027
33032
|
noSchematicRepresentation: z.ZodOptional<z.ZodBoolean>;
|
|
33033
|
+
noConnect: z.ZodOptional<z.ZodUnion<[z.ZodReadonly<z.ZodArray<z.ZodString, "many">>, z.ZodArray<z.ZodString, "many">]>>;
|
|
33028
33034
|
connections: z.ZodOptional<z.ZodPipeline<z.ZodType<Partial<Record<string, string | string[] | readonly string[]>>, z.ZodTypeDef, Partial<Record<string, string | string[] | readonly string[]>>>, z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodReadonly<z.ZodArray<z.ZodString, "many">>]>, z.ZodArray<z.ZodString, "many">]>>>>;
|
|
33029
33035
|
}, "strip", z.ZodTypeAny, {
|
|
33030
33036
|
name: string;
|
|
@@ -33678,6 +33684,7 @@ declare const chipProps: z.ZodObject<{
|
|
|
33678
33684
|
supplierPartNumber?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
|
|
33679
33685
|
}[] | undefined;
|
|
33680
33686
|
noSchematicRepresentation?: boolean | undefined;
|
|
33687
|
+
noConnect?: readonly string[] | string[] | undefined;
|
|
33681
33688
|
}, {
|
|
33682
33689
|
name: string;
|
|
33683
33690
|
symbol?: SymbolProp | undefined;
|
|
@@ -34332,6 +34339,7 @@ declare const chipProps: z.ZodObject<{
|
|
|
34332
34339
|
supplierPartNumber?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
|
|
34333
34340
|
}[] | undefined;
|
|
34334
34341
|
noSchematicRepresentation?: boolean | undefined;
|
|
34342
|
+
noConnect?: readonly string[] | string[] | undefined;
|
|
34335
34343
|
}>;
|
|
34336
34344
|
/**
|
|
34337
34345
|
* @deprecated Use ChipProps instead.
|
|
@@ -37987,6 +37995,7 @@ declare const bugProps: z.ZodObject<{
|
|
|
37987
37995
|
schWidth: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
37988
37996
|
schHeight: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
37989
37997
|
noSchematicRepresentation: z.ZodOptional<z.ZodBoolean>;
|
|
37998
|
+
noConnect: z.ZodOptional<z.ZodUnion<[z.ZodReadonly<z.ZodArray<z.ZodString, "many">>, z.ZodArray<z.ZodString, "many">]>>;
|
|
37990
37999
|
connections: z.ZodOptional<z.ZodPipeline<z.ZodType<Partial<Record<string, string | string[] | readonly string[]>>, z.ZodTypeDef, Partial<Record<string, string | string[] | readonly string[]>>>, z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodReadonly<z.ZodArray<z.ZodString, "many">>]>, z.ZodArray<z.ZodString, "many">]>>>>;
|
|
37991
38000
|
}, "strip", z.ZodTypeAny, {
|
|
37992
38001
|
name: string;
|
|
@@ -38640,6 +38649,7 @@ declare const bugProps: z.ZodObject<{
|
|
|
38640
38649
|
supplierPartNumber?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
|
|
38641
38650
|
}[] | undefined;
|
|
38642
38651
|
noSchematicRepresentation?: boolean | undefined;
|
|
38652
|
+
noConnect?: readonly string[] | string[] | undefined;
|
|
38643
38653
|
}, {
|
|
38644
38654
|
name: string;
|
|
38645
38655
|
symbol?: SymbolProp | undefined;
|
|
@@ -39294,6 +39304,7 @@ declare const bugProps: z.ZodObject<{
|
|
|
39294
39304
|
supplierPartNumber?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
|
|
39295
39305
|
}[] | undefined;
|
|
39296
39306
|
noSchematicRepresentation?: boolean | undefined;
|
|
39307
|
+
noConnect?: readonly string[] | string[] | undefined;
|
|
39297
39308
|
}>;
|
|
39298
39309
|
type InferredChipProps = z.input<typeof chipProps>;
|
|
39299
39310
|
|
|
@@ -42948,6 +42959,7 @@ declare const pinoutProps: z.ZodObject<{
|
|
|
42948
42959
|
schWidth: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
42949
42960
|
schHeight: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
42950
42961
|
noSchematicRepresentation: z.ZodOptional<z.ZodBoolean>;
|
|
42962
|
+
noConnect: z.ZodOptional<z.ZodUnion<[z.ZodReadonly<z.ZodArray<z.ZodString, "many">>, z.ZodArray<z.ZodString, "many">]>>;
|
|
42951
42963
|
connections: z.ZodOptional<z.ZodPipeline<z.ZodType<Partial<Record<string, string | string[] | readonly string[]>>, z.ZodTypeDef, Partial<Record<string, string | string[] | readonly string[]>>>, z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodReadonly<z.ZodArray<z.ZodString, "many">>]>, z.ZodArray<z.ZodString, "many">]>>>>;
|
|
42952
42964
|
}, "strip", z.ZodTypeAny, {
|
|
42953
42965
|
name: string;
|
|
@@ -43601,6 +43613,7 @@ declare const pinoutProps: z.ZodObject<{
|
|
|
43601
43613
|
supplierPartNumber?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
|
|
43602
43614
|
}[] | undefined;
|
|
43603
43615
|
noSchematicRepresentation?: boolean | undefined;
|
|
43616
|
+
noConnect?: readonly string[] | string[] | undefined;
|
|
43604
43617
|
}, {
|
|
43605
43618
|
name: string;
|
|
43606
43619
|
symbol?: SymbolProp | undefined;
|
|
@@ -44255,6 +44268,7 @@ declare const pinoutProps: z.ZodObject<{
|
|
|
44255
44268
|
supplierPartNumber?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
|
|
44256
44269
|
}[] | undefined;
|
|
44257
44270
|
noSchematicRepresentation?: boolean | undefined;
|
|
44271
|
+
noConnect?: readonly string[] | string[] | undefined;
|
|
44258
44272
|
}>;
|
|
44259
44273
|
interface PinoutProps<PinLabelMap extends PinLabelsProp | string = string> extends ChipProps<PinLabelMap> {
|
|
44260
44274
|
}
|
|
@@ -57842,6 +57856,7 @@ declare const connectorProps: z.ZodObject<{
|
|
|
57842
57856
|
schWidth: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
57843
57857
|
schHeight: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
57844
57858
|
noSchematicRepresentation: z.ZodOptional<z.ZodBoolean>;
|
|
57859
|
+
noConnect: z.ZodOptional<z.ZodUnion<[z.ZodReadonly<z.ZodArray<z.ZodString, "many">>, z.ZodArray<z.ZodString, "many">]>>;
|
|
57845
57860
|
connections: z.ZodOptional<z.ZodPipeline<z.ZodType<Partial<Record<string, string | string[] | readonly string[]>>, z.ZodTypeDef, Partial<Record<string, string | string[] | readonly string[]>>>, z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodReadonly<z.ZodArray<z.ZodString, "many">>]>, z.ZodArray<z.ZodString, "many">]>>>>;
|
|
57846
57861
|
} & {
|
|
57847
57862
|
standard: z.ZodOptional<z.ZodEnum<["usb_c", "m2"]>>;
|
|
@@ -58497,6 +58512,7 @@ declare const connectorProps: z.ZodObject<{
|
|
|
58497
58512
|
supplierPartNumber?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
|
|
58498
58513
|
}[] | undefined;
|
|
58499
58514
|
noSchematicRepresentation?: boolean | undefined;
|
|
58515
|
+
noConnect?: readonly string[] | string[] | undefined;
|
|
58500
58516
|
standard?: "usb_c" | "m2" | undefined;
|
|
58501
58517
|
}, {
|
|
58502
58518
|
name: string;
|
|
@@ -59152,6 +59168,7 @@ declare const connectorProps: z.ZodObject<{
|
|
|
59152
59168
|
supplierPartNumber?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
|
|
59153
59169
|
}[] | undefined;
|
|
59154
59170
|
noSchematicRepresentation?: boolean | undefined;
|
|
59171
|
+
noConnect?: readonly string[] | string[] | undefined;
|
|
59155
59172
|
standard?: "usb_c" | "m2" | undefined;
|
|
59156
59173
|
}>;
|
|
59157
59174
|
|
|
@@ -118199,6 +118216,7 @@ declare const pushButtonProps: z.ZodObject<{
|
|
|
118199
118216
|
schWidth: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
118200
118217
|
schHeight: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
118201
118218
|
noSchematicRepresentation: z.ZodOptional<z.ZodBoolean>;
|
|
118219
|
+
noConnect: z.ZodOptional<z.ZodUnion<[z.ZodReadonly<z.ZodArray<z.ZodString, "many">>, z.ZodArray<z.ZodString, "many">]>>;
|
|
118202
118220
|
connections: z.ZodOptional<z.ZodPipeline<z.ZodType<Partial<Record<string, string | string[] | readonly string[]>>, z.ZodTypeDef, Partial<Record<string, string | string[] | readonly string[]>>>, z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodReadonly<z.ZodArray<z.ZodString, "many">>]>, z.ZodArray<z.ZodString, "many">]>>>>;
|
|
118203
118221
|
}, "strip", z.ZodTypeAny, {
|
|
118204
118222
|
name: string;
|
|
@@ -118852,6 +118870,7 @@ declare const pushButtonProps: z.ZodObject<{
|
|
|
118852
118870
|
supplierPartNumber?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
|
|
118853
118871
|
}[] | undefined;
|
|
118854
118872
|
noSchematicRepresentation?: boolean | undefined;
|
|
118873
|
+
noConnect?: readonly string[] | string[] | undefined;
|
|
118855
118874
|
}, {
|
|
118856
118875
|
name: string;
|
|
118857
118876
|
symbol?: SymbolProp | undefined;
|
|
@@ -119506,6 +119525,7 @@ declare const pushButtonProps: z.ZodObject<{
|
|
|
119506
119525
|
supplierPartNumber?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
|
|
119507
119526
|
}[] | undefined;
|
|
119508
119527
|
noSchematicRepresentation?: boolean | undefined;
|
|
119528
|
+
noConnect?: readonly string[] | string[] | undefined;
|
|
119509
119529
|
}>;
|
|
119510
119530
|
|
|
119511
119531
|
type SubcircuitProps = SubcircuitGroupProps;
|
package/dist/index.js
CHANGED
|
@@ -16516,6 +16516,7 @@ expectTypesMatch(true);
|
|
|
16516
16516
|
import { distance as distance13, supplier_name as supplier_name2 } from "circuit-json";
|
|
16517
16517
|
import { z as z41 } from "zod";
|
|
16518
16518
|
var connectionTarget2 = z41.string().or(z41.array(z41.string()).readonly()).or(z41.array(z41.string()));
|
|
16519
|
+
var noConnectProp = z41.array(schematicPinLabel).readonly().or(z41.array(schematicPinLabel));
|
|
16519
16520
|
var connectionsProp = z41.custom().pipe(z41.record(z41.string(), connectionTarget2));
|
|
16520
16521
|
var pinLabelsProp = z41.record(
|
|
16521
16522
|
schematicPinLabel,
|
|
@@ -16541,6 +16542,7 @@ var chipProps = commonComponentProps.extend({
|
|
|
16541
16542
|
schWidth: distance13.optional(),
|
|
16542
16543
|
schHeight: distance13.optional(),
|
|
16543
16544
|
noSchematicRepresentation: z41.boolean().optional(),
|
|
16545
|
+
noConnect: noConnectProp.optional(),
|
|
16544
16546
|
connections: connectionsProp.optional()
|
|
16545
16547
|
});
|
|
16546
16548
|
var bugProps = chipProps;
|