@prefecthq/prefect-ui-library 1.5.4 → 1.5.6

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.
@@ -1,15 +1,25 @@
1
- import { TimelineVisibleDateRange } from '@prefecthq/graphs';
1
+ import { NodeSelectionEvent, TimelineVisibleDateRange } from '@prefecthq/graphs';
2
2
  import { FlowRun } from '../models';
3
3
  declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
4
4
  flowRun: FlowRun;
5
5
  visibleDateRange?: TimelineVisibleDateRange | undefined;
6
+ height: string;
7
+ selectedNode: NodeSelectionEvent | null;
6
8
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
7
9
  "update:visibleDateRange": (value: TimelineVisibleDateRange | undefined) => void;
10
+ } & {
11
+ selection: (value: NodeSelectionEvent | null) => void;
12
+ } & {
13
+ "update:fullscreen": (value: boolean) => void;
8
14
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
9
15
  flowRun: FlowRun;
10
16
  visibleDateRange?: TimelineVisibleDateRange | undefined;
17
+ height: string;
18
+ selectedNode: NodeSelectionEvent | null;
11
19
  }>>> & {
12
20
  "onUpdate:visibleDateRange"?: ((value: TimelineVisibleDateRange | undefined) => any) | undefined;
21
+ onSelection?: ((value: NodeSelectionEvent | null) => any) | undefined;
22
+ "onUpdate:fullscreen"?: ((value: boolean) => any) | undefined;
13
23
  }, {}>;
14
24
  export default _default;
15
25
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
@@ -27,6 +27,7 @@ export * from './useShowModal';
27
27
  export * from './useStatePolling';
28
28
  export * from './useTabs';
29
29
  export * from './useTaskRun';
30
+ export * from './useTaskRunResult';
30
31
  export * from './useTaskRunsCount';
31
32
  export * from './useWorkPoolQueue';
32
33
  export * from './useWorkQueueStatus';
@@ -0,0 +1,10 @@
1
+ import { UseSubscription } from '@prefecthq/vue-compositions';
2
+ import { ComputedRef } from 'vue';
3
+ import { Artifact } from '../models';
4
+ import { WorkspaceArtifactsApi } from '../services/WorkspaceArtifactsApi';
5
+ import { MaybeRef } from '../types';
6
+ export type UseTaskRunResult = {
7
+ subscription: UseSubscription<WorkspaceArtifactsApi['getArtifacts']>;
8
+ result: ComputedRef<Artifact | undefined>;
9
+ };
10
+ export declare function useTaskRunResult(taskRunId: MaybeRef<string | null | undefined>): UseTaskRunResult;
@@ -99,6 +99,7 @@ export declare const localization: {
99
99
  updateWorkQueue: string;
100
100
  };
