zigap-utils 0.0.21 → 0.0.23

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/README.md CHANGED
@@ -19,6 +19,7 @@ const App = () => {
19
19
  return (
20
20
  <div>
21
21
  <LoginQR
22
+ dapp='Mintus'
22
23
  validTime={10}
23
24
  sigMessage="hello world"
24
25
  onReceive={({ isSuccess, address })=>{
@@ -40,6 +41,7 @@ const App = () => {
40
41
 
41
42
  | prop | required | type | default value | description |
42
43
  | ------------ | :------: | --------------- | ------------- | -------------------------------------------------- |
44
+ | `dapp` | true | string | | Name of the dapp to use |
43
45
  | `sigMessage` | true | string | | Messages signed to verify the identity of the user |
44
46
  | `validTime` | true | number | | QR code valid time(minutes) |
45
47
  | `onReceive` | true | (value) => void | | Function called after login request |
@@ -54,6 +56,7 @@ const App = () => {
54
56
 
55
57
  | prop | required | type | default value | description |
56
58
  | ----------- | :------: | --------------- | ------------- | ----------------------------------- |
59
+ | `dapp` | true | string | | Name of the dapp to use |
57
60
  | `validTime` | true | number | | QR code valid time(minutes) |
58
61
  | `onReceive` | true | (value) => void | | Function called after login request |
59
62
  | `size` | false | number | 128 | canvas width |
@@ -1,4 +1,4 @@
1
1
  import { AddressProvideQRProps } from './AddressProvideQR.types';
2
2
 
3
- declare const AddressProvideQR: ({ validTime, onReceive, ...props }: AddressProvideQRProps) => import("react/jsx-runtime").JSX.Element;
3
+ declare const AddressProvideQR: ({ dapp, validTime, onReceive, ...props }: AddressProvideQRProps) => import("react/jsx-runtime").JSX.Element;
4
4
  export default AddressProvideQR;
@@ -5,6 +5,7 @@ export type AddressProvideResultType = {
5
5
  address?: string;
6
6
  };
7
7
  export type AddressProvideQRProps = {
8
+ dapp: string;
8
9
  validTime: number;
9
10
  onReceive: (result: AddressProvideResultType) => void;
10
11
  size?: number;
@@ -1,4 +1,4 @@
1
1
  import { LoginQRProps } from './LoginQR.types';
2
2
 
3
- declare const LoginQR: ({ sigMessage, validTime, onReceive, ...props }: LoginQRProps) => import("react/jsx-runtime").JSX.Element;
3
+ declare const LoginQR: ({ dapp, sigMessage, validTime, onReceive, imgSrc, ...props }: LoginQRProps) => import("react/jsx-runtime").JSX.Element;
4
4
  export default LoginQR;
@@ -5,6 +5,7 @@ export type LoginResultType = {
5
5
  address?: string;
6
6
  };
7
7
  export type LoginQRProps = {
8
+ dapp: string;
8
9
  sigMessage: string;
9
10
  validTime: number;
10
11
  onReceive: (result: LoginResultType) => void;
@@ -12,4 +13,5 @@ export type LoginQRProps = {
12
13
  bgColor?: string;
13
14
  fgColor?: string;
14
15
  style?: CSSProperties;
16
+ imgSrc?: string;
15
17
  };