@ic-reactor/react 0.5.1 → 0.5.2

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.
@@ -125,11 +125,11 @@ const getActorHooks = ({ initialize, serviceFields, withServiceField, canisterId
125
125
  };
126
126
  return {
127
127
  initialize,
128
- useMethods,
129
128
  useQueryCall,
130
129
  useUpdateCall,
131
130
  useMethodCall,
132
131
  useActorStore,
132
+ useMethods,
133
133
  useMethodField,
134
134
  useMethodFields,
135
135
  useServiceFields,
package/dist/types.d.ts CHANGED
@@ -53,13 +53,13 @@ export interface ActorFieldHooks<A> {
53
53
  useServiceFields: () => ExtractedService<A>;
54
54
  useMethodFields: () => ExtractedFunction<A>[];
55
55
  useMethodField: (functionName: keyof A & string) => ExtractedFunction<A>;
56
+ useMethods: () => ServiceMethodTypeAndName<A>[];
56
57
  }
57
58
  export type UseActorStoreReturn<A> = ActorState<A> & {
58
59
  canisterId: CanisterId;
59
60
  };
60
61
  export interface ActorDefaultHooks<A, W extends boolean = false> {
61
62
  initialize: () => Promise<void>;
62
- useMethods: () => ServiceMethodTypeAndName<A>[];
63
63
  useActorStore: () => UseActorStoreReturn<A>;
64
64
  useQueryCall: <M extends keyof A>(args: ActorUseQueryArgs<A, M>) => ActorUseQueryReturn<A, M, W>;
65
65
  useUpdateCall: <M extends keyof A>(args: ActorUseUpdateArgs<A, M>) => ActorUseUpdateReturn<A, M, W>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ic-reactor/react",
3
- "version": "0.5.1",
3
+ "version": "0.5.2",
4
4
  "description": "A React library for interacting with Dfinity actors",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -48,5 +48,5 @@
48
48
  "react": ">=16.8",
49
49
  "zustand": "4.4"
50
50
  },
51
- "gitHead": "86103827fe9a74cd8e910879168aa52e14eef4b8"
51
+ "gitHead": "2d329807181eabc24dd5d9dfc677eac0a0b12a6d"
52
52
  }