@prefecthq/graphs 2.3.2 → 2.4.0

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.
@@ -21,10 +21,10 @@ export declare const DEFAULT_VIEWPORT_Z_INDEX = 1;
21
21
  export declare const DEFAULT_ROOT_EVENT_Z_INDEX = 2;
22
22
  export declare const DEFAULT_ROOT_FLOW_STATE_Z_INDEX = 3;
23
23
  export declare const DEFAULT_ROOT_ARTIFACT_Z_INDEX = 4;
24
- export declare const DEFAULT_SUBFLOW_BORDER_Z_INDEX = 0;
24
+ export declare const DEFAULT_NESTED_GRAPH_BORDER_Z_INDEX = 0;
25
+ export declare const DEFAULT_NESTED_GRAPH_NODES_Z_INDEX = 2;
25
26
  export declare const DEFAULT_SUBFLOW_EVENT_Z_INDEX = 1;
26
27
  export declare const DEFAULT_SUBFLOW_STATE_Z_INDEX = 2;
27
- export declare const DEFAULT_SUBFLOW_NODES_Z_INDEX = 2;
28
28
  export declare const DEFAULT_SUBFLOW_ARTIFACT_Z_INDEX = 3;
29
- export declare const DEFAULT_SUBFLOW_NODE_Z_INDEX = 4;
30
- export declare const DEFAULT_SUBFLOW_LABEL_Z_INDEX = 5;
29
+ export declare const DEFAULT_NESTED_GRAPH_NODE_Z_INDEX = 4;
30
+ export declare const DEFAULT_NODE_LABEL_Z_INDEX = 5;
@@ -1,11 +1,11 @@
1
1
  import { Container } from 'pixi.js';
2
2
  import { BoundsContainer } from '../models/boundsContainer';
3
3
  import { Pixels } from '../models/layout';
4
- import { RunGraphNode } from '../models/RunGraph';
4
+ import { RunGraphData, RunGraphNode } from '../models/RunGraph';
5
5
  export type NodeContainerFactory = Awaited<ReturnType<typeof nodeContainerFactory>>;
6
- export declare function nodeContainerFactory(node: RunGraphNode): Promise<{
6
+ export declare function nodeContainerFactory(node: RunGraphNode, nestedGraphData: RunGraphData | undefined): Promise<{
7
7
  element: BoundsContainer;
8
- render: (newNodeData: RunGraphNode) => Promise<BoundsContainer>;
8
+ render: (newNodeData: RunGraphNode, newNested: RunGraphData | undefined) => Promise<BoundsContainer>;
9
9
  bar: Container<import("pixi.js").DisplayObject>;
10
10
  setPosition: ({ x, y }: Pixels) => void;
11
11
  }>;
@@ -1,9 +1,9 @@
1
1
  import { BoundsContainer } from '../models/boundsContainer';
2
- import { RunGraphNode } from '../models/RunGraph';
2
+ import { RunGraphData, RunGraphNode } from '../models/RunGraph';
3
3
  export type TaskRunContainer = Awaited<ReturnType<typeof taskRunContainerFactory>>;
4
- export declare function taskRunContainerFactory(): Promise<{
4
+ export declare function taskRunContainerFactory(node: RunGraphNode, nestedGraphData: RunGraphData | undefined): Promise<{
5
5
  kind: "task-run";
6
6
  element: BoundsContainer;
7
- render: (node: RunGraphNode) => Promise<BoundsContainer>;
7
+ render: (newNodeData: RunGraphNode, newNestedGraph: RunGraphData | undefined) => Promise<BoundsContainer>;
8
8
  bar: import("pixi.js").Container<import("pixi.js").DisplayObject>;
9
9
  }>;
@@ -17,6 +17,10 @@ export type RunGraphData = {
17
17
  artifacts?: RunGraphArtifact[];
18
18
  states?: RunGraphStateEvent[];
19
19
  events?: RunGraphEvent[];
20
+ /**
21
+ * A map of nested task run graphs keyed by the id of the task run with RunGraphNodes that were created
22
+ */
23
+ nested_task_run_graphs?: Map<string, RunGraphData>;
20
24
  };
21
25
  export type RunGraphNodes = Map<string, RunGraphNode>;
22
26
  export type RunGraphNode = {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@prefecthq/graphs",
3
3
  "private": false,
4
- "version": "2.3.2",
4
+ "version": "2.4.0",
5
5
  "description": "Large scale graphs designed for Prefect",
6
6
  "scripts": {
7
7
  "serve": "vite --host --mode=demo",
@@ -45,17 +45,17 @@
45
45
  "@types/lodash.merge": "4.6.9",
46
46
  "@types/lodash.throttle": "^4.1.9",
47
47
  "@types/node": "^20.1.7",
48
- "@vitejs/plugin-vue": "5.0.4",
48
+ "@vitejs/plugin-vue": "5.0.5",
49
49
  "auto-changelog": "^2.4.0",
50
50
  "autoprefixer": "10.4.19",
51
51
  "eslint": "8.57.0",
52
52
  "postcss": "8.4.38",
53
- "tailwindcss": "3.4.1",
54
- "tsc-alias": "1.8.8",
53
+ "tailwindcss": "3.4.4",
54
+ "tsc-alias": "1.8.10",
55
55
  "typescript": "5.4.5",
56
56
  "vite": "5.2.12",
57
57
  "vite-svg-loader": "^5.1.0",
58
- "vue-tsc": "2.0.19"
58
+ "vue-tsc": "2.0.22"
59
59
  },
60
60
  "peerDependencies": {
61
61
  "@prefecthq/prefect-design": "^2.10.10",
@@ -66,14 +66,14 @@
66
66
  "dependencies": {
67
67
  "@pixi-essentials/cull": "2.0.0",
68
68
  "@pixi/ui": "^1.0.1",
69
- "d3": "7.8.5",
69
+ "d3": "7.9.0",
70
70
  "date-fns": "3.6.0",
71
71
  "fontfaceobserver": "^2.3.0",
72
72
  "gsap": "^3.12.2",
73
73
  "lodash.isequal": "4.5.0",
74
74
  "lodash.merge": "4.6.2",
75
75
  "lodash.throttle": "^4.1.1",
76
- "pixi-viewport": "5.0.1",
76
+ "pixi-viewport": "5.0.3",
77
77
  "pixi.js": "7.3.2"
78
78
  }
79
79
  }