@tscircuit/props 0.0.499 → 0.0.500
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 +5 -1
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/lib/components/group.ts +13 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import * as react from 'react';
|
|
3
3
|
import { ReactElement } from 'react';
|
|
4
|
-
import { LayerRef, LayerRefInput, Point as Point$1, RouteHintPoint, PcbTrace, AnySourceComponent, RouteHintPointInput } from 'circuit-json';
|
|
4
|
+
import { LayerRef, LayerRefInput, Point as Point$1, RouteHintPoint, PcbTrace, AnySourceComponent, AnyCircuitElement, RouteHintPointInput } from 'circuit-json';
|
|
5
5
|
|
|
6
6
|
declare const direction: z.ZodEnum<["up", "down", "left", "right"]>;
|
|
7
7
|
type Direction = "up" | "down" | "left" | "right";
|
|
@@ -17759,6 +17759,10 @@ type PartsEngine = {
|
|
|
17759
17759
|
sourceComponent: AnySourceComponent;
|
|
17760
17760
|
footprinterString?: string;
|
|
17761
17761
|
}) => Promise<SupplierPartNumbers> | SupplierPartNumbers;
|
|
17762
|
+
fetchPartCircuitJson?: (params: {
|
|
17763
|
+
supplierPartNumber?: string;
|
|
17764
|
+
manufacturerPartNumber?: string;
|
|
17765
|
+
}) => Promise<AnyCircuitElement[] | undefined> | AnyCircuitElement[] | undefined;
|
|
17762
17766
|
};
|
|
17763
17767
|
interface PcbRouteCache {
|
|
17764
17768
|
pcbTraces: PcbTrace[];
|
package/dist/index.js
CHANGED
|
@@ -16069,7 +16069,10 @@ var ninePointAnchor = z23.enum([
|
|
|
16069
16069
|
import { z as z37 } from "zod";
|
|
16070
16070
|
|
|
16071
16071
|
// lib/components/group.ts
|
|
16072
|
-
import {
|
|
16072
|
+
import {
|
|
16073
|
+
length as length3,
|
|
16074
|
+
distance as distance11
|
|
16075
|
+
} from "circuit-json";
|
|
16073
16076
|
import { z as z36 } from "zod";
|
|
16074
16077
|
|
|
16075
16078
|
// lib/manual-edits/manual-edit-events/base_manual_edit_event.ts
|