@prefecthq/graphs 0.1.1 → 0.1.2

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/style.css CHANGED
@@ -1 +1 @@
1
- .prefect-dag{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));--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.prefect-dag canvas{position:absolute;top:0px;left:0px;height:100%;width:100%}
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 State = 'completed' | 'running' | 'scheduled' | 'pending' | 'failed' | 'cancelled' | 'crashed' | 'paused';
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: State;
16
+ state: TimelineNodeState;
17
17
  };
18
18
  declare const generateTimescaleData: (options?: DataOptions) => TimescaleItem[];
19
19
  export type { TimescaleItem };
@@ -1 +1,2 @@
1
1
  export { default as FlowRunTimeline } from './FlowRunTimeline.vue';
2
+ export * from './models';
@@ -1,12 +1,12 @@
1
1
  import { IBitmapTextStyle } from 'pixi.js';
2
- export type State = 'completed' | 'running' | 'scheduled' | 'pending' | 'failed' | 'cancelled' | 'crashed' | 'paused';
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: TimelineNodeData[];
9
- state: State;
8
+ upstreamDependencies?: TimelineNodeData[];
9
+ state: TimelineNodeState;
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.1",
4
+ "version": "0.1.2",
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/prefect-graphs.umd.js",
17
- "module": "./dist/prefect-graphs.mjs",
16
+ "main": "./dist/graphs.umd.js",
17
+ "module": "./dist/graphs.mjs",
18
18
  "exports": {
19
19
  ".": {
20
- "import": "./dist/prefect-graphs.mjs",
21
- "require": "./dist/prefect-graphs.umd.js"
20
+ "import": "./dist/graphs.mjs",
21
+ "require": "./dist/graphs.umd.js"
22
22
  },
23
23
  "./dist/style.css": "./dist/style.css"
24
24
  },