zigap-utils 0.0.2 → 0.0.22
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 -9
- 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 +1 -0
- package/dist/index.cjs.js +14 -19
- package/dist/index.es.js +5268 -7646
- package/dist/util/cryptoUtils.d.ts +2 -2
- package/dist/util/qrService.d.ts +1 -1
- package/dist/xphere/enc.d.ts +12 -0
- package/dist/xphere/sign.d.ts +18 -0
- package/dist/xphere/util.d.ts +10 -0
- package/dist/zigap-icon.svg +9 -0
- package/package.json +2 -2
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 |
|
|
@@ -52,12 +54,12 @@ const App = () => {
|
|
|
52
54
|
|
|
53
55
|
### `AddressProvideQR` props
|
|
54
56
|
|
|
55
|
-
| prop
|
|
56
|
-
|
|
|
57
|
-
| `
|
|
58
|
-
| `validTime`
|
|
59
|
-
| `onReceive`
|
|
60
|
-
| `size`
|
|
61
|
-
| `bgColor`
|
|
62
|
-
| `fgColor`
|
|
63
|
-
| `style`
|
|
57
|
+
| prop | required | type | default value | description |
|
|
58
|
+
| ----------- | :------: | --------------- | ------------- | ----------------------------------- |
|
|
59
|
+
| `dapp` | true | string | | Name of the dapp to use |
|
|
60
|
+
| `validTime` | true | number | | QR code valid time(minutes) |
|
|
61
|
+
| `onReceive` | true | (value) => void | | Function called after login request |
|
|
62
|
+
| `size` | false | number | 128 | canvas width |
|
|
63
|
+
| `bgColor` | false | string | #fff | background color |
|
|
64
|
+
| `fgColor` | false | string | #000 | foreground color |
|
|
65
|
+
| `style` | false | CSSProperties | | custom css style |
|
|
@@ -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;
|
|
@@ -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, ...props }: LoginQRProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
export default LoginQR;
|