@prefecthq/prefect-ui-library 2.0.18 → 2.1.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/{FlowRunsPageWithDefaultFilter-21cb9510.mjs → FlowRunsPageWithDefaultFilter-18f1d475.mjs} +2 -2
- package/dist/{FlowRunsPageWithDefaultFilter-21cb9510.mjs.map → FlowRunsPageWithDefaultFilter-18f1d475.mjs.map} +1 -1
- package/dist/{index-6b4c6d67.mjs → index-9ae2a845.mjs} +13600 -13599
- package/dist/index-9ae2a845.mjs.map +1 -0
- package/dist/prefect-ui-library.mjs +1 -1
- package/dist/prefect-ui-library.umd.js +70 -70
- package/dist/prefect-ui-library.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types/src/components/CronScheduleForm.vue.d.ts +1 -1
- package/dist/types/src/components/DateRangeInput.vue.d.ts +1 -1
- package/dist/types/src/components/DeploymentCustomRunOverflowMenuItem.vue.d.ts +5 -4
- package/dist/types/src/components/FlowMenu.vue.d.ts +3 -1
- package/dist/types/src/components/FlowRunMenu.vue.d.ts +3 -1
- package/dist/types/src/components/IntervalScheduleForm.vue.d.ts +1 -1
- package/dist/types/src/components/LogoImage.vue.d.ts +1 -1
- package/dist/types/src/components/NotificationForm.vue.d.ts +1 -1
- package/dist/types/src/components/PageHeadingTaskRun.vue.d.ts +3 -1
- package/dist/types/src/models/BlockDocument.d.ts +3 -3
- package/dist/types/src/models/Deployment.d.ts +3 -3
- package/dist/types/src/models/ObjectLevelCan.d.ts +7 -6
- package/dist/{viewport.es-88169ec4-9f02deb0.mjs → viewport.es-88169ec4-61dde8f8.mjs} +2 -2
- package/dist/{viewport.es-88169ec4-9f02deb0.mjs.map → viewport.es-88169ec4-61dde8f8.mjs.map} +1 -1
- package/package.json +5 -5
- package/dist/index-6b4c6d67.mjs.map +0 -1
|
@@ -3,7 +3,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
3
3
|
type: import("vue").PropType<string>;
|
|
4
4
|
required: true;
|
|
5
5
|
};
|
|
6
|
-
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
6
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
7
|
+
delete: (...args: any[]) => void;
|
|
8
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
7
9
|
taskRunId: {
|
|
8
10
|
type: import("vue").PropType<string>;
|
|
9
11
|
required: true;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BlockSchema } from '../models/BlockSchema';
|
|
2
2
|
import { BlockType } from '../models/BlockType';
|
|
3
|
-
import {
|
|
3
|
+
import { ObjectLevelCan } from '../models/ObjectLevelCan';
|
|
4
4
|
import { SchemaValues } from '../types/schemas';
|
|
5
5
|
export type BlockDocumentReference = {
|
|
6
6
|
blockType: BlockType;
|
|
@@ -21,7 +21,7 @@ export interface IBlockDocument {
|
|
|
21
21
|
blockTypeId: string;
|
|
22
22
|
blockType: BlockType;
|
|
23
23
|
blockDocumentReferences: Record<string, unknown>;
|
|
24
|
-
can:
|
|
24
|
+
can: ObjectLevelCan<'block'>;
|
|
25
25
|
}
|
|
26
26
|
export declare class BlockDocument implements IBlockDocument {
|
|
27
27
|
readonly id: string;
|
|
@@ -35,6 +35,6 @@ export declare class BlockDocument implements IBlockDocument {
|
|
|
35
35
|
blockTypeId: string;
|
|
36
36
|
blockType: BlockType;
|
|
37
37
|
blockDocumentReferences: Record<string, unknown>;
|
|
38
|
-
can:
|
|
38
|
+
can: ObjectLevelCan<'block'>;
|
|
39
39
|
constructor(blockDocument: IBlockDocument);
|
|
40
40
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SchemaResponse } from '../models/api/SchemaResponse';
|
|
2
2
|
import { CreatedOrUpdatedBy } from '../models/CreatedOrUpdatedBy';
|
|
3
|
-
import {
|
|
3
|
+
import { ObjectLevelCan } from '../models/ObjectLevelCan';
|
|
4
4
|
import { Schedule } from '../models/Schedule';
|
|
5
5
|
import { Schema, SchemaValues } from '../types/schemas';
|
|
6
6
|
export interface IDeployment {
|
|
@@ -30,7 +30,7 @@ export interface IDeployment {
|
|
|
30
30
|
workPoolName: string | null;
|
|
31
31
|
enforceParameterSchema: boolean;
|
|
32
32
|
pullSteps: unknown;
|
|
33
|
-
can:
|
|
33
|
+
can: ObjectLevelCan<'deployment'>;
|
|
34
34
|
}
|
|
35
35
|
export declare class Deployment implements IDeployment {
|
|
36
36
|
readonly id: string;
|
|
@@ -59,7 +59,7 @@ export declare class Deployment implements IDeployment {
|
|
|
59
59
|
workPoolName: string | null;
|
|
60
60
|
enforceParameterSchema: boolean;
|
|
61
61
|
pullSteps: unknown;
|
|
62
|
-
can:
|
|
62
|
+
can: ObjectLevelCan<'deployment'>;
|
|
63
63
|
constructor(deployment: IDeployment);
|
|
64
64
|
get deprecated(): boolean;
|
|
65
65
|
get appliedBy(): string | null;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
type
|
|
3
|
-
|
|
1
|
+
import { WorkspacePermission } from '../services/can';
|
|
2
|
+
export type ObjectTypesWithPermissions = WorkspacePermission extends `${string}:${infer TObject}` ? TObject : never;
|
|
3
|
+
type ActionsForObjectsHelper<O extends string, T extends string> = T extends `${infer Action}:${infer TObject}` ? TObject extends O ? Action : never : never;
|
|
4
|
+
type PermissionsForObjectType<TObjectType extends ObjectTypesWithPermissions> = ActionsForObjectsHelper<TObjectType, WorkspacePermission>;
|
|
5
|
+
export type ObjectLevelCan<TObjectType extends ObjectTypesWithPermissions> = {
|
|
6
|
+
[key in PermissionsForObjectType<TObjectType>]: boolean;
|
|
4
7
|
};
|
|
5
|
-
export
|
|
6
|
-
export type BasicRunnablePermissionsObjectLevelCan = ObjectLevelCan<BasicPermissions | 'run'>;
|
|
7
|
-
export declare function createObjectLevelCan<T extends Record<string, boolean>>(): T;
|
|
8
|
+
export declare function createObjectLevelCan<T extends ObjectTypesWithPermissions>(): ObjectLevelCan<T>;
|
|
8
9
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { X as O, c as k, J as b, f as c } from "./index-
|
|
1
|
+
import { X as O, c as k, J as b, f as c } from "./index-9ae2a845.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-88169ec4-
|
|
1538
|
+
//# sourceMappingURL=viewport.es-88169ec4-61dde8f8.mjs.map
|