@prefecthq/graphs 0.1.1 → 0.1.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.
- package/dist/graphs.mjs +1632 -1604
- package/dist/graphs.mjs.map +1 -1
- package/dist/graphs.umd.js +21 -21
- package/dist/graphs.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types/demo/utilities/timescaleData.d.ts +2 -2
- package/dist/types/src/index.d.ts +1 -0
- package/dist/types/src/models/FlowRunTimeline.d.ts +3 -3
- package/package.json +5 -5
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
.flow-run-timeline{position:relative;height:100%;width:100%}.flow-run-timeline__zoom-controls{position:absolute;top:1rem;right:1rem;z-index:10;display:flex;gap:.25rem}.flow-run-timeline__canvas-container{position:relative;height:100%;width:100%;overflow:hidden;border-radius:.5rem;--tw-bg-opacity: 1;background-color:rgb(241 245 249 / var(--tw-bg-opacity))}.flow-run-timeline__canvas-container canvas{position:absolute;top:0px;left:0px;height:100%;width:100%}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type
|
|
1
|
+
export type TimelineNodeState = 'completed' | 'running' | 'scheduled' | 'pending' | 'failed' | 'cancelled' | 'crashed' | 'paused';
|
|
2
2
|
export type Shape = 'linear' | 'fanOut' | 'fanOutIn';
|
|
3
3
|
export type DataOptions = {
|
|
4
4
|
start?: Date;
|
|
@@ -13,7 +13,7 @@ type TimescaleItem = {
|
|
|
13
13
|
start: Date;
|
|
14
14
|
end: Date | null;
|
|
15
15
|
upstreamDependencies: TimescaleItem[];
|
|
16
|
-
state:
|
|
16
|
+
state: TimelineNodeState;
|
|
17
17
|
};
|
|
18
18
|
declare const generateTimescaleData: (options?: DataOptions) => TimescaleItem[];
|
|
19
19
|
export type { TimescaleItem };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { IBitmapTextStyle } from 'pixi.js';
|
|
2
|
-
export type
|
|
2
|
+
export type TimelineNodeState = 'completed' | 'running' | 'scheduled' | 'pending' | 'failed' | 'cancelled' | 'crashed' | 'paused';
|
|
3
3
|
export type TimelineNodeData = {
|
|
4
4
|
id: string;
|
|
5
5
|
label: string;
|
|
6
6
|
start: Date;
|
|
7
7
|
end: Date | null;
|
|
8
|
-
upstreamDependencies
|
|
9
|
-
state:
|
|
8
|
+
upstreamDependencies?: TimelineNodeData[];
|
|
9
|
+
state: TimelineNodeState | string;
|
|
10
10
|
};
|
|
11
11
|
export type TextStyles = {
|
|
12
12
|
nodeTextDefault: Partial<IBitmapTextStyle>;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prefecthq/graphs",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.3",
|
|
5
5
|
"description": "Large scale graphs designed for Prefect",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"serve": "vite --host --mode=demo",
|
|
@@ -13,12 +13,12 @@
|
|
|
13
13
|
"changelog": "auto-changelog --package --commit-limit 0",
|
|
14
14
|
"version": "npm run changelog && git add CHANGELOG.md"
|
|
15
15
|
},
|
|
16
|
-
"main": "./dist/
|
|
17
|
-
"module": "./dist/
|
|
16
|
+
"main": "./dist/graphs.umd.js",
|
|
17
|
+
"module": "./dist/graphs.mjs",
|
|
18
18
|
"exports": {
|
|
19
19
|
".": {
|
|
20
|
-
"import": "./dist/
|
|
21
|
-
"require": "./dist/
|
|
20
|
+
"import": "./dist/graphs.mjs",
|
|
21
|
+
"require": "./dist/graphs.umd.js"
|
|
22
22
|
},
|
|
23
23
|
"./dist/style.css": "./dist/style.css"
|
|
24
24
|
},
|