@tscircuit/core 0.0.496 → 0.0.498
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 +10 -3
- package/dist/index.js +8 -3
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -4735,6 +4735,7 @@ declare class Jumper<PinLabels extends string = never> extends NormalComponent<t
|
|
|
4735
4735
|
}>>;
|
|
4736
4736
|
pinCount: zod.ZodOptional<zod.ZodUnion<[zod.ZodLiteral<2>, zod.ZodLiteral<3>]>>;
|
|
4737
4737
|
internallyConnectedPins: zod.ZodOptional<zod.ZodArray<zod.ZodArray<zod.ZodString, "many">, "many">>;
|
|
4738
|
+
connections: zod.ZodOptional<zod.ZodPipeline<zod.ZodType<Partial<Record<string, string | string[] | readonly string[]>>, zod.ZodTypeDef, Partial<Record<string, string | string[] | readonly string[]>>>, zod.ZodRecord<zod.ZodString, zod.ZodUnion<[zod.ZodUnion<[zod.ZodString, zod.ZodReadonly<zod.ZodArray<zod.ZodString, "many">>]>, zod.ZodArray<zod.ZodString, "many">]>>>>;
|
|
4738
4739
|
}, "strip", zod.ZodTypeAny, {
|
|
4739
4740
|
name: string;
|
|
4740
4741
|
pcbX?: number | undefined;
|
|
@@ -4845,6 +4846,7 @@ declare class Jumper<PinLabels extends string = never> extends NormalComponent<t
|
|
|
4845
4846
|
bottomMargin?: number | undefined;
|
|
4846
4847
|
}> | undefined;
|
|
4847
4848
|
schPinSpacing?: number | undefined;
|
|
4849
|
+
connections?: Record<string, string | readonly string[] | string[]> | undefined;
|
|
4848
4850
|
schDirection?: "left" | "right" | undefined;
|
|
4849
4851
|
pinCount?: 2 | 3 | undefined;
|
|
4850
4852
|
}, {
|
|
@@ -4959,6 +4961,7 @@ declare class Jumper<PinLabels extends string = never> extends NormalComponent<t
|
|
|
4959
4961
|
bottomMargin?: string | number | undefined;
|
|
4960
4962
|
}> | undefined;
|
|
4961
4963
|
schPinSpacing?: string | number | undefined;
|
|
4964
|
+
connections?: Partial<Record<string, string | string[] | readonly string[]>> | undefined;
|
|
4962
4965
|
schDirection?: "left" | "right" | undefined;
|
|
4963
4966
|
pinCount?: 2 | 3 | undefined;
|
|
4964
4967
|
}>;
|
|
@@ -5370,6 +5373,7 @@ declare class SolderJumper<PinLabels extends string = never> extends NormalCompo
|
|
|
5370
5373
|
}>>;
|
|
5371
5374
|
pinCount: zod.ZodOptional<zod.ZodUnion<[zod.ZodLiteral<2>, zod.ZodLiteral<3>]>>;
|
|
5372
5375
|
internallyConnectedPins: zod.ZodOptional<zod.ZodArray<zod.ZodArray<zod.ZodString, "many">, "many">>;
|
|
5376
|
+
connections: zod.ZodOptional<zod.ZodPipeline<zod.ZodType<Partial<Record<string, string | string[] | readonly string[]>>, zod.ZodTypeDef, Partial<Record<string, string | string[] | readonly string[]>>>, zod.ZodRecord<zod.ZodString, zod.ZodUnion<[zod.ZodUnion<[zod.ZodString, zod.ZodReadonly<zod.ZodArray<zod.ZodString, "many">>]>, zod.ZodArray<zod.ZodString, "many">]>>>>;
|
|
5373
5377
|
} & {
|
|
5374
5378
|
bridgedPins: zod.ZodOptional<zod.ZodArray<zod.ZodArray<zod.ZodString, "many">, "many">>;
|
|
5375
5379
|
}, "strip", zod.ZodTypeAny, {
|
|
@@ -5482,6 +5486,7 @@ declare class SolderJumper<PinLabels extends string = never> extends NormalCompo
|
|
|
5482
5486
|
bottomMargin?: number | undefined;
|
|
5483
5487
|
}> | undefined;
|
|
5484
5488
|
schPinSpacing?: number | undefined;
|
|
5489
|
+
connections?: Record<string, string | readonly string[] | string[]> | undefined;
|
|
5485
5490
|
schDirection?: "left" | "right" | undefined;
|
|
5486
5491
|
pinCount?: 2 | 3 | undefined;
|
|
5487
5492
|
bridgedPins?: string[][] | undefined;
|
|
@@ -5597,6 +5602,7 @@ declare class SolderJumper<PinLabels extends string = never> extends NormalCompo
|
|
|
5597
5602
|
bottomMargin?: string | number | undefined;
|
|
5598
5603
|
}> | undefined;
|
|
5599
5604
|
schPinSpacing?: string | number | undefined;
|
|
5605
|
+
connections?: Partial<Record<string, string | string[] | readonly string[]>> | undefined;
|
|
5600
5606
|
schDirection?: "left" | "right" | undefined;
|
|
5601
5607
|
pinCount?: 2 | 3 | undefined;
|
|
5602
5608
|
bridgedPins?: string[][] | undefined;
|
|
@@ -14761,8 +14767,8 @@ type PolarizedSel = Record<`C${Nums40}` | `L${Nums40}` | `LED${Nums40}` | `D${Nu
|
|
|
14761
14767
|
}>;
|
|
14762
14768
|
type CommonNetNames = "VCC" | "GND" | "VDD" | "PWR" | "V5" | "V3_3" | "VIN" | "SHLD" | "EN" | "SCL" | "SDA" | "MOSI" | "MISO" | "SCK" | "CS" | "FLASH_SDO" | "FLASH_SDI" | "FLASH_SCK" | "FLASH_N_CS" | "FLASH_N_WP" | "FLASH_N_HOLD";
|
|
14763
14769
|
type TransistorSel = Record<`Q${Nums40}`, Record<TransistorPinNames, string>>;
|
|
14764
|
-
type JumperSel = Record<`J${Nums40}` | `CN${Nums40}`, Record<PinNumbers100 | CommonPinNames, string> & ChipFnSel>;
|
|
14765
|
-
type ChipSel = Record<`U${Nums40}
|
|
14770
|
+
type JumperSel = Record<`J${Nums40}` | `JP${Nums40}` | `CN${Nums40}`, Record<PinNumbers100 | CommonPinNames, string> & ChipFnSel>;
|
|
14771
|
+
type ChipSel = Record<`U${Nums40}` | "USBC", Record<CommonPinNames | PinNumbers100, string> & ChipFnSel>;
|
|
14766
14772
|
type NetSelFn<N extends string = CommonNetNames> = (<N2 extends string>() => Record<N | N2, string>) & Record<N, string>;
|
|
14767
14773
|
type NetSel<N extends string = CommonNetNames> = Record<"net", NetSelFn<N>>;
|
|
14768
14774
|
type ExplicitModuleSel = Record<"subcircuit" | "module" | "group", Record<`S${Nums40}` | `M${Nums40}` | `G${Nums40}`, SelWithoutSubcircuit>>;
|
|
@@ -14779,7 +14785,8 @@ type ChipFn<T extends ChipProps<any>> = (props: T) => any;
|
|
|
14779
14785
|
type ChipFnSel = <T extends ChipFn<any> | string>(chipFn?: T) => UnionToIntersection<T extends ChipFn<any> ? ChipConnections<T> : T extends string ? {
|
|
14780
14786
|
[K in T]: string;
|
|
14781
14787
|
} : never>;
|
|
14782
|
-
type
|
|
14788
|
+
type SelFn = <P extends string>(refdes: string) => Record<P, string>;
|
|
14789
|
+
type Sel = SelFn & ExplicitModuleSel & SelWithoutSubcircuit;
|
|
14783
14790
|
declare const sel: Sel;
|
|
14784
14791
|
|
|
14785
14792
|
interface LocalCacheEngine {
|
package/dist/index.js
CHANGED
|
@@ -10334,7 +10334,7 @@ import { identity as identity4 } from "transformation-matrix";
|
|
|
10334
10334
|
var package_default = {
|
|
10335
10335
|
name: "@tscircuit/core",
|
|
10336
10336
|
type: "module",
|
|
10337
|
-
version: "0.0.
|
|
10337
|
+
version: "0.0.497",
|
|
10338
10338
|
types: "dist/index.d.ts",
|
|
10339
10339
|
main: "dist/index.js",
|
|
10340
10340
|
module: "dist/index.js",
|
|
@@ -10366,7 +10366,7 @@ var package_default = {
|
|
|
10366
10366
|
"@tscircuit/layout": "^0.0.28",
|
|
10367
10367
|
"@tscircuit/log-soup": "^1.0.2",
|
|
10368
10368
|
"@tscircuit/math-utils": "^0.0.18",
|
|
10369
|
-
"@tscircuit/props": "^0.0.
|
|
10369
|
+
"@tscircuit/props": "^0.0.238",
|
|
10370
10370
|
"@tscircuit/schematic-autolayout": "^0.0.6",
|
|
10371
10371
|
"@tscircuit/schematic-match-adapt": "^0.0.16",
|
|
10372
10372
|
"@tscircuit/simple-3d-svg": "^0.0.6",
|
|
@@ -10717,7 +10717,12 @@ var useResistor = createUseComponent(
|
|
|
10717
10717
|
|
|
10718
10718
|
// lib/sel/sel.ts
|
|
10719
10719
|
var sel = new Proxy(
|
|
10720
|
-
|
|
10720
|
+
(refdes) => new Proxy(
|
|
10721
|
+
{},
|
|
10722
|
+
{
|
|
10723
|
+
get: (_, pin) => `.${refdes} > .${pin}`
|
|
10724
|
+
}
|
|
10725
|
+
),
|
|
10721
10726
|
{
|
|
10722
10727
|
get: (_, prop1) => {
|
|
10723
10728
|
const fn = (...args) => {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tscircuit/core",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.498",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"module": "dist/index.js",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"@tscircuit/layout": "^0.0.28",
|
|
34
34
|
"@tscircuit/log-soup": "^1.0.2",
|
|
35
35
|
"@tscircuit/math-utils": "^0.0.18",
|
|
36
|
-
"@tscircuit/props": "^0.0.
|
|
36
|
+
"@tscircuit/props": "^0.0.238",
|
|
37
37
|
"@tscircuit/schematic-autolayout": "^0.0.6",
|
|
38
38
|
"@tscircuit/schematic-match-adapt": "^0.0.16",
|
|
39
39
|
"@tscircuit/simple-3d-svg": "^0.0.6",
|