101
101
  info: {
102
+ with: string;
102
103
  artifact: string;
103
104
  artifacts: string;
104
105
  addTagPlaceholder: string;
@@ -138,6 +139,7 @@ export declare const localization: {
138
139
  workQueue: string;
139
140
  filterByTags: string;
140
141
  invalidData: (docsUrl: string) => string;
142
+ result: string;
141
143
  noResults: string;
142
144
  none: string;
143
145
  infraOverrides: string;
@@ -99,6 +99,7 @@ export declare const en: {
99
99
  updateWorkQueue: string;
100
100
  };
101
101
  info: {
102
+ with: string;
102
103
  artifact: string;
103
104
  artifacts: string;
104
105
  addTagPlaceholder: string;
@@ -138,6 +139,7 @@ export declare const en: {
138
139
  workQueue: string;
139
140
  filterByTags: string;
140
141
  invalidData: (docsUrl: string) => string;
142
+ result: string;
141
143
  noResults: string;
142
144
  none: string;
143
145
  infraOverrides: string;
@@ -2,7 +2,7 @@ import { InjectionKey } from 'vue';
2
2
  import { MaybeRef } from '../types/reactivity';
3
3
  export declare const workspaceFeatureFlags: readonly ["access:collections", "access:workers", "access:variables"];
4
4
  export type WorkspaceFeatureFlag = typeof workspaceFeatureFlags[number];
5
- export declare const workspacePermissions: readonly ["create:automation", "create:block", "create:concurrency_limit", "create:deployment", "create:flow_run", "create:flow", "create:log", "create:notification_policy", "create:saved_search", "create:task_run", "create:variable", "create:work_queue", "create:work_pool_queue", "create:work_pool", "create:workspace_bot_access", "create:workspace_user_access", "delete:automation", "delete:block", "delete:concurrency_limit", "delete:deployment", "delete:flow_run", "delete:flow", "delete:notification_policy", "delete:saved_search", "delete:task_run", "delete:work_queue", "delete:work_pool_queue", "delete:work_pool", "delete:workspace_bot_access", "delete:workspace_user_access", "delete:variable", "read:automation", "read:block", "read:concurrency_limit", "read:deployment", "read:flow_run", "read:flow", "read:log", "read:notification_policy", "read:saved_search", "read:task_run", "read:variable", "read:work_queue", "read:work_pool_queue", "read:work_pool", "read:workspace_bot_access", "read:workspace_settings", "read:workspace_user_access", "run:deployment", "update:automation", "update:block", "update:deployment", "update:flow_run", "update:flow", "update:notification_policy", "update:task_run", "update:variable", "update:work_queue", "update:work_pool_queue", "update:work_pool", "update:workspace_bot_access", "update:workspace_settings", "update:workspace_user_access", "update:workspace"];
5
+ export declare const workspacePermissions: readonly ["create:artifact", "create:automation", "create:block", "create:concurrency_limit", "create:deployment", "create:flow_run", "create:flow", "create:log", "create:notification_policy", "create:saved_search", "create:task_run", "create:variable", "create:work_queue", "create:work_pool_queue", "create:work_pool", "create:workspace_bot_access", "create:workspace_user_access", "delete:artifact", "delete:automation", "delete:block", "delete:concurrency_limit", "delete:deployment", "delete:flow_run", "delete:flow", "delete:notification_policy", "delete:saved_search", "delete:task_run", "delete:work_queue", "delete:work_pool_queue", "delete:work_pool", "delete:workspace_bot_access", "delete:workspace_user_access", "delete:variable", "read:artifact", "read:automation", "read:block", "read:concurrency_limit", "read:deployment", "read:flow_run", "read:flow", "read:log", "read:notification_policy", "read:saved_search", "read:task_run", "read:variable", "read:work_queue", "read:work_pool_queue", "read:work_pool", "read:workspace_bot_access", "read:workspace_settings", "read:workspace_user_access", "run:deployment", "update:automation", "update:block", "update:deployment", "update:flow_run", "update:flow", "update:notification_policy", "update:task_run", "update:variable", "update:work_queue", "update:work_pool_queue", "update:work_pool", "update:workspace_bot_access", "update:workspace_settings", "update:workspace_user_access", "update:workspace"];
6
6
  export type WorkspacePermission = typeof workspacePermissions[number];
7
7
  export type PermissionValue = boolean | undefined;
8
8
  export type PermissionVerb<T extends string> = T extends `${infer Action}:${string}` ? Action : never;
@@ -1,4 +1,4 @@
1
- import { f as c, $ as b, X as O, c as k } from "./index-ce542085.mjs";
1
+ import { X as O, c as k, $ as b, f as c } from "./index-b96e95af.mjs";
2
2
  import "vue";
3
3
  import "@prefecthq/vue-charts";
4
4
  import "@prefecthq/prefect-design";
@@ -1535,4 +1535,4 @@ export {
1535
1535
  C as Viewport,
1536
1536
  N as Wheel
1537
1537
  };
1538
- //# sourceMappingURL=viewport.es-87938ebd-22223d03.mjs.map
1538
+ //# sourceMappingURL=viewport.es-a4ca92c6-99196cab.mjs.map