zigap-utils 0.0.497 → 0.0.499
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 +11 -8
- package/dist/components/AddressProvideQR/AddressProvideQR.d.ts +1 -1
- package/dist/components/AddressProvideQR/AddressProvideQR.types.d.ts +1 -0
- package/dist/components/LoginQR/LoginQR.d.ts +1 -1
- package/dist/components/LoginQR/LoginQR.types.d.ts +2 -1
- package/dist/index.es.js +13371 -13368
- package/dist/zigap/qr.d.ts +1 -1
- package/package.json +1 -1
- package/dist/index.cjs.js +0 -55
- package/dist/util/addressProvide.d.ts +0 -9
- package/dist/util/cryptoUtils.d.ts +0 -19
- package/dist/util/login.d.ts +0 -11
- package/dist/util/qrService.d.ts +0 -7
- package/dist/util/socketInstance.d.ts +0 -9
- package/dist/util/types.d.ts +0 -24
package/README.md
CHANGED
|
@@ -26,7 +26,8 @@ const App = () => {
|
|
|
26
26
|
logoSize={25}
|
|
27
27
|
validSeconds={600}
|
|
28
28
|
sigMessage="hello world"
|
|
29
|
-
expire={{type: 'EXTEND', seconds: 3600}}
|
|
29
|
+
expire={{ type: 'EXTEND', seconds: 3600 }}
|
|
30
|
+
icon="http://sample.icon-url.com"
|
|
30
31
|
onReceive={({ isSuccess }) => {
|
|
31
32
|
if(isSuccess) {
|
|
32
33
|
// something to do after login (refresh page...)
|
|
@@ -53,18 +54,20 @@ const App = () => {
|
|
|
53
54
|
| `validSeconds` | number | QR code valid time(minutes) |
|
|
54
55
|
| `onReceive` | (value) => void | Function called after login request |
|
|
55
56
|
| `expire` | {type: "NONE / FIX / EXTEND", seconds: number} | time and type for user login to expire |
|
|
57
|
+
| `icon` | string | Your dapp icon url to be displayed on zigap app |
|
|
56
58
|
|
|
57
59
|
<br>
|
|
58
60
|
|
|
59
61
|
### `AddressProvideQR` props
|
|
60
62
|
|
|
61
|
-
| prop type |
|
|
62
|
-
| ------------------- | --------------- |
|
|
63
|
-
| `dapp` | string | Name of the dapp to use
|
|
64
|
-
| `url` | string | The url of dapp to connect
|
|
65
|
-
| `availableNetworks` | string[] | List of connectable networks in dapp
|
|
66
|
-
| `validSeconds` | number | QR code valid time(seconds)
|
|
67
|
-
| `onReceive` | (value) => void | Function called after login request
|
|
63
|
+
| prop type | type | description |
|
|
64
|
+
| ------------------- | --------------- | ----------------------------------------------- |
|
|
65
|
+
| `dapp` | string | Name of the dapp to use |
|
|
66
|
+
| `url` | string | The url of dapp to connect |
|
|
67
|
+
| `availableNetworks` | string[] | List of connectable networks in dapp |
|
|
68
|
+
| `validSeconds` | number | QR code valid time(seconds) |
|
|
69
|
+
| `onReceive` | (value) => void | Function called after login request |
|
|
70
|
+
| `icon` | string | Your dapp icon url to be displayed on zigap app |
|
|
68
71
|
|
|
69
72
|
<br>
|
|
70
73
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { AddressProvideQRProps } from './AddressProvideQR.types';
|
|
2
2
|
|
|
3
|
-
declare const AddressProvideQR: ({ availableNetworks, dapp, url, validSeconds, onReceive, isShowLogo, logoSize, ...props }: AddressProvideQRProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare const AddressProvideQR: ({ availableNetworks, dapp, url, validSeconds, onReceive, isShowLogo, logoSize, icon, ...props }: AddressProvideQRProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
export default AddressProvideQR;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { LoginQRProps } from './LoginQR.types';
|
|
2
2
|
|
|
3
|
-
declare const LoginQR: ({ availableNetworks, dapp, url, sigMessage, onReceive, validSeconds, isShowLogo, logoSize, expire, ...props }: LoginQRProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare const LoginQR: ({ availableNetworks, dapp, url, sigMessage, onReceive, validSeconds, isShowLogo, logoSize, expire, icon, ...props }: LoginQRProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
export default LoginQR;
|