@tscircuit/props 0.0.504 → 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 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
@@ -17762,6 +17762,7 @@ type PartsEngine = {
17762
17762
  fetchPartCircuitJson?: (params: {
17763
17763
  supplierPartNumber?: string;
17764
17764
  manufacturerPartNumber?: string;
17765
+ platformFetch?: typeof fetch;
17765
17766
  }) => Promise<AnyCircuitElement[] | undefined> | AnyCircuitElement[] | undefined;
17766
17767
  };
17767
17768
  interface PcbRouteCache {
@@ -29330,6 +29331,11 @@ interface ChipPropsSU<PinLabel extends SchematicPinLabel = SchematicPinLabel> ex
29330
29331
  noSchematicRepresentation?: boolean;
29331
29332
  internallyConnectedPins?: (string | number)[][];
29332
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[];
29333
29339
  connections?: Connections<PinLabel>;
29334
29340
  }
29335
29341
  type ChipProps<PinLabelMap extends PinLabelsProp | string = string> = ChipPropsSU<PinLabelMap extends PinLabelsProp ? PinLabelFromPinLabelMap<PinLabelMap> | keyof PinLabelMap : PinLabelMap>;
@@ -33024,6 +33030,7 @@ declare const chipProps: z.ZodObject<{
33024
33030
  schWidth: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
33025
33031
  schHeight: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
33026
33032
  noSchematicRepresentation: z.ZodOptional<z.ZodBoolean>;
33033
+ noConnect: z.ZodOptional<z.ZodUnion<[z.ZodReadonly<z.ZodArray<z.ZodString, "many">>, z.ZodArray<z.ZodString, "many">]>>;
33027
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">]>>>>;
33028
33035
  }, "strip", z.ZodTypeAny, {
33029
33036
  name: string;
@@ -33677,6 +33684,7 @@ declare const chipProps: z.ZodObject<{
33677
33684
  supplierPartNumber?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
33678
33685
  }[] | undefined;
33679
33686
  noSchematicRepresentation?: boolean | undefined;
33687
+ noConnect?: readonly string[] | string[] | undefined;
33680
33688
  }, {
33681
33689
  name: string;
33682
33690
  symbol?: SymbolProp | undefined;
@@ -34331,6 +34339,7 @@ declare const chipProps: z.ZodObject<{
34331
34339
  supplierPartNumber?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
34332
34340
  }[] | undefined;
34333
34341
  noSchematicRepresentation?: boolean | undefined;
34342
+ noConnect?: readonly string[] | string[] | undefined;
34334
34343
  }>;
34335
34344
  /**
34336
34345
  * @deprecated Use ChipProps instead.
@@ -37986,6 +37995,7 @@ declare const bugProps: z.ZodObject<{
37986
37995
  schWidth: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
37987
37996
  schHeight: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
37988
37997
  noSchematicRepresentation: z.ZodOptional<z.ZodBoolean>;
37998
+ noConnect: z.ZodOptional<z.ZodUnion<[z.ZodReadonly<z.ZodArray<z.ZodString, "many">>, z.ZodArray<z.ZodString, "many">]>>;
37989
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">]>>>>;
37990
38000
  }, "strip", z.ZodTypeAny, {
37991
38001
  name: string;
@@ -38639,6 +38649,7 @@ declare const bugProps: z.ZodObject<{
38639
38649
  supplierPartNumber?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
38640
38650
  }[] | undefined;
38641
38651
  noSchematicRepresentation?: boolean | undefined;
38652
+ noConnect?: readonly string[] | string[] | undefined;
38642
38653
  }, {
38643
38654
  name: string;
38644
38655
  symbol?: SymbolProp | undefined;
@@ -39293,6 +39304,7 @@ declare const bugProps: z.ZodObject<{
39293
39304
  supplierPartNumber?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
39294
39305
  }[] | undefined;
39295
39306
  noSchematicRepresentation?: boolean | undefined;
39307
+ noConnect?: readonly string[] | string[] | undefined;
39296
39308
  }>;
39297
39309
  type InferredChipProps = z.input<typeof chipProps>;
39298
39310
 
@@ -42947,6 +42959,7 @@ declare const pinoutProps: z.ZodObject<{
42947
42959
  schWidth: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
42948
42960
  schHeight: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
42949
42961
  noSchematicRepresentation: z.ZodOptional<z.ZodBoolean>;
42962
+ noConnect: z.ZodOptional<z.ZodUnion<[z.ZodReadonly<z.ZodArray<z.ZodString, "many">>, z.ZodArray<z.ZodString, "many">]>>;
42950
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">]>>>>;
42951
42964
  }, "strip", z.ZodTypeAny, {
42952
42965
  name: string;
@@ -43600,6 +43613,7 @@ declare const pinoutProps: z.ZodObject<{
43600
43613
  supplierPartNumber?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
43601
43614
  }[] | undefined;
43602
43615
  noSchematicRepresentation?: boolean | undefined;
43616
+ noConnect?: readonly string[] | string[] | undefined;
43603
43617
  }, {
43604
43618
  name: string;
43605
43619
  symbol?: SymbolProp | undefined;
@@ -44254,6 +44268,7 @@ declare const pinoutProps: z.ZodObject<{
44254
44268
  supplierPartNumber?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
44255
44269
  }[] | undefined;
44256
44270
  noSchematicRepresentation?: boolean | undefined;
44271
+ noConnect?: readonly string[] | string[] | undefined;
44257
44272
  }>;
44258
44273
  interface PinoutProps<PinLabelMap extends PinLabelsProp | string = string> extends ChipProps<PinLabelMap> {
44259
44274
  }
@@ -57841,6 +57856,7 @@ declare const connectorProps: z.ZodObject<{
57841
57856
  schWidth: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
57842
57857
  schHeight: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
57843
57858
  noSchematicRepresentation: z.ZodOptional<z.ZodBoolean>;
57859
+ noConnect: z.ZodOptional<z.ZodUnion<[z.ZodReadonly<z.ZodArray<z.ZodString, "many">>, z.ZodArray<z.ZodString, "many">]>>;
57844
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">]>>>>;
57845
57861
  } & {
57846
57862
  standard: z.ZodOptional<z.ZodEnum<["usb_c", "m2"]>>;
@@ -58496,6 +58512,7 @@ declare const connectorProps: z.ZodObject<{
58496
58512
  supplierPartNumber?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
58497
58513
  }[] | undefined;
58498
58514
  noSchematicRepresentation?: boolean | undefined;
58515
+ noConnect?: readonly string[] | string[] | undefined;
58499
58516
  standard?: "usb_c" | "m2" | undefined;
58500
58517
  }, {
58501
58518
  name: string;
@@ -59151,6 +59168,7 @@ declare const connectorProps: z.ZodObject<{
59151
59168
  supplierPartNumber?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
59152
59169
  }[] | undefined;
59153
59170
  noSchematicRepresentation?: boolean | undefined;
59171
+ noConnect?: readonly string[] | string[] | undefined;
59154
59172
  standard?: "usb_c" | "m2" | undefined;
59155
59173
  }>;
59156
59174
 
@@ -118198,6 +118216,7 @@ declare const pushButtonProps: z.ZodObject<{
118198
118216
  schWidth: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
118199
118217
  schHeight: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
118200
118218
  noSchematicRepresentation: z.ZodOptional<z.ZodBoolean>;
118219
+ noConnect: z.ZodOptional<z.ZodUnion<[z.ZodReadonly<z.ZodArray<z.ZodString, "many">>, z.ZodArray<z.ZodString, "many">]>>;
118201
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">]>>>>;
118202
118221
  }, "strip", z.ZodTypeAny, {
118203
118222
  name: string;
@@ -118851,6 +118870,7 @@ declare const pushButtonProps: z.ZodObject<{
118851
118870
  supplierPartNumber?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
118852
118871
  }[] | undefined;
118853
118872
  noSchematicRepresentation?: boolean | undefined;
118873
+ noConnect?: readonly string[] | string[] | undefined;
118854
118874
  }, {
118855
118875
  name: string;
118856
118876
  symbol?: SymbolProp | undefined;
@@ -119505,6 +119525,7 @@ declare const pushButtonProps: z.ZodObject<{
119505
119525
  supplierPartNumber?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
119506
119526
  }[] | undefined;
119507
119527
  noSchematicRepresentation?: boolean | undefined;
119528
+ noConnect?: readonly string[] | string[] | undefined;
119508
119529
  }>;
119509
119530
 
119510
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;