@prefecthq/graphs 2.2.3 → 2.2.5
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/graphs.mjs +3738 -3665
- package/dist/graphs.mjs.map +1 -1
- package/dist/graphs.umd.js +63 -63
- package/dist/graphs.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types/src/models/RunGraph.d.ts +2 -1
- package/dist/types/src/models/index.d.ts +1 -0
- package/dist/types/src/models/selection.d.ts +7 -2
- package/dist/types/src/models/states.d.ts +2 -1
- package/package.json +2 -2
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.run-graph-settings{display:inline-block}.run-graph-settings__menu{padding:.5rem}.run-graph{position:relative}.run-graph--fullscreen{position:fixed;height:100vh!important;width:100vw!important;left:0;top:0}.run-graph__stage,.run-graph__stage>canvas{width:100%;height:100%}.run-graph__actions{position:absolute;bottom
|
|
1
|
+
.run-graph-settings{display:inline-block}.run-graph-settings__menu{padding:.5rem}.run-graph{position:relative}.run-graph--fullscreen{position:fixed;height:100vh!important;width:100vw!important;left:0;top:0}.run-graph__stage,.run-graph__stage>canvas{width:100%;height:100%}.run-graph__actions{position:absolute;bottom:.5rem;right:.5rem}
|
|
@@ -15,7 +15,7 @@ export type RunGraphData = {
|
|
|
15
15
|
end_time: Date | null;
|
|
16
16
|
nodes: RunGraphNodes;
|
|
17
17
|
artifacts?: RunGraphArtifact[];
|
|
18
|
-
|
|
18
|
+
states?: RunGraphStateEvent[];
|
|
19
19
|
};
|
|
20
20
|
export type RunGraphNodes = Map<string, RunGraphNode>;
|
|
21
21
|
export type RunGraphNode = {
|
|
@@ -75,6 +75,7 @@ export type RunGraphStyles = {
|
|
|
75
75
|
artifactIconSize?: number;
|
|
76
76
|
artifactIconColor?: ColorSource;
|
|
77
77
|
flowStateBarHeight?: number;
|
|
78
|
+
flowStateSelectedBarHeight?: number;
|
|
78
79
|
flowStateAreaAlpha?: number;
|
|
79
80
|
guideLineWidth?: number;
|
|
80
81
|
guideLineColor?: ColorSource;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RunGraphNode } from '../models';
|
|
1
|
+
import { RunGraphNode, RunGraphStateEvent } from '../models';
|
|
2
2
|
export type GraphSelectionPosition = {
|
|
3
3
|
x: number;
|
|
4
4
|
y: number;
|
|
@@ -21,4 +21,9 @@ export type ArtifactsSelection = {
|
|
|
21
21
|
position?: GraphSelectionPosition;
|
|
22
22
|
};
|
|
23
23
|
export declare function isArtifactsSelection(selection: GraphItemSelection): selection is ArtifactsSelection;
|
|
24
|
-
export
|
|
24
|
+
export interface StateSelection extends RunGraphStateEvent {
|
|
25
|
+
kind: 'state';
|
|
26
|
+
position?: GraphSelectionPosition;
|
|
27
|
+
}
|
|
28
|
+
export declare function isStateSelection(selection: GraphItemSelection): selection is StateSelection;
|
|
29
|
+
export type GraphItemSelection = NodeSelection | ArtifactSelection | ArtifactsSelection | StateSelection;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prefecthq/graphs",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "2.2.
|
|
4
|
+
"version": "2.2.5",
|
|
5
5
|
"description": "Large scale graphs designed for Prefect",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"serve": "vite --host --mode=demo",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"tailwindcss": "3.4.1",
|
|
53
53
|
"tsc-alias": "1.8.8",
|
|
54
54
|
"typescript": "5.3.3",
|
|
55
|
-
"vite": "5.1.
|
|
55
|
+
"vite": "5.1.5",
|
|
56
56
|
"vite-svg-loader": "^5.1.0",
|
|
57
57
|
"vue-tsc": "1.8.27"
|
|
58
58
|
},
|