@arcblock/did-playground 1.15.21 → 1.15.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 +9 -9
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -1,31 +1,30 @@
|
|
|
1
|
-

|
|
2
2
|
|
|
3
3
|
> UI components that can be used in React Applications built on top of forge powered blockchain.
|
|
4
4
|
|
|
5
5
|
## Usage
|
|
6
6
|
|
|
7
7
|
```shell
|
|
8
|
-
yarn add @arcblock/did-
|
|
8
|
+
yarn add @arcblock/did-connect
|
|
9
9
|
```
|
|
10
10
|
|
|
11
11
|
Then:
|
|
12
12
|
|
|
13
13
|
```javascript
|
|
14
14
|
import axios from 'axios';
|
|
15
|
-
import
|
|
16
|
-
import DidAvatar from '@arcblock/did-
|
|
17
|
-
import DidLogo from '@arcblock/did-
|
|
18
|
-
import DidAddress from '@arcblock/did-
|
|
15
|
+
import DidConnect from '@arcblock/did-connect/lib/Connect';
|
|
16
|
+
import DidAvatar from '@arcblock/did-connect/lib/Avatar';
|
|
17
|
+
import DidLogo from '@arcblock/did-connect/lib/Logo';
|
|
18
|
+
import DidAddress from '@arcblock/did-connect/lib/Address';
|
|
19
19
|
```
|
|
20
20
|
|
|
21
21
|
### DidAuth
|
|
22
22
|
|
|
23
23
|
```jsx
|
|
24
|
-
<
|
|
24
|
+
<DidConnect
|
|
25
25
|
action="login"
|
|
26
|
-
responsive
|
|
27
26
|
checkFn={axios.get}
|
|
28
|
-
onClose={() =>
|
|
27
|
+
onClose={() => handleOnClose()}
|
|
29
28
|
onSuccess={() => (window.location.href = '/profile')}
|
|
30
29
|
messages={{
|
|
31
30
|
title: 'login',
|
|
@@ -33,6 +32,7 @@ import DidAddress from '@arcblock/did-react/lib/Address';
|
|
|
33
32
|
confirm: 'Confirm login on your DID Wallet',
|
|
34
33
|
success: 'You have successfully signed in!',
|
|
35
34
|
}}
|
|
35
|
+
webWalletUrl={webWalletUrl}
|
|
36
36
|
/>
|
|
37
37
|
```
|
|
38
38
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcblock/did-playground",
|
|
3
|
-
"version": "1.15.
|
|
3
|
+
"version": "1.15.22",
|
|
4
4
|
"description": "React components that works with wallet-playground",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -33,9 +33,9 @@
|
|
|
33
33
|
"url": "https://github.com/ArcBlock/wallet-playground/issues"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@arcblock/did-connect": "^1.15.
|
|
37
|
-
"@arcblock/react-hooks": "^1.15.
|
|
38
|
-
"@arcblock/ux": "^1.15.
|
|
36
|
+
"@arcblock/did-connect": "^1.15.22",
|
|
37
|
+
"@arcblock/react-hooks": "^1.15.22",
|
|
38
|
+
"@arcblock/ux": "^1.15.22",
|
|
39
39
|
"@material-ui/core": "^4.12.3",
|
|
40
40
|
"axios": "^0.21.1",
|
|
41
41
|
"core-js": "^3.6.4",
|
|
@@ -56,5 +56,5 @@
|
|
|
56
56
|
"publishConfig": {
|
|
57
57
|
"access": "public"
|
|
58
58
|
},
|
|
59
|
-
"gitHead": "
|
|
59
|
+
"gitHead": "4cfa3b8a8ea49873c4f2917f41120b49491f1818"
|
|
60
60
|
}
|