zigap-utils 0.0.477 → 0.0.479

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,4 +1,4 @@
1
1
  import { AddressProvideQRProps } from './AddressProvideQR.types';
2
2
 
3
- declare const AddressProvideQR: ({ availableNetworks, dapp, url, validTime, onReceive, isShowLogo, logoSize, ...props }: AddressProvideQRProps) => import("react/jsx-runtime").JSX.Element;
3
+ declare const AddressProvideQR: ({ availableNetworks, dapp, url, validTime, isShowLogo, logoSize, ...props }: AddressProvideQRProps) => import("react/jsx-runtime").JSX.Element;
4
4
  export default AddressProvideQR;
@@ -11,5 +11,4 @@ export type AddressProvideQRProps = {
11
11
  dapp: string;
12
12
  url: string;
13
13
  validTime: number;
14
- onReceive: (result: AddressProvideResultType) => void;
15
14
  } & CommonStyleType;
@@ -1,4 +1,4 @@
1
1
  import { LoginQRProps } from './LoginQR.types';
2
2
 
3
- declare const LoginQR: ({ availableNetworks, dapp, url, sigMessage, validTime, onReceive, isShowLogo, logoSize, ...props }: LoginQRProps) => import("react/jsx-runtime").JSX.Element;
3
+ declare const LoginQR: ({ availableNetworks, dapp, url, sigMessage, validTime, isShowLogo, logoSize, ...props }: LoginQRProps) => import("react/jsx-runtime").JSX.Element;
4
4
  export default LoginQR;
@@ -18,10 +18,10 @@ export type AccountType = {
18
18
  nickName: string;
19
19
  };
20
20
  export type LoginResultType = {
21
- isSuccess: boolean;
22
- account?: AccountType;
23
- payload?: PayloadType;
24
- signature?: string;
21
+ address: string;
22
+ network: string;
23
+ nickName: string;
24
+ token: string;
25
25
  };
26
26
  export type LoginQRProps = {
27
27
  availableNetworks: string[];
@@ -29,5 +29,4 @@ export type LoginQRProps = {
29
29
  url: string;
30
30
  sigMessage: string;
31
31
  validTime: number;
32
- onReceive: (result: LoginResultType) => void;
33
32
  } & CommonStyleType;
@@ -1,8 +1,8 @@
1
- import { LoginResultType } from 'src/components';
2
-
3
1
  export declare const LOGIN_RES_KEY = "loginRes";
4
- type CustomLoginResultType = Omit<LoginResultType, 'isSuccess'> & {
5
- isLoggedIn?: boolean;
2
+ declare const useZigap: () => {
3
+ address: string | undefined;
4
+ network: string | undefined;
5
+ nickName: string | undefined;
6
+ token: string | undefined;
6
7
  };
7
- declare const useZigap: () => CustomLoginResultType;
8
8
  export default useZigap;