@prefecthq/prefect-ui-library 2.2.3 → 2.2.5
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-8a673c50.mjs → FlowRunsPageWithDefaultFilter-e4468e7f.mjs} +2 -2
- package/dist/{FlowRunsPageWithDefaultFilter-8a673c50.mjs.map → FlowRunsPageWithDefaultFilter-e4468e7f.mjs.map} +1 -1
- package/dist/{index-d548f057.mjs → index-35a42259.mjs} +7821 -7815
- package/dist/{index-d548f057.mjs.map → index-35a42259.mjs.map} +1 -1
- package/dist/prefect-ui-library.mjs +1 -1
- package/dist/prefect-ui-library.umd.js +38 -38
- package/dist/prefect-ui-library.umd.js.map +1 -1
- package/dist/types/src/compositions/usePagination.d.ts +1 -2
- package/dist/types/src/compositions/useSubscriptions.d.ts +2 -1
- package/package.json +2 -2
|
@@ -9,7 +9,6 @@ type PaginationFilter = {
|
|
|
9
9
|
type PaginationParameters = [filter?: PaginationFilter, ...any[]];
|
|
10
10
|
type PaginationFetchAction = (...parameters: PaginationParameters) => Promise<unknown[]>;
|
|
11
11
|
type PaginationCountAction = (...parameters: PaginationParameters) => Promise<number>;
|
|
12
|
-
type FetchSubscriptionAction<TFetch extends PaginationFetchAction> = (parameters: Parameters<TFetch>[]) => Promise<Awaited<ReturnType<TFetch>>>;
|
|
13
12
|
export type PaginationOptions = SubscriptionOptions & {
|
|
14
13
|
mode?: 'page' | 'infinite';
|
|
15
14
|
page?: MaybeRef<number>;
|
|
@@ -25,7 +24,7 @@ export type UsePaginationEntity<TFetch extends PaginationFetchAction, TCount ext
|
|
|
25
24
|
[P in TProperty]: ComputedRef<Awaited<ReturnType<TFetch>>>;
|
|
26
25
|
};
|
|
27
26
|
export type UsePagination<TFetch extends PaginationFetchAction, TCount extends PaginationCountAction> = {
|
|
28
|
-
subscriptions: UseSubscriptions<TCount |
|
|
27
|
+
subscriptions: UseSubscriptions<TCount | TFetch | (() => undefined)>['subscriptions'];
|
|
29
28
|
results: ComputedRef<Awaited<ReturnType<TFetch>>>;
|
|
30
29
|
total: ComputedRef<number>;
|
|
31
30
|
pages: ComputedRef<number>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Action, UseSubscription } from '@prefecthq/vue-compositions';
|
|
2
|
+
import { MaybeRefOrGetter } from 'vue';
|
|
2
3
|
type ExtractAction<T extends readonly UseSubscription<Action>[]> = {
|
|
3
4
|
[K in keyof T]: T[K] extends UseSubscription<infer V> ? V : never;
|
|
4
5
|
};
|
|
@@ -8,5 +9,5 @@ export type UseSubscriptions<T extends Action> = {
|
|
|
8
9
|
errors: UseSubscription<T>['error'][];
|
|
9
10
|
};
|
|
10
11
|
};
|
|
11
|
-
export declare function useSubscriptions<T extends UseSubscription<Action>[]>(subscriptions: T): UseSubscriptions<ExtractAction<T>[number]>;
|
|
12
|
+
export declare function useSubscriptions<T extends UseSubscription<Action>[]>(subscriptions: MaybeRefOrGetter<T>): UseSubscriptions<ExtractAction<T>[number]>;
|
|
12
13
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prefecthq/prefect-ui-library",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.5",
|
|
4
4
|
"private": false,
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"peerDependencies": {
|
|
66
66
|
"@prefecthq/prefect-design": "^2.0.11",
|
|
67
67
|
"@prefecthq/vue-charts": "^2.0.3",
|
|
68
|
-
"@prefecthq/vue-compositions": "1.6.
|
|
68
|
+
"@prefecthq/vue-compositions": "^1.6.6",
|
|
69
69
|
"vee-validate": "^4.7.0",
|
|
70
70
|
"vue": "^3.3.4",
|
|
71
71
|
"vue-router": "^4.0.12"
|