@wise/dynamic-flow-client 3.6.2 → 3.7.1
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.
|
@@ -2,5 +2,6 @@ export interface DebouncedFunc<T extends (...args: Parameters<T>) => ReturnType<
|
|
|
2
2
|
(...args: Parameters<T>): void;
|
|
3
3
|
cancel: () => void;
|
|
4
4
|
flush: () => void;
|
|
5
|
+
isPending: () => boolean;
|
|
5
6
|
}
|
|
6
7
|
export declare const debounce: <T extends (...args: Parameters<T>) => ReturnType<T>>(callback: T, waitMs: number) => DebouncedFunc<T>;
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import type { Schema } from '@wise/dynamic-flow-types';
|
|
2
2
|
type FetchRefresh = (url: string, data: unknown, etag: string | undefined) => Promise<void | null>;
|
|
3
|
-
export declare function useDebouncedRefresh(fetchRefresh: FetchRefresh):
|
|
3
|
+
export declare function useDebouncedRefresh(fetchRefresh: FetchRefresh): {
|
|
4
|
+
debouncedRefresh: (url: string, data: unknown, etag: string | undefined, schema: Schema) => void;
|
|
5
|
+
isDebouncing: boolean;
|
|
6
|
+
cancelPendingRefreshes: () => void;
|
|
7
|
+
};
|
|
4
8
|
export declare const shouldDebounceSchema: (schema: Schema) => boolean;
|
|
5
9
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wise/dynamic-flow-client",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.7.1",
|
|
4
4
|
"description": "Dynamic Flow web client",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "./build/main.min.js",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"@testing-library/react": "14.3.0",
|
|
41
41
|
"@testing-library/react-hooks": "8.0.1",
|
|
42
42
|
"@testing-library/user-event": "14.5.2",
|
|
43
|
-
"@transferwise/components": "46.
|
|
43
|
+
"@transferwise/components": "46.27.0",
|
|
44
44
|
"@transferwise/formatting": "^2.13.0",
|
|
45
45
|
"@transferwise/icons": "3.13.0",
|
|
46
46
|
"@transferwise/neptune-css": "14.9.6",
|
|
@@ -51,11 +51,10 @@
|
|
|
51
51
|
"@types/react-dom": "18",
|
|
52
52
|
"@types/react-intl": "3.0.0",
|
|
53
53
|
"@types/testing-library__jest-dom": "5.14.9",
|
|
54
|
-
"@wise/art": "2.
|
|
54
|
+
"@wise/art": "2.7.0",
|
|
55
55
|
"@wise/components-theming": "^0.8.4",
|
|
56
56
|
"@wise/forms": "0.3.4",
|
|
57
57
|
"babel-jest": "29.7.0",
|
|
58
|
-
"currency-flags": "4.0.7",
|
|
59
58
|
"enzyme": "^3.11.0",
|
|
60
59
|
"esbuild": "0.20.2",
|
|
61
60
|
"jest": "29.7.0",
|
|
@@ -81,6 +80,7 @@
|
|
|
81
80
|
},
|
|
82
81
|
"peerDependencies": {
|
|
83
82
|
"@transferwise/components": "^46.10",
|
|
83
|
+
"@wise/art": "^2.7.0",
|
|
84
84
|
"@transferwise/formatting": "^2",
|
|
85
85
|
"@transferwise/icons": "^3",
|
|
86
86
|
"@transferwise/neptune-css": "^14",
|