circuit-json 0.0.189 → 0.0.190
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 +13 -0
- package/dist/index.d.mts +127 -1
- package/dist/index.mjs +622 -612
- 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)
|
package/dist/index.d.mts
CHANGED
|
@@ -5358,6 +5358,12 @@ interface SourceSimplePowerSource extends SourceComponentBase {
|
|
|
5358
5358
|
voltage: number;
|
|
5359
5359
|
}
|
|
5360
5360
|
|
|
5361
|
+
interface SourceSimpleFuse extends SourceComponentBase {
|
|
5362
|
+
ftype: "simple_fuse";
|
|
5363
|
+
current_rating_amps: number;
|
|
5364
|
+
voltage_rating_volts: number;
|
|
5365
|
+
}
|
|
5366
|
+
|
|
5361
5367
|
declare const source_simple_battery: z.ZodObject<{
|
|
5362
5368
|
type: z.ZodLiteral<"source_component">;
|
|
5363
5369
|
source_component_id: z.ZodString;
|
|
@@ -6682,6 +6688,46 @@ declare const any_source_component: z.ZodUnion<[z.ZodObject<{
|
|
|
6682
6688
|
display_value?: string | undefined;
|
|
6683
6689
|
are_pins_interchangeable?: boolean | undefined;
|
|
6684
6690
|
internally_connected_source_port_ids?: string[][] | undefined;
|
|
6691
|
+
}>, z.ZodObject<{
|
|
6692
|
+
type: z.ZodLiteral<"source_component">;
|
|
6693
|
+
source_component_id: z.ZodString;
|
|
6694
|
+
name: z.ZodString;
|
|
6695
|
+
manufacturer_part_number: z.ZodOptional<z.ZodString>;
|
|
6696
|
+
supplier_part_numbers: z.ZodOptional<z.ZodRecord<z.ZodEnum<["jlcpcb", "macrofab", "pcbway", "digikey", "mouser", "lcsc"]>, z.ZodArray<z.ZodString, "many">>>;
|
|
6697
|
+
display_value: z.ZodOptional<z.ZodString>;
|
|
6698
|
+
are_pins_interchangeable: z.ZodOptional<z.ZodBoolean>;
|
|
6699
|
+
internally_connected_source_port_ids: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodString, "many">, "many">>;
|
|
6700
|
+
source_group_id: z.ZodOptional<z.ZodString>;
|
|
6701
|
+
} & {
|
|
6702
|
+
ftype: z.ZodLiteral<"simple_fuse">;
|
|
6703
|
+
current_rating_amps: z.ZodNumber;
|
|
6704
|
+
voltage_rating_volts: z.ZodNumber;
|
|
6705
|
+
}, "strip", z.ZodTypeAny, {
|
|
6706
|
+
type: "source_component";
|
|
6707
|
+
name: string;
|
|
6708
|
+
source_component_id: string;
|
|
6709
|
+
ftype: "simple_fuse";
|
|
6710
|
+
current_rating_amps: number;
|
|
6711
|
+
voltage_rating_volts: number;
|
|
6712
|
+
source_group_id?: string | undefined;
|
|
6713
|
+
manufacturer_part_number?: string | undefined;
|
|
6714
|
+
supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
|
|
6715
|
+
display_value?: string | undefined;
|
|
6716
|
+
are_pins_interchangeable?: boolean | undefined;
|
|
6717
|
+
internally_connected_source_port_ids?: string[][] | undefined;
|
|
6718
|
+
}, {
|
|
6719
|
+
type: "source_component";
|
|
6720
|
+
name: string;
|
|
6721
|
+
source_component_id: string;
|
|
6722
|
+
ftype: "simple_fuse";
|
|
6723
|
+
current_rating_amps: number;
|
|
6724
|
+
voltage_rating_volts: number;
|
|
6725
|
+
source_group_id?: string | undefined;
|
|
6726
|
+
manufacturer_part_number?: string | undefined;
|
|
6727
|
+
supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
|
|
6728
|
+
display_value?: string | undefined;
|
|
6729
|
+
are_pins_interchangeable?: boolean | undefined;
|
|
6730
|
+
internally_connected_source_port_ids?: string[][] | undefined;
|
|
6685
6731
|
}>, z.ZodObject<{
|
|
6686
6732
|
type: z.ZodLiteral<"source_project_metadata">;
|
|
6687
6733
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -6780,7 +6826,7 @@ declare const any_source_component: z.ZodUnion<[z.ZodObject<{
|
|
|
6780
6826
|
* Deprecated: use `AnySourceElement` instead
|
|
6781
6827
|
*/
|
|
6782
6828
|
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;
|
|
6829
|
+
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
6830
|
|
|
6785
6831
|
declare const source_port: z.ZodObject<{
|
|
6786
6832
|
type: z.ZodLiteral<"source_port">;
|
|
@@ -7808,6 +7854,46 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
7808
7854
|
display_value?: string | undefined;
|
|
7809
7855
|
are_pins_interchangeable?: boolean | undefined;
|
|
7810
7856
|
internally_connected_source_port_ids?: string[][] | undefined;
|
|
7857
|
+
}>, z.ZodObject<{
|
|
7858
|
+
type: z.ZodLiteral<"source_component">;
|
|
7859
|
+
source_component_id: z.ZodString;
|
|
7860
|
+
name: z.ZodString;
|
|
7861
|
+
manufacturer_part_number: z.ZodOptional<z.ZodString>;
|
|
7862
|
+
supplier_part_numbers: z.ZodOptional<z.ZodRecord<z.ZodEnum<["jlcpcb", "macrofab", "pcbway", "digikey", "mouser", "lcsc"]>, z.ZodArray<z.ZodString, "many">>>;
|
|
7863
|
+
display_value: z.ZodOptional<z.ZodString>;
|
|
7864
|
+
are_pins_interchangeable: z.ZodOptional<z.ZodBoolean>;
|
|
7865
|
+
internally_connected_source_port_ids: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodString, "many">, "many">>;
|
|
7866
|
+
source_group_id: z.ZodOptional<z.ZodString>;
|
|
7867
|
+
} & {
|
|
7868
|
+
ftype: z.ZodLiteral<"simple_fuse">;
|
|
7869
|
+
current_rating_amps: z.ZodNumber;
|
|
7870
|
+
voltage_rating_volts: z.ZodNumber;
|
|
7871
|
+
}, "strip", z.ZodTypeAny, {
|
|
7872
|
+
type: "source_component";
|
|
7873
|
+
name: string;
|
|
7874
|
+
source_component_id: string;
|
|
7875
|
+
ftype: "simple_fuse";
|
|
7876
|
+
current_rating_amps: number;
|
|
7877
|
+
voltage_rating_volts: number;
|
|
7878
|
+
source_group_id?: string | undefined;
|
|
7879
|
+
manufacturer_part_number?: string | undefined;
|
|
7880
|
+
supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
|
|
7881
|
+
display_value?: string | undefined;
|
|
7882
|
+
are_pins_interchangeable?: boolean | undefined;
|
|
7883
|
+
internally_connected_source_port_ids?: string[][] | undefined;
|
|
7884
|
+
}, {
|
|
7885
|
+
type: "source_component";
|
|
7886
|
+
name: string;
|
|
7887
|
+
source_component_id: string;
|
|
7888
|
+
ftype: "simple_fuse";
|
|
7889
|
+
current_rating_amps: number;
|
|
7890
|
+
voltage_rating_volts: number;
|
|
7891
|
+
source_group_id?: string | undefined;
|
|
7892
|
+
manufacturer_part_number?: string | undefined;
|
|
7893
|
+
supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
|
|
7894
|
+
display_value?: string | undefined;
|
|
7895
|
+
are_pins_interchangeable?: boolean | undefined;
|
|
7896
|
+
internally_connected_source_port_ids?: string[][] | undefined;
|
|
7811
7897
|
}>, z.ZodObject<{
|
|
7812
7898
|
type: z.ZodLiteral<"source_project_metadata">;
|
|
7813
7899
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -12349,6 +12435,46 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
12349
12435
|
display_value?: string | undefined;
|
|
12350
12436
|
are_pins_interchangeable?: boolean | undefined;
|
|
12351
12437
|
internally_connected_source_port_ids?: string[][] | undefined;
|
|
12438
|
+
}>, z.ZodObject<{
|
|
12439
|
+
type: z.ZodLiteral<"source_component">;
|
|
12440
|
+
source_component_id: z.ZodString;
|
|
12441
|
+
name: z.ZodString;
|
|
12442
|
+
manufacturer_part_number: z.ZodOptional<z.ZodString>;
|
|
12443
|
+
supplier_part_numbers: z.ZodOptional<z.ZodRecord<z.ZodEnum<["jlcpcb", "macrofab", "pcbway", "digikey", "mouser", "lcsc"]>, z.ZodArray<z.ZodString, "many">>>;
|
|
12444
|
+
display_value: z.ZodOptional<z.ZodString>;
|
|
12445
|
+
are_pins_interchangeable: z.ZodOptional<z.ZodBoolean>;
|
|
12446
|
+
internally_connected_source_port_ids: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodString, "many">, "many">>;
|
|
12447
|
+
source_group_id: z.ZodOptional<z.ZodString>;
|
|
12448
|
+
} & {
|
|
12449
|
+
ftype: z.ZodLiteral<"simple_fuse">;
|
|
12450
|
+
current_rating_amps: z.ZodNumber;
|
|
12451
|
+
voltage_rating_volts: z.ZodNumber;
|
|
12452
|
+
}, "strip", z.ZodTypeAny, {
|
|
12453
|
+
type: "source_component";
|
|
12454
|
+
name: string;
|
|
12455
|
+
source_component_id: string;
|
|
12456
|
+
ftype: "simple_fuse";
|
|
12457
|
+
current_rating_amps: number;
|
|
12458
|
+
voltage_rating_volts: number;
|
|
12459
|
+
source_group_id?: string | undefined;
|
|
12460
|
+
manufacturer_part_number?: string | undefined;
|
|
12461
|
+
supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
|
|
12462
|
+
display_value?: string | undefined;
|
|
12463
|
+
are_pins_interchangeable?: boolean | undefined;
|
|
12464
|
+
internally_connected_source_port_ids?: string[][] | undefined;
|
|
12465
|
+
}, {
|
|
12466
|
+
type: "source_component";
|
|
12467
|
+
name: string;
|
|
12468
|
+
source_component_id: string;
|
|
12469
|
+
ftype: "simple_fuse";
|
|
12470
|
+
current_rating_amps: number;
|
|
12471
|
+
voltage_rating_volts: number;
|
|
12472
|
+
source_group_id?: string | undefined;
|
|
12473
|
+
manufacturer_part_number?: string | undefined;
|
|
12474
|
+
supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
|
|
12475
|
+
display_value?: string | undefined;
|
|
12476
|
+
are_pins_interchangeable?: boolean | undefined;
|
|
12477
|
+
internally_connected_source_port_ids?: string[][] | undefined;
|
|
12352
12478
|
}>, z.ZodObject<{
|
|
12353
12479
|
type: z.ZodLiteral<"source_project_metadata">;
|
|
12354
12480
|
name: z.ZodOptional<z.ZodString>;
|