@prefecthq/prefect-ui-library 2.4.5 → 2.4.7

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.
@@ -0,0 +1,86 @@
1
+ import { useThemeTokens as useDesignThemeTokens } from '@prefecthq/prefect-design';
2
+ type ThemeTokens = ReturnType<typeof useDesignThemeTokens> & ReturnType<typeof getTokens>;
3
+ export declare const useThemeTokens: () => Readonly<ThemeTokens>;
4
+ declare function getTokens(): {
5
+ stateCompleted50: string;
6
+ stateCompleted100: string;
7
+ stateCompleted200: string;
8
+ stateCompleted300: string;
9
+ stateCompleted400: string;
10
+ stateCompleted500: string;
11
+ stateCompleted600: string;
12
+ stateCompleted700: string;
13
+ stateCompleted800: string;
14
+ stateCompleted900: string;
15
+ stateFailed50: string;
16
+ stateFailed100: string;
17
+ stateFailed200: string;
18
+ stateFailed300: string;
19
+ stateFailed400: string;
20
+ stateFailed500: string;
21
+ stateFailed600: string;
22
+ stateFailed700: string;
23
+ stateFailed800: string;
24
+ stateFailed900: string;
25
+ stateRunning50: string;
26
+ stateRunning100: string;
27
+ stateRunning200: string;
28
+ stateRunning300: string;
29
+ stateRunning400: string;
30
+ stateRunning500: string;
31
+ stateRunning600: string;
32
+ stateRunning700: string;
33
+ stateRunning800: string;
34
+ stateRunning900: string;
35
+ statePending50: string;
36
+ statePending100: string;
37
+ statePending200: string;
38
+ statePending300: string;
39
+ statePending400: string;
40
+ statePending500: string;
41
+ statePending600: string;
42
+ statePending700: string;
43
+ statePending800: string;
44
+ statePending900: string;
45
+ statePaused50: string;
46
+ statePaused100: string;
47
+ statePaused200: string;
48
+ statePaused300: string;
49
+ statePaused400: string;
50
+ statePaused500: string;
51
+ statePaused600: string;
52
+ statePaused700: string;
53
+ statePaused800: string;
54
+ statePaused900: string;
55
+ stateScheduled50: string;
56
+ stateScheduled100: string;
57
+ stateScheduled200: string;
58
+ stateScheduled300: string;
59
+ stateScheduled400: string;
60
+ stateScheduled500: string;
61
+ stateScheduled600: string;
62
+ stateScheduled700: string;
63
+ stateScheduled800: string;
64
+ stateScheduled900: string;
65
+ stateCancelled50: string;
66
+ stateCancelled100: string;
67
+ stateCancelled200: string;
68
+ stateCancelled300: string;
69
+ stateCancelled400: string;
70
+ stateCancelled500: string;
71
+ stateCancelled600: string;
72
+ stateCancelled700: string;
73
+ stateCancelled800: string;
74
+ stateCancelled900: string;
75
+ stateCrashed50: string;
76
+ stateCrashed100: string;
77
+ stateCrashed200: string;
78
+ stateCrashed300: string;
79
+ stateCrashed400: string;
80
+ stateCrashed500: string;
81
+ stateCrashed600: string;
82
+ stateCrashed700: string;
83
+ stateCrashed800: string;
84
+ stateCrashed900: string;
85
+ };
86
+ export {};
@@ -0,0 +1,5 @@
1
+ import { FlowRunsFilter, TaskRunsFilter } from '../models';
2
+ import { MapFunction } from '../services/Mapper';
3
+ import { DeploymentStatsFilter } from '../types/deployment';
4
+ export declare const mapDeploymentStatsFilterToFlowRunsFilter: MapFunction<DeploymentStatsFilter, FlowRunsFilter>;
5
+ export declare const mapDeploymentStatsFilterToTaskRunsFilter: MapFunction<DeploymentStatsFilter, TaskRunsFilter>;
@@ -106,6 +106,9 @@ export declare const maps: {
106
106
  DeploymentStatus: {
107
107
  ServerDeploymentStatus: import("..").MapFunction<"ready" | "not_ready", "READY" | "NOT_READY">;
108
108
  };
109
+ DeploymentStatsFilter: {
110
+ FlowRunsFilter: import("..").MapFunction<import("../types/deployment").DeploymentStatsFilter, import("..").FlowRunsFilter>;
111
+ };
109
112
  DeploymentUpdate: {
110
113
  DeploymentUpdateRequest: import("..").MapFunction<import("..").DeploymentUpdate, Partial<{
111
114
  name: string | null;
@@ -130,6 +130,9 @@ export declare const mapper: Mapper<{
130
130
  DeploymentStatus: {
131
131
  ServerDeploymentStatus: MapFunction<"ready" | "not_ready", "READY" | "NOT_READY">;
132
132
  };
133
+ DeploymentStatsFilter: {
134
+ FlowRunsFilter: MapFunction<import("../types/deployment").DeploymentStatsFilter, import("..").FlowRunsFilter>;
135
+ };
133
136
  DeploymentUpdate: {
134
137
  DeploymentUpdateRequest: MapFunction<import("..").DeploymentUpdate, Partial<{
135
138
  name: string | null;
@@ -0,0 +1,4 @@
1
+ export type DeploymentStatsFilter = {
2
+ timeSpanInSeconds: number;
3
+ deploymentId: string;
4
+ };
@@ -1,4 +1,10 @@
1
+ import { Ref } from 'vue';
1
2
  import { ColorMode } from '../types/ColorMode';
2
3
  export declare function getColorModeClass(mode: ColorMode | null): string;
3
4
  export declare function isColorMode(value: unknown): value is ColorMode;
4
5
  export declare function applyColorModeClass(value: ColorMode | null): void;
6
+ type UseColorMode = {
7
+ value: Readonly<Ref<ColorMode | null>>;
8
+ };
9
+ export declare function useColorMode(): UseColorMode;
10
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prefecthq/prefect-ui-library",
3
- "version": "2.4.5",
3
+ "version": "2.4.7",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
@@ -63,7 +63,7 @@
63
63
  "vue-tsc": "1.8.24"
64
64
  },
65
65
  "peerDependencies": {
66
- "@prefecthq/prefect-design": "^2.1.0",
66
+ "@prefecthq/prefect-design": "^2.1.3",
67
67
  "@prefecthq/vue-charts": "^2.0.3",
68
68
  "@prefecthq/vue-compositions": "^1.6.6",
69
69
  "vee-validate": "^4.7.0",