@prefecthq/prefect-ui-library 1.1.27 → 1.2.0
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/{index-dc8f4457.mjs → index-c9eb9416.mjs} +2058 -2021
- package/dist/{index-dc8f4457.mjs.map → index-c9eb9416.mjs.map} +1 -1
- package/dist/prefect-ui-library.mjs +1 -1
- package/dist/prefect-ui-library.umd.js +28 -28
- package/dist/prefect-ui-library.umd.js.map +1 -1
- package/dist/types/src/compositions/useBlockDocument.d.ts +5 -3
- package/dist/types/src/compositions/useBlockSchema.d.ts +6 -4
- package/dist/types/src/compositions/useBlockType.d.ts +6 -4
- package/dist/types/src/compositions/useDeployment.d.ts +5 -3
- package/dist/types/src/compositions/useFlow.d.ts +5 -3
- package/dist/types/src/compositions/useFlowRun.d.ts +5 -3
- package/dist/types/src/compositions/useTaskRun.d.ts +5 -3
- package/dist/types/src/compositions/useTaskRunsCount.d.ts +5 -2
- package/dist/types/src/compositions/useWorkPoolQueue.d.ts +5 -3
- package/dist/types/src/compositions/useWorkQueueStatus.d.ts +5 -3
- package/dist/types/src/types/useEntitySubscription.d.ts +7 -0
- package/dist/{viewport.es-20251669-db135123.mjs → viewport.es-20251669-d77ce039.mjs} +2 -2
- package/dist/{viewport.es-20251669-db135123.mjs.map → viewport.es-20251669-d77ce039.mjs.map} +1 -1
- package/package.json +1 -1
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
import { WorkspaceBlockDocumentsApi } from '../services/WorkspaceBlockDocumentsApi';
|
|
3
|
+
import { UseEntitySubscription } from '../types/useEntitySubscription';
|
|
4
|
+
export type UseBlockDocument = UseEntitySubscription<WorkspaceBlockDocumentsApi['getBlockDocument'], 'blockDocument'>;
|
|
5
|
+
export declare function useBlockDocument(blockDocumentId: string | Ref<string | null | null>): UseBlockDocument;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
export
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
import { WorkspaceBlockSchemasApi } from '../services/WorkspaceBlockSchemasApi';
|
|
3
|
+
import { UseEntitySubscription } from '../types/useEntitySubscription';
|
|
4
|
+
export type UseBlockSchema = UseEntitySubscription<WorkspaceBlockSchemasApi['getBlockSchema'], 'blockSchema'>;
|
|
5
|
+
export declare function useBlockSchema(blockSchemaId: string | Ref<string | null | null>): UseBlockSchema;
|
|
6
|
+
export declare function useBlockSchemaForBlockType(blockTypeId: string | Ref<string | null | null>): UseBlockSchema;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
export
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
import { WorkspaceBlockTypesApi } from '../services/WorkspaceBlockTypesApi';
|
|
3
|
+
import { UseEntitySubscription } from '../types/useEntitySubscription';
|
|
4
|
+
export type UseBlockType = UseEntitySubscription<WorkspaceBlockTypesApi['getBlockType'], 'blockType'>;
|
|
5
|
+
export declare function useBlockType(blockTypeId: string | Ref<string | null | undefined>): UseBlockType;
|
|
6
|
+
export declare function useBlockTypeBySlug(blockTypeSlug: string | Ref<string | null | undefined>): UseBlockType;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
import { WorkspaceDeploymentsApi } from '../services/WorkspaceDeploymentsApi';
|
|
3
|
+
import { UseEntitySubscription } from '../types/useEntitySubscription';
|
|
4
|
+
export type UseDeployment = UseEntitySubscription<WorkspaceDeploymentsApi['getDeployment'], 'deployment'>;
|
|
5
|
+
export declare function useDeployment(deploymentId: string | Ref<string | null | undefined>): UseDeployment;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
import { WorkspaceFlowsApi } from '../services/WorkspaceFlowsApi';
|
|
3
|
+
import { UseEntitySubscription } from '../types/useEntitySubscription';
|
|
4
|
+
export type UseFlow = UseEntitySubscription<WorkspaceFlowsApi['getFlow'], 'flow'>;
|
|
5
|
+
export declare function useFlow(flowId: string | Ref<string | null | undefined>): UseFlow;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
import { WorkspaceFlowRunsApi } from '../services';
|
|
3
|
+
import { UseEntitySubscription } from '../types/useEntitySubscription';
|
|
4
|
+
export type UseFlowRun = UseEntitySubscription<WorkspaceFlowRunsApi['getFlowRun'], 'flowRun'>;
|
|
5
|
+
export declare function useFlowRun(flowRunId: string | Ref<string | null | undefined>): UseFlowRun;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
import { WorkspaceTaskRunsApi } from '../services/WorkspaceTaskRunsApi';
|
|
3
|
+
import { UseEntitySubscription } from '../types/useEntitySubscription';
|
|
4
|
+
export type UseTaskRun = UseEntitySubscription<WorkspaceTaskRunsApi['getTaskRun'], 'taskRun'>;
|
|
5
|
+
export declare function useTaskRun(taskRunId: string | Ref<string | null | undefined>): UseTaskRun;
|
|
@@ -1,2 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
import { WorkspaceTaskRunsApi } from '../services/WorkspaceTaskRunsApi';
|
|
3
|
+
import { UseEntitySubscription } from '../types/useEntitySubscription';
|
|
4
|
+
export type UseTaskRunsCount = UseEntitySubscription<WorkspaceTaskRunsApi['getTaskRunsCount'], 'taskRunsCount'>;
|
|
5
|
+
export declare function useTaskRunsCount(flowRunId: string | Ref<string | null | undefined>): UseTaskRunsCount;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
import { WorkspaceWorkQueuesApi } from '../services/WorkspaceWorkQueuesApi';
|
|
3
|
+
import { UseEntitySubscription } from '../types/useEntitySubscription';
|
|
4
|
+
export type UseWorkPoolQueue = UseEntitySubscription<WorkspaceWorkQueuesApi['getWorkQueue'], 'workPoolQueue'>;
|
|
5
|
+
export declare function useWorkPoolQueue(workPoolQueueId: string | Ref<string | null | undefined>): UseWorkPoolQueue;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
import { WorkspaceWorkQueuesApi } from '../services/WorkspaceWorkQueuesApi';
|
|
3
|
+
import { UseEntitySubscription } from '../types/useEntitySubscription';
|
|
4
|
+
export type UseWorkQueueStatus = UseEntitySubscription<WorkspaceWorkQueuesApi['getWorkQueueStatus'], 'workQueueStatus'>;
|
|
5
|
+
export declare function useWorkQueueStatus(workQueueId: string | Ref<string | null | undefined>): UseWorkQueueStatus;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Action, UseSubscription } from '@prefecthq/vue-compositions';
|
|
2
|
+
import { ComputedRef } from 'vue';
|
|
3
|
+
export type UseEntitySubscription<T extends Action, PropertyName extends string> = {
|
|
4
|
+
subscription: UseSubscription<T | (() => undefined)>;
|
|
5
|
+
} & {
|
|
6
|
+
[P in PropertyName]: ComputedRef<UseSubscription<T | (() => undefined)>['response']>;
|
|
7
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { u as c, Q as b, X as O, l as k } from "./index-
|
|
1
|
+
import { u as c, Q as b, X as O, l as k } from "./index-c9eb9416.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
|
$ as Wheel
|
|
1537
1537
|
};
|
|
1538
|
-
//# sourceMappingURL=viewport.es-20251669-
|
|
1538
|
+
//# sourceMappingURL=viewport.es-20251669-d77ce039.mjs.map
|