@prefecthq/graphs 2.2.1 → 2.2.3

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.
@@ -3,7 +3,7 @@ export type ArtifactType = typeof artifactTypes[number];
3
3
  export type RunGraphArtifact = {
4
4
  id: string;
5
5
  created: Date;
6
- key: string;
6
+ key?: string;
7
7
  type: ArtifactType;
8
8
  };
9
9
  export declare const artifactTypeIconMap: {
@@ -1,4 +1,10 @@
1
1
  import { RunGraphNode } from '../models';
2
+ export type GraphSelectionPosition = {
3
+ x: number;
4
+ y: number;
5
+ width: number;
6
+ height: number;
7
+ };
2
8
  export type NodeSelection = {
3
9
  kind: RunGraphNode['kind'];
4
10
  id: string;
@@ -12,6 +18,7 @@ export declare function isArtifactSelection(selection: GraphItemSelection): sele
12
18
  export type ArtifactsSelection = {
13
19
  kind: 'artifacts';
14
20
  ids: string[];
21
+ position?: GraphSelectionPosition;
15
22
  };
16
23
  export declare function isArtifactsSelection(selection: GraphItemSelection): selection is ArtifactsSelection;
17
24
  export type GraphItemSelection = NodeSelection | ArtifactSelection | ArtifactsSelection;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@prefecthq/graphs",
3
3
  "private": false,
4
- "version": "2.2.1",
4
+ "version": "2.2.3",
5
5
  "description": "Large scale graphs designed for Prefect",
6
6
  "scripts": {
7
7
  "serve": "vite --host --mode=demo",