circuit-json 0.0.189 → 0.0.191
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 +14 -0
- package/dist/index.d.mts +137 -1
- package/dist/index.mjs +624 -613
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -57,6 +57,7 @@ https://github.com/user-attachments/assets/2f28b7ba-689e-4d80-85b2-5bdef84b41f8
|
|
|
57
57
|
- [SourceSimpleChip](#sourcesimplechip)
|
|
58
58
|
- [SourceSimpleCrystal](#sourcesimplecrystal)
|
|
59
59
|
- [SourceSimpleDiode](#sourcesimplediode)
|
|
60
|
+
- [SourceSimpleFuse](#sourcesimplefuse)
|
|
60
61
|
- [SourceSimpleGround](#sourcesimpleground)
|
|
61
62
|
- [SourceSimpleInductor](#sourcesimpleinductor)
|
|
62
63
|
- [SourceSimpleLed](#sourcesimpleled)
|
|
@@ -357,6 +358,18 @@ interface SourceSimpleDiode extends SourceComponentBase {
|
|
|
357
358
|
}
|
|
358
359
|
```
|
|
359
360
|
|
|
361
|
+
### SourceSimpleFuse
|
|
362
|
+
|
|
363
|
+
[Source](https://github.com/tscircuit/circuit-json/blob/main/src/source/source_simple_fuse.ts)
|
|
364
|
+
|
|
365
|
+
```typescript
|
|
366
|
+
interface SourceSimpleFuse extends SourceComponentBase {
|
|
367
|
+
ftype: "simple_fuse"
|
|
368
|
+
current_rating_amps: number
|
|
369
|
+
voltage_rating_volts: number
|
|
370
|
+
}
|
|
371
|
+
```
|
|
372
|
+
|
|
360
373
|
### SourceSimpleGround
|
|
361
374
|
|
|
362
375
|
[Source](https://github.com/tscircuit/circuit-json/blob/main/src/source/source_simple_ground.ts)
|
|
@@ -970,6 +983,7 @@ interface PcbSilkscreenRect {
|
|
|
970
983
|
height: Length
|
|
971
984
|
layer: LayerRef
|
|
972
985
|
stroke_width: Length
|
|
986
|
+
filled?: boolean
|
|
973
987
|
}
|
|
974
988
|
```
|
|
975
989
|
|
package/dist/index.d.mts
CHANGED
|
@@ -2582,6 +2582,7 @@ declare const pcb_silkscreen_rect: z.ZodObject<{
|
|
|
2582
2582
|
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
2583
2583
|
}>;
|
|
2584
2584
|
stroke_width: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
2585
|
+
filled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
2585
2586
|
}, "strip", z.ZodTypeAny, {
|
|
2586
2587
|
type: "pcb_silkscreen_rect";
|
|
2587
2588
|
width: number;
|
|
@@ -2596,6 +2597,7 @@ declare const pcb_silkscreen_rect: z.ZodObject<{
|
|
|
2596
2597
|
pcb_silkscreen_rect_id: string;
|
|
2597
2598
|
subcircuit_id?: string | undefined;
|
|
2598
2599
|
pcb_group_id?: string | undefined;
|
|
2600
|
+
filled?: boolean | undefined;
|
|
2599
2601
|
}, {
|
|
2600
2602
|
type: "pcb_silkscreen_rect";
|
|
2601
2603
|
width: string | number;
|
|
@@ -2612,6 +2614,7 @@ declare const pcb_silkscreen_rect: z.ZodObject<{
|
|
|
2612
2614
|
pcb_group_id?: string | undefined;
|
|
2613
2615
|
stroke_width?: string | number | undefined;
|
|
2614
2616
|
pcb_silkscreen_rect_id?: string | undefined;
|
|
2617
|
+
filled?: boolean | undefined;
|
|
2615
2618
|
}>;
|
|
2616
2619
|
type PcbSilkscreenRectInput = z.input<typeof pcb_silkscreen_rect>;
|
|
2617
2620
|
/**
|
|
@@ -2628,6 +2631,7 @@ interface PcbSilkscreenRect {
|
|
|
2628
2631
|
height: Length;
|
|
2629
2632
|
layer: LayerRef;
|
|
2630
2633
|
stroke_width: Length;
|
|
2634
|
+
filled?: boolean;
|
|
2631
2635
|
}
|
|
2632
2636
|
/**
|
|
2633
2637
|
* @deprecated use PcbSilkscreenRect
|
|
@@ -5358,6 +5362,12 @@ interface SourceSimplePowerSource extends SourceComponentBase {
|
|
|
5358
5362
|
voltage: number;
|
|
5359
5363
|
}
|
|
5360
5364
|
|
|
5365
|
+
interface SourceSimpleFuse extends SourceComponentBase {
|
|
5366
|
+
ftype: "simple_fuse";
|
|
5367
|
+
current_rating_amps: number;
|
|
5368
|
+
voltage_rating_volts: number;
|
|
5369
|
+
}
|
|
5370
|
+
|
|
5361
5371
|
declare const source_simple_battery: z.ZodObject<{
|
|
5362
5372
|
type: z.ZodLiteral<"source_component">;
|
|
5363
5373
|
source_component_id: z.ZodString;
|
|
@@ -6682,6 +6692,46 @@ declare const any_source_component: z.ZodUnion<[z.ZodObject<{
|
|
|
6682
6692
|
display_value?: string | undefined;
|
|
6683
6693
|
are_pins_interchangeable?: boolean | undefined;
|
|
6684
6694
|
internally_connected_source_port_ids?: string[][] | undefined;
|
|
6695
|
+
}>, z.ZodObject<{
|
|
6696
|
+
type: z.ZodLiteral<"source_component">;
|
|
6697
|
+
source_component_id: z.ZodString;
|
|
6698
|
+
name: z.ZodString;
|
|
6699
|
+
manufacturer_part_number: z.ZodOptional<z.ZodString>;
|
|
6700
|
+
supplier_part_numbers: z.ZodOptional<z.ZodRecord<z.ZodEnum<["jlcpcb", "macrofab", "pcbway", "digikey", "mouser", "lcsc"]>, z.ZodArray<z.ZodString, "many">>>;
|
|
6701
|
+
display_value: z.ZodOptional<z.ZodString>;
|
|
6702
|
+
are_pins_interchangeable: z.ZodOptional<z.ZodBoolean>;
|
|
6703
|
+
internally_connected_source_port_ids: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodString, "many">, "many">>;
|
|
6704
|
+
source_group_id: z.ZodOptional<z.ZodString>;
|
|
6705
|
+
} & {
|
|
6706
|
+
ftype: z.ZodLiteral<"simple_fuse">;
|
|
6707
|
+
current_rating_amps: z.ZodNumber;
|
|
6708
|
+
voltage_rating_volts: z.ZodNumber;
|
|
6709
|
+
}, "strip", z.ZodTypeAny, {
|
|
6710
|
+
type: "source_component";
|
|
6711
|
+
name: string;
|
|
6712
|
+
source_component_id: string;
|
|
6713
|
+
ftype: "simple_fuse";
|
|
6714
|
+
current_rating_amps: number;
|
|
6715
|
+
voltage_rating_volts: number;
|
|
6716
|
+
source_group_id?: string | undefined;
|
|
6717
|
+
manufacturer_part_number?: string | undefined;
|
|
6718
|
+
supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
|
|
6719
|
+
display_value?: string | undefined;
|
|
6720
|
+
are_pins_interchangeable?: boolean | undefined;
|
|
6721
|
+
internally_connected_source_port_ids?: string[][] | undefined;
|
|
6722
|
+
}, {
|
|
6723
|
+
type: "source_component";
|
|
6724
|
+
name: string;
|
|
6725
|
+
source_component_id: string;
|
|
6726
|
+
ftype: "simple_fuse";
|
|
6727
|
+
current_rating_amps: number;
|
|
6728
|
+
voltage_rating_volts: number;
|
|
6729
|
+
source_group_id?: string | undefined;
|
|
6730
|
+
manufacturer_part_number?: string | undefined;
|
|
6731
|
+
supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
|
|
6732
|
+
display_value?: string | undefined;
|
|
6733
|
+
are_pins_interchangeable?: boolean | undefined;
|
|
6734
|
+
internally_connected_source_port_ids?: string[][] | undefined;
|
|
6685
6735
|
}>, z.ZodObject<{
|
|
6686
6736
|
type: z.ZodLiteral<"source_project_metadata">;
|
|
6687
6737
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -6780,7 +6830,7 @@ declare const any_source_component: z.ZodUnion<[z.ZodObject<{
|
|
|
6780
6830
|
* Deprecated: use `AnySourceElement` instead
|
|
6781
6831
|
*/
|
|
6782
6832
|
type AnySourceComponent = z.infer<typeof any_source_component>;
|
|
6783
|
-
type AnySourceElement = SourceSimpleResistor | SourceSimpleCapacitor | SourceSimpleDiode | SourceSimpleLed | SourceSimpleGround | SourceSimpleChip | SourceLed | SourceSimplePowerSource | SourceSimpleBattery | SourceSimpleInductor | SourceSimplePushButton | SourceSimplePotentiometer | SourceSimpleCrystal | SourceSimplePinHeader | SourceSimpleResonator | SourceSimpleSwitch | SourceSimpleTransistor | SourceSimpleMosfet | SourceProjectMetadata | SourceMissingPropertyError | SourceFailedToCreateComponentError;
|
|
6833
|
+
type AnySourceElement = SourceSimpleResistor | SourceSimpleCapacitor | SourceSimpleDiode | SourceSimpleLed | SourceSimpleGround | SourceSimpleChip | SourceLed | SourceSimplePowerSource | SourceSimpleBattery | SourceSimpleInductor | SourceSimplePushButton | SourceSimplePotentiometer | SourceSimpleCrystal | SourceSimplePinHeader | SourceSimpleResonator | SourceSimpleSwitch | SourceSimpleTransistor | SourceSimpleMosfet | SourceSimpleFuse | SourceProjectMetadata | SourceMissingPropertyError | SourceFailedToCreateComponentError;
|
|
6784
6834
|
|
|
6785
6835
|
declare const source_port: z.ZodObject<{
|
|
6786
6836
|
type: z.ZodLiteral<"source_port">;
|
|
@@ -7808,6 +7858,46 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
7808
7858
|
display_value?: string | undefined;
|
|
7809
7859
|
are_pins_interchangeable?: boolean | undefined;
|
|
7810
7860
|
internally_connected_source_port_ids?: string[][] | undefined;
|
|
7861
|
+
}>, z.ZodObject<{
|
|
7862
|
+
type: z.ZodLiteral<"source_component">;
|
|
7863
|
+
source_component_id: z.ZodString;
|
|
7864
|
+
name: z.ZodString;
|
|
7865
|
+
manufacturer_part_number: z.ZodOptional<z.ZodString>;
|
|
7866
|
+
supplier_part_numbers: z.ZodOptional<z.ZodRecord<z.ZodEnum<["jlcpcb", "macrofab", "pcbway", "digikey", "mouser", "lcsc"]>, z.ZodArray<z.ZodString, "many">>>;
|
|
7867
|
+
display_value: z.ZodOptional<z.ZodString>;
|
|
7868
|
+
are_pins_interchangeable: z.ZodOptional<z.ZodBoolean>;
|
|
7869
|
+
internally_connected_source_port_ids: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodString, "many">, "many">>;
|
|
7870
|
+
source_group_id: z.ZodOptional<z.ZodString>;
|
|
7871
|
+
} & {
|
|
7872
|
+
ftype: z.ZodLiteral<"simple_fuse">;
|
|
7873
|
+
current_rating_amps: z.ZodNumber;
|
|
7874
|
+
voltage_rating_volts: z.ZodNumber;
|
|
7875
|
+
}, "strip", z.ZodTypeAny, {
|
|
7876
|
+
type: "source_component";
|
|
7877
|
+
name: string;
|
|
7878
|
+
source_component_id: string;
|
|
7879
|
+
ftype: "simple_fuse";
|
|
7880
|
+
current_rating_amps: number;
|
|
7881
|
+
voltage_rating_volts: number;
|
|
7882
|
+
source_group_id?: string | undefined;
|
|
7883
|
+
manufacturer_part_number?: string | undefined;
|
|
7884
|
+
supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
|
|
7885
|
+
display_value?: string | undefined;
|
|
7886
|
+
are_pins_interchangeable?: boolean | undefined;
|
|
7887
|
+
internally_connected_source_port_ids?: string[][] | undefined;
|
|
7888
|
+
}, {
|
|
7889
|
+
type: "source_component";
|
|
7890
|
+
name: string;
|
|
7891
|
+
source_component_id: string;
|
|
7892
|
+
ftype: "simple_fuse";
|
|
7893
|
+
current_rating_amps: number;
|
|
7894
|
+
voltage_rating_volts: number;
|
|
7895
|
+
source_group_id?: string | undefined;
|
|
7896
|
+
manufacturer_part_number?: string | undefined;
|
|
7897
|
+
supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
|
|
7898
|
+
display_value?: string | undefined;
|
|
7899
|
+
are_pins_interchangeable?: boolean | undefined;
|
|
7900
|
+
internally_connected_source_port_ids?: string[][] | undefined;
|
|
7811
7901
|
}>, z.ZodObject<{
|
|
7812
7902
|
type: z.ZodLiteral<"source_project_metadata">;
|
|
7813
7903
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -10206,6 +10296,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
10206
10296
|
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
10207
10297
|
}>;
|
|
10208
10298
|
stroke_width: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
10299
|
+
filled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
10209
10300
|
}, "strip", z.ZodTypeAny, {
|
|
10210
10301
|
type: "pcb_silkscreen_rect";
|
|
10211
10302
|
width: number;
|
|
@@ -10220,6 +10311,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
10220
10311
|
pcb_silkscreen_rect_id: string;
|
|
10221
10312
|
subcircuit_id?: string | undefined;
|
|
10222
10313
|
pcb_group_id?: string | undefined;
|
|
10314
|
+
filled?: boolean | undefined;
|
|
10223
10315
|
}, {
|
|
10224
10316
|
type: "pcb_silkscreen_rect";
|
|
10225
10317
|
width: string | number;
|
|
@@ -10236,6 +10328,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
10236
10328
|
pcb_group_id?: string | undefined;
|
|
10237
10329
|
stroke_width?: string | number | undefined;
|
|
10238
10330
|
pcb_silkscreen_rect_id?: string | undefined;
|
|
10331
|
+
filled?: boolean | undefined;
|
|
10239
10332
|
}>, z.ZodObject<{
|
|
10240
10333
|
type: z.ZodLiteral<"pcb_silkscreen_circle">;
|
|
10241
10334
|
pcb_silkscreen_circle_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
@@ -12349,6 +12442,46 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
12349
12442
|
display_value?: string | undefined;
|
|
12350
12443
|
are_pins_interchangeable?: boolean | undefined;
|
|
12351
12444
|
internally_connected_source_port_ids?: string[][] | undefined;
|
|
12445
|
+
}>, z.ZodObject<{
|
|
12446
|
+
type: z.ZodLiteral<"source_component">;
|
|
12447
|
+
source_component_id: z.ZodString;
|
|
12448
|
+
name: z.ZodString;
|
|
12449
|
+
manufacturer_part_number: z.ZodOptional<z.ZodString>;
|
|
12450
|
+
supplier_part_numbers: z.ZodOptional<z.ZodRecord<z.ZodEnum<["jlcpcb", "macrofab", "pcbway", "digikey", "mouser", "lcsc"]>, z.ZodArray<z.ZodString, "many">>>;
|
|
12451
|
+
display_value: z.ZodOptional<z.ZodString>;
|
|
12452
|
+
are_pins_interchangeable: z.ZodOptional<z.ZodBoolean>;
|
|
12453
|
+
internally_connected_source_port_ids: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodString, "many">, "many">>;
|
|
12454
|
+
source_group_id: z.ZodOptional<z.ZodString>;
|
|
12455
|
+
} & {
|
|
12456
|
+
ftype: z.ZodLiteral<"simple_fuse">;
|
|
12457
|
+
current_rating_amps: z.ZodNumber;
|
|
12458
|
+
voltage_rating_volts: z.ZodNumber;
|
|
12459
|
+
}, "strip", z.ZodTypeAny, {
|
|
12460
|
+
type: "source_component";
|
|
12461
|
+
name: string;
|
|
12462
|
+
source_component_id: string;
|
|
12463
|
+
ftype: "simple_fuse";
|
|
12464
|
+
current_rating_amps: number;
|
|
12465
|
+
voltage_rating_volts: number;
|
|
12466
|
+
source_group_id?: string | undefined;
|
|
12467
|
+
manufacturer_part_number?: string | undefined;
|
|
12468
|
+
supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
|
|
12469
|
+
display_value?: string | undefined;
|
|
12470
|
+
are_pins_interchangeable?: boolean | undefined;
|
|
12471
|
+
internally_connected_source_port_ids?: string[][] | undefined;
|
|
12472
|
+
}, {
|
|
12473
|
+
type: "source_component";
|
|
12474
|
+
name: string;
|
|
12475
|
+
source_component_id: string;
|
|
12476
|
+
ftype: "simple_fuse";
|
|
12477
|
+
current_rating_amps: number;
|
|
12478
|
+
voltage_rating_volts: number;
|
|
12479
|
+
source_group_id?: string | undefined;
|
|
12480
|
+
manufacturer_part_number?: string | undefined;
|
|
12481
|
+
supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
|
|
12482
|
+
display_value?: string | undefined;
|
|
12483
|
+
are_pins_interchangeable?: boolean | undefined;
|
|
12484
|
+
internally_connected_source_port_ids?: string[][] | undefined;
|
|
12352
12485
|
}>, z.ZodObject<{
|
|
12353
12486
|
type: z.ZodLiteral<"source_project_metadata">;
|
|
12354
12487
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -14747,6 +14880,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
14747
14880
|
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
14748
14881
|
}>;
|
|
14749
14882
|
stroke_width: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
14883
|
+
filled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
14750
14884
|
}, "strip", z.ZodTypeAny, {
|
|
14751
14885
|
type: "pcb_silkscreen_rect";
|
|
14752
14886
|
width: number;
|
|
@@ -14761,6 +14895,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
14761
14895
|
pcb_silkscreen_rect_id: string;
|
|
14762
14896
|
subcircuit_id?: string | undefined;
|
|
14763
14897
|
pcb_group_id?: string | undefined;
|
|
14898
|
+
filled?: boolean | undefined;
|
|
14764
14899
|
}, {
|
|
14765
14900
|
type: "pcb_silkscreen_rect";
|
|
14766
14901
|
width: string | number;
|
|
@@ -14777,6 +14912,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
14777
14912
|
pcb_group_id?: string | undefined;
|
|
14778
14913
|
stroke_width?: string | number | undefined;
|
|
14779
14914
|
pcb_silkscreen_rect_id?: string | undefined;
|
|
14915
|
+
filled?: boolean | undefined;
|
|
14780
14916
|
}>, z.ZodObject<{
|
|
14781
14917
|
type: z.ZodLiteral<"pcb_silkscreen_circle">;
|
|
14782
14918
|
pcb_silkscreen_circle_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|