@tscircuit/props 0.0.371 → 0.0.372

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/dist/index.d.ts CHANGED
@@ -5285,6 +5285,10 @@ interface SubcircuitGroupProps extends BaseGroupProps {
5285
5285
  minTraceWidth?: Distance;
5286
5286
  pcbRouteCache?: PcbRouteCache;
5287
5287
  autorouter?: AutorouterProp;
5288
+ /**
5289
+ * Serialized circuit JSON describing a precompiled subcircuit
5290
+ */
5291
+ circuitJson?: any[];
5288
5292
  /**
5289
5293
  * If true, we'll automatically layout the schematic for this group. Must be
5290
5294
  * a subcircuit (currently). This is eventually going to be replaced with more
@@ -6945,6 +6949,7 @@ declare const subcircuitGroupProps: z.ZodObject<{
6945
6949
  }>, "many">>;
6946
6950
  outlineOffsetX: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
6947
6951
  outlineOffsetY: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
6952
+ circuitJson: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
6948
6953
  }, "strip", z.ZodTypeAny, {
6949
6954
  symbol?: SymbolProp | undefined;
6950
6955
  key?: any;
@@ -7174,6 +7179,7 @@ declare const subcircuitGroupProps: z.ZodObject<{
7174
7179
  minTraceWidth?: number | undefined;
7175
7180
  pcbRouteCache?: PcbRouteCache | undefined;
7176
7181
  autorouter?: AutorouterProp | undefined;
7182
+ circuitJson?: any[] | undefined;
7177
7183
  schAutoLayoutEnabled?: boolean | undefined;
7178
7184
  schTraceAutoLabelEnabled?: boolean | undefined;
7179
7185
  schMaxTraceDistance?: number | undefined;
@@ -7458,6 +7464,7 @@ declare const subcircuitGroupProps: z.ZodObject<{
7458
7464
  minTraceWidth?: string | number | undefined;
7459
7465
  pcbRouteCache?: PcbRouteCache | undefined;
7460
7466
  autorouter?: AutorouterProp | undefined;
7467
+ circuitJson?: any[] | undefined;
7461
7468
  schAutoLayoutEnabled?: boolean | undefined;
7462
7469
  schTraceAutoLabelEnabled?: boolean | undefined;
7463
7470
  schMaxTraceDistance?: string | number | undefined;
@@ -8183,6 +8190,7 @@ declare const subcircuitGroupPropsWithBool: z.ZodObject<{
8183
8190
  }>, "many">>;
8184
8191
  outlineOffsetX: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
8185
8192
  outlineOffsetY: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
8193
+ circuitJson: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
8186
8194
  } & {
8187
8195
  subcircuit: z.ZodLiteral<true>;
8188
8196
  }, "strip", z.ZodTypeAny, {
@@ -8415,6 +8423,7 @@ declare const subcircuitGroupPropsWithBool: z.ZodObject<{
8415
8423
  minTraceWidth?: number | undefined;
8416
8424
  pcbRouteCache?: PcbRouteCache | undefined;
8417
8425
  autorouter?: AutorouterProp | undefined;
8426
+ circuitJson?: any[] | undefined;
8418
8427
  schAutoLayoutEnabled?: boolean | undefined;
8419
8428
  schTraceAutoLabelEnabled?: boolean | undefined;
8420
8429
  schMaxTraceDistance?: number | undefined;
@@ -8700,6 +8709,7 @@ declare const subcircuitGroupPropsWithBool: z.ZodObject<{
8700
8709
  minTraceWidth?: string | number | undefined;
8701
8710
  pcbRouteCache?: PcbRouteCache | undefined;
8702
8711
  autorouter?: AutorouterProp | undefined;
8712
+ circuitJson?: any[] | undefined;
8703
8713
  schAutoLayoutEnabled?: boolean | undefined;
8704
8714
  schTraceAutoLabelEnabled?: boolean | undefined;
8705
8715
  schMaxTraceDistance?: string | number | undefined;
@@ -10382,6 +10392,7 @@ declare const groupProps: z.ZodDiscriminatedUnion<"subcircuit", [z.ZodObject<{
10382
10392
  }>, "many">>;
10383
10393
  outlineOffsetX: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
10384
10394
  outlineOffsetY: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
10395
+ circuitJson: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
10385
10396
  } & {
10386
10397
  subcircuit: z.ZodLiteral<true>;
10387
10398
  }, "strip", z.ZodTypeAny, {
@@ -10614,6 +10625,7 @@ declare const groupProps: z.ZodDiscriminatedUnion<"subcircuit", [z.ZodObject<{
10614
10625
  minTraceWidth?: number | undefined;
10615
10626
  pcbRouteCache?: PcbRouteCache | undefined;
10616
10627
  autorouter?: AutorouterProp | undefined;
10628
+ circuitJson?: any[] | undefined;
10617
10629
  schAutoLayoutEnabled?: boolean | undefined;
10618
10630
  schTraceAutoLabelEnabled?: boolean | undefined;
10619
10631
  schMaxTraceDistance?: number | undefined;
@@ -10899,6 +10911,7 @@ declare const groupProps: z.ZodDiscriminatedUnion<"subcircuit", [z.ZodObject<{
10899
10911
  minTraceWidth?: string | number | undefined;
10900
10912
  pcbRouteCache?: PcbRouteCache | undefined;
10901
10913
  autorouter?: AutorouterProp | undefined;
10914
+ circuitJson?: any[] | undefined;
10902
10915
  schAutoLayoutEnabled?: boolean | undefined;
10903
10916
  schTraceAutoLabelEnabled?: boolean | undefined;
10904
10917
  schMaxTraceDistance?: string | number | undefined;
@@ -11652,6 +11665,7 @@ declare const boardProps: z.ZodObject<Omit<{
11652
11665
  }>, "many">>;
11653
11666
  outlineOffsetX: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
11654
11667
  outlineOffsetY: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
11668
+ circuitJson: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
11655
11669
  }, "connections"> & {
11656
11670
  material: z.ZodDefault<z.ZodEnum<["fr4", "fr1"]>>;
11657
11671
  layers: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<2>, z.ZodLiteral<4>]>>;
@@ -11907,6 +11921,7 @@ declare const boardProps: z.ZodObject<Omit<{
11907
11921
  minTraceWidth?: number | undefined;
11908
11922
  pcbRouteCache?: PcbRouteCache | undefined;
11909
11923
  autorouter?: AutorouterProp | undefined;
11924
+ circuitJson?: any[] | undefined;
11910
11925
  schAutoLayoutEnabled?: boolean | undefined;
11911
11926
  schTraceAutoLabelEnabled?: boolean | undefined;
11912
11927
  schMaxTraceDistance?: number | undefined;
@@ -12204,6 +12219,7 @@ declare const boardProps: z.ZodObject<Omit<{
12204
12219
  minTraceWidth?: string | number | undefined;
12205
12220
  pcbRouteCache?: PcbRouteCache | undefined;
12206
12221
  autorouter?: AutorouterProp | undefined;
12222
+ circuitJson?: any[] | undefined;
12207
12223
  schAutoLayoutEnabled?: boolean | undefined;
12208
12224
  schTraceAutoLabelEnabled?: boolean | undefined;
12209
12225
  schMaxTraceDistance?: string | number | undefined;
@@ -13919,6 +13935,7 @@ declare const breakoutProps: z.ZodObject<{
13919
13935
  }>, "many">>;
13920
13936
  outlineOffsetX: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
13921
13937
  outlineOffsetY: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
13938
+ circuitJson: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
13922
13939
  } & {
13923
13940
  padding: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
13924
13941
  paddingLeft: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
@@ -14154,6 +14171,7 @@ declare const breakoutProps: z.ZodObject<{
14154
14171
  minTraceWidth?: number | undefined;
14155
14172
  pcbRouteCache?: PcbRouteCache | undefined;
14156
14173
  autorouter?: AutorouterProp | undefined;
14174
+ circuitJson?: any[] | undefined;
14157
14175
  schAutoLayoutEnabled?: boolean | undefined;
14158
14176
  schTraceAutoLabelEnabled?: boolean | undefined;
14159
14177
  schMaxTraceDistance?: number | undefined;
@@ -14438,6 +14456,7 @@ declare const breakoutProps: z.ZodObject<{
14438
14456
  minTraceWidth?: string | number | undefined;
14439
14457
  pcbRouteCache?: PcbRouteCache | undefined;
14440
14458
  autorouter?: AutorouterProp | undefined;
14459
+ circuitJson?: any[] | undefined;
14441
14460
  schAutoLayoutEnabled?: boolean | undefined;
14442
14461
  schTraceAutoLabelEnabled?: boolean | undefined;
14443
14462
  schMaxTraceDistance?: string | number | undefined;
@@ -29688,6 +29707,7 @@ declare const stampboardProps: z.ZodObject<Omit<{
29688
29707
  }>, "many">>;
29689
29708
  outlineOffsetX: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
29690
29709
  outlineOffsetY: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
29710
+ circuitJson: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
29691
29711
  }, "connections"> & {
29692
29712
  material: z.ZodDefault<z.ZodEnum<["fr4", "fr1"]>>;
29693
29713
  layers: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<2>, z.ZodLiteral<4>]>>;
@@ -29958,6 +29978,7 @@ declare const stampboardProps: z.ZodObject<Omit<{
29958
29978
  minTraceWidth?: number | undefined;
29959
29979
  pcbRouteCache?: PcbRouteCache | undefined;
29960
29980
  autorouter?: AutorouterProp | undefined;
29981
+ circuitJson?: any[] | undefined;
29961
29982
  schAutoLayoutEnabled?: boolean | undefined;
29962
29983
  schTraceAutoLabelEnabled?: boolean | undefined;
29963
29984
  schMaxTraceDistance?: number | undefined;
@@ -30265,6 +30286,7 @@ declare const stampboardProps: z.ZodObject<Omit<{
30265
30286
  minTraceWidth?: string | number | undefined;
30266
30287
  pcbRouteCache?: PcbRouteCache | undefined;
30267
30288
  autorouter?: AutorouterProp | undefined;
30289
+ circuitJson?: any[] | undefined;
30268
30290
  schAutoLayoutEnabled?: boolean | undefined;
30269
30291
  schTraceAutoLabelEnabled?: boolean | undefined;
30270
30292
  schMaxTraceDistance?: string | number | undefined;
@@ -38346,6 +38368,7 @@ declare const subcircuitProps: z.ZodObject<{
38346
38368
  }>, "many">>;
38347
38369
  outlineOffsetX: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
38348
38370
  outlineOffsetY: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
38371
+ circuitJson: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
38349
38372
  }, "strip", z.ZodTypeAny, {
38350
38373
  symbol?: SymbolProp | undefined;
38351
38374
  key?: any;
@@ -38575,6 +38598,7 @@ declare const subcircuitProps: z.ZodObject<{
38575
38598
  minTraceWidth?: number | undefined;
38576
38599
  pcbRouteCache?: PcbRouteCache | undefined;
38577
38600
  autorouter?: AutorouterProp | undefined;
38601
+ circuitJson?: any[] | undefined;
38578
38602
  schAutoLayoutEnabled?: boolean | undefined;
38579
38603
  schTraceAutoLabelEnabled?: boolean | undefined;
38580
38604
  schMaxTraceDistance?: number | undefined;
@@ -38859,6 +38883,7 @@ declare const subcircuitProps: z.ZodObject<{
38859
38883
  minTraceWidth?: string | number | undefined;
38860
38884
  pcbRouteCache?: PcbRouteCache | undefined;
38861
38885
  autorouter?: AutorouterProp | undefined;
38886
+ circuitJson?: any[] | undefined;
38862
38887
  schAutoLayoutEnabled?: boolean | undefined;
38863
38888
  schTraceAutoLabelEnabled?: boolean | undefined;
38864
38889
  schMaxTraceDistance?: string | number | undefined;
package/dist/index.js CHANGED
@@ -637,7 +637,8 @@ var subcircuitGroupProps = baseGroupProps.extend({
637
637
  height: distance6.optional(),
638
638
  outline: z27.array(point).optional(),
639
639
  outlineOffsetX: distance6.optional(),
640
- outlineOffsetY: distance6.optional()
640
+ outlineOffsetY: distance6.optional(),
641
+ circuitJson: z27.array(z27.any()).optional()
641
642
  });
642
643
  var subcircuitGroupPropsWithBool = subcircuitGroupProps.extend({
643
644
  subcircuit: z27.literal(true)