@prefecthq/graphs 2.2.13 → 2.2.15
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/assets/{runGraph.worker-sd_Hkh50.js.map → runGraph.worker-C4c20Jgu.js.map} +1 -1
- package/dist/graphs.mjs +3468 -3466
- package/dist/graphs.mjs.map +1 -1
- package/dist/graphs.umd.js +61 -61
- package/dist/graphs.umd.js.map +1 -1
- package/dist/types/demo/components/AppNavigationBar.vue.d.ts +8 -8
- package/dist/types/src/components/RunGraph.vue.d.ts +11 -11
- package/dist/types/src/factories/eventData.d.ts +2 -2
- package/dist/types/src/models/RunGraph.d.ts +6 -4
- package/package.json +8 -8
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToOption<{
|
|
2
2
|
layout?: "horizontal" | "vertical" | undefined;
|
|
3
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<
|
|
3
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
|
|
4
4
|
layout?: "horizontal" | "vertical" | undefined;
|
|
5
5
|
}>>>, {}, {}>, {
|
|
6
6
|
prepend?(_: {
|
|
@@ -8,8 +8,13 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
8
8
|
}): any;
|
|
9
9
|
}>;
|
|
10
10
|
export default _default;
|
|
11
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
12
|
+
new (): {
|
|
13
|
+
$slots: S;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
11
16
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
12
|
-
type
|
|
17
|
+
type __VLS_TypePropsToOption<T> = {
|
|
13
18
|
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
14
19
|
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
15
20
|
} : {
|
|
@@ -17,8 +22,3 @@ type __VLS_TypePropsToRuntimeProps<T> = {
|
|
|
17
22
|
required: true;
|
|
18
23
|
};
|
|
19
24
|
};
|
|
20
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
21
|
-
new (): {
|
|
22
|
-
$slots: S;
|
|
23
|
-
};
|
|
24
|
-
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { RunGraphProps } from '../models/RunGraph';
|
|
2
2
|
import { GraphItemSelection } from '../models/selection';
|
|
3
3
|
import { ViewportDateRange } from '../models/viewport';
|
|
4
|
-
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<
|
|
4
|
+
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<RunGraphProps>, {
|
|
5
5
|
fullscreen: null;
|
|
6
6
|
selected: null;
|
|
7
7
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
8
8
|
"update:viewport": (value: ViewportDateRange) => void;
|
|
9
9
|
"update:fullscreen": (value: boolean) => void;
|
|
10
10
|
"update:selected": (value: GraphItemSelection | null) => void;
|
|
11
|
-
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<
|
|
11
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<RunGraphProps>, {
|
|
12
12
|
fullscreen: null;
|
|
13
13
|
selected: null;
|
|
14
14
|
}>>> & {
|
|
@@ -20,15 +20,6 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
20
20
|
fullscreen: boolean | null;
|
|
21
21
|
}, {}>;
|
|
22
22
|
export default _default;
|
|
23
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
24
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
25
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
26
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
27
|
-
} : {
|
|
28
|
-
type: import('vue').PropType<T[K]>;
|
|
29
|
-
required: true;
|
|
30
|
-
};
|
|
31
|
-
};
|
|
32
23
|
type __VLS_WithDefaults<P, D> = {
|
|
33
24
|
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
34
25
|
default: D[K];
|
|
@@ -37,3 +28,12 @@ type __VLS_WithDefaults<P, D> = {
|
|
|
37
28
|
type __VLS_Prettify<T> = {
|
|
38
29
|
[K in keyof T]: T[K];
|
|
39
30
|
} & {};
|
|
31
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
32
|
+
type __VLS_TypePropsToOption<T> = {
|
|
33
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
34
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
35
|
+
} : {
|
|
36
|
+
type: import('vue').PropType<T[K]>;
|
|
37
|
+
required: true;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MaybeRefOrGetter } from 'vue';
|
|
2
|
-
import { RunGraphEvent,
|
|
2
|
+
import { RunGraphEvent, RunGraphFetchEventsContext } from '../models';
|
|
3
3
|
type EventDataCallback = (data: RunGraphEvent[]) => void;
|
|
4
|
-
export declare function eventDataFactory(
|
|
4
|
+
export declare function eventDataFactory(context: MaybeRefOrGetter<RunGraphFetchEventsContext>, callback: EventDataCallback): Promise<{
|
|
5
5
|
start: () => Promise<void>;
|
|
6
6
|
stop: () => void;
|
|
7
7
|
}>;
|
|
@@ -37,11 +37,12 @@ export declare const runGraphNodeKinds: readonly ["flow-run", "task-run"];
|
|
|
37
37
|
export type RunGraphNodeKind = typeof runGraphNodeKinds[number];
|
|
38
38
|
export declare function isRunGraphNodeType(value: unknown): value is RunGraphNodeKind;
|
|
39
39
|
export type RunGraphFetch = (runId: string) => RunGraphData | Promise<RunGraphData>;
|
|
40
|
-
export type
|
|
41
|
-
|
|
42
|
-
|
|
40
|
+
export type RunGraphFetchEventsContext = {
|
|
41
|
+
nodeId: string;
|
|
42
|
+
since: Date;
|
|
43
|
+
until: Date;
|
|
43
44
|
};
|
|
44
|
-
export type RunGraphFetchEvents = (
|
|
45
|
+
export type RunGraphFetchEvents = (context: RunGraphFetchEventsContext) => RunGraphEvent[] | Promise<RunGraphEvent[]>;
|
|
45
46
|
export type RunGraphNodeStyles = {
|
|
46
47
|
background?: ColorSource;
|
|
47
48
|
};
|
|
@@ -105,6 +106,7 @@ export type RunGraphConfig = {
|
|
|
105
106
|
runId: string;
|
|
106
107
|
fetch: RunGraphFetch;
|
|
107
108
|
fetchEvents?: RunGraphFetchEvents;
|
|
109
|
+
fetchEventsInterval?: number;
|
|
108
110
|
animationDuration?: number;
|
|
109
111
|
styles?: RunGraphStyles;
|
|
110
112
|
disableAnimationsThreshold?: number;
|
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.15",
|
|
5
5
|
"description": "Large scale graphs designed for Prefect",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"serve": "vite --host --mode=demo",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
},
|
|
38
38
|
"homepage": "https://github.com/PrefectHQ/graphs#readme",
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@prefecthq/eslint-config": "1.0.
|
|
40
|
+
"@prefecthq/eslint-config": "1.0.32",
|
|
41
41
|
"@types/d3": "7.4.3",
|
|
42
42
|
"@types/fontfaceobserver": "^2.1.2",
|
|
43
43
|
"@types/lodash.isequal": "4.5.8",
|
|
@@ -46,15 +46,15 @@
|
|
|
46
46
|
"@types/node": "^20.1.7",
|
|
47
47
|
"@vitejs/plugin-vue": "5.0.4",
|
|
48
48
|
"auto-changelog": "^2.4.0",
|
|
49
|
-
"autoprefixer": "10.4.
|
|
50
|
-
"eslint": "8.
|
|
51
|
-
"postcss": "8.4.
|
|
49
|
+
"autoprefixer": "10.4.18",
|
|
50
|
+
"eslint": "8.57.0",
|
|
51
|
+
"postcss": "8.4.38",
|
|
52
52
|
"tailwindcss": "3.4.1",
|
|
53
53
|
"tsc-alias": "1.8.8",
|
|
54
54
|
"typescript": "5.3.3",
|
|
55
|
-
"vite": "5.
|
|
55
|
+
"vite": "5.2.6",
|
|
56
56
|
"vite-svg-loader": "^5.1.0",
|
|
57
|
-
"vue-tsc": "
|
|
57
|
+
"vue-tsc": "2.0.7"
|
|
58
58
|
},
|
|
59
59
|
"peerDependencies": {
|
|
60
60
|
"@prefecthq/prefect-design": "^2.3.1",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"dependencies": {
|
|
66
66
|
"@pixi-essentials/cull": "2.0.0",
|
|
67
67
|
"d3": "7.8.5",
|
|
68
|
-
"date-fns": "3.
|
|
68
|
+
"date-fns": "3.6.0",
|
|
69
69
|
"fontfaceobserver": "^2.3.0",
|
|
70
70
|
"gsap": "^3.12.2",
|
|
71
71
|
"lodash.isequal": "4.5.0",
|