@ic-reactor/react 1.14.5 → 1.15.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.
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { BaseActor, FunctionName, UseQueryCallParameters,
|
|
1
|
+
import type { BaseActor, FunctionName, UseQueryCallParameters, UseQueryCallReturnType } from "../../../types";
|
|
2
2
|
/**
|
|
3
3
|
* Hook for making query calls to actors. It supports automatic refetching on component mount and at specified intervals.
|
|
4
4
|
*
|
|
5
5
|
* @param args {@link UseQueryCallParameters}.
|
|
6
|
-
* @returns object {@link
|
|
6
|
+
* @returns object {@link UseQueryCallReturnType}.
|
|
7
7
|
* @example
|
|
8
8
|
* ```tsx
|
|
9
9
|
* function QueryCallComponent() {
|
|
@@ -25,4 +25,4 @@ import type { BaseActor, FunctionName, UseQueryCallParameters, UseSharedCallRetu
|
|
|
25
25
|
* }
|
|
26
26
|
* ```
|
|
27
27
|
*/
|
|
28
|
-
export declare function useQueryCall<A = BaseActor, M extends FunctionName<A> = FunctionName<A>>(args: UseQueryCallParameters<A, M>):
|
|
28
|
+
export declare function useQueryCall<A = BaseActor, M extends FunctionName<A> = FunctionName<A>>(args: UseQueryCallParameters<A, M>): UseQueryCallReturnType<A, M>;
|
|
@@ -6,7 +6,7 @@ const __1 = require("..");
|
|
|
6
6
|
* Hook for making query calls to actors. It supports automatic refetching on component mount and at specified intervals.
|
|
7
7
|
*
|
|
8
8
|
* @param args {@link UseQueryCallParameters}.
|
|
9
|
-
* @returns object {@link
|
|
9
|
+
* @returns object {@link UseQueryCallReturnType}.
|
|
10
10
|
* @example
|
|
11
11
|
* ```tsx
|
|
12
12
|
* function QueryCallComponent() {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { BaseActor, FunctionName, UseUpdateCallParameters,
|
|
1
|
+
import type { BaseActor, FunctionName, UseUpdateCallParameters, UseUpdateCallReturnType } from "../../../types";
|
|
2
2
|
/**
|
|
3
3
|
* Hook for making update calls to actors, handling loading states, and managing errors. It supports custom event handlers for loading, success, and error events.
|
|
4
4
|
*
|
|
5
5
|
* @param args {@link UseUpdateCallParameters}.
|
|
6
|
-
* @returns object {@link
|
|
6
|
+
* @returns object {@link UseUpdateCallReturnType}.
|
|
7
7
|
* @example
|
|
8
8
|
* ```tsx
|
|
9
9
|
* function UpdateCallComponent() {
|
|
@@ -26,4 +26,4 @@ import type { BaseActor, FunctionName, UseUpdateCallParameters, UseSharedCallRet
|
|
|
26
26
|
* }
|
|
27
27
|
* ```
|
|
28
28
|
*/
|
|
29
|
-
export declare function useUpdateCall<A = BaseActor, M extends FunctionName<A> = FunctionName<A>>(args: UseUpdateCallParameters<A, M>):
|
|
29
|
+
export declare function useUpdateCall<A = BaseActor, M extends FunctionName<A> = FunctionName<A>>(args: UseUpdateCallParameters<A, M>): UseUpdateCallReturnType<A, M>;
|
|
@@ -6,7 +6,7 @@ const __1 = require("..");
|
|
|
6
6
|
* Hook for making update calls to actors, handling loading states, and managing errors. It supports custom event handlers for loading, success, and error events.
|
|
7
7
|
*
|
|
8
8
|
* @param args {@link UseUpdateCallParameters}.
|
|
9
|
-
* @returns object {@link
|
|
9
|
+
* @returns object {@link UseUpdateCallReturnType}.
|
|
10
10
|
* @example
|
|
11
11
|
* ```tsx
|
|
12
12
|
* function UpdateCallComponent() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ic-reactor/react",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.15.0",
|
|
4
4
|
"description": "A React library for interacting with Internet Computer canisters",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -35,9 +35,9 @@
|
|
|
35
35
|
"node": ">=10"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@ic-reactor/core": "^1.
|
|
39
|
-
"zustand": "
|
|
40
|
-
"zustand-utils": "^1.3"
|
|
38
|
+
"@ic-reactor/core": "^1.15.0",
|
|
39
|
+
"zustand": "5.0.2",
|
|
40
|
+
"zustand-utils": "^1.3.2"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
43
|
"@dfinity/agent": ">=2.1",
|
|
@@ -46,9 +46,9 @@
|
|
|
46
46
|
"@dfinity/identity": ">=2.1",
|
|
47
47
|
"@dfinity/principal": ">=2.1",
|
|
48
48
|
"react": ">=16.8",
|
|
49
|
-
"zustand": "
|
|
49
|
+
"zustand": ">=5.0.0"
|
|
50
50
|
},
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "4c6badf97d6d2845f6bed00bf21274a72dc68134",
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@dfinity/agent": ">=2.1",
|
|
54
54
|
"@dfinity/auth-client": ">=2.1",
|