@arcblock/did-playground 1.15.21 → 1.15.26

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.
Files changed (2) hide show
  1. package/README.md +9 -9
  2. package/package.json +5 -5
package/README.md CHANGED
@@ -1,31 +1,30 @@
1
- ![@arcblock/did-react](https://www.arcblock.io/.netlify/functions/badge/?text=did-react)
1
+ ![@arcblock/did-connect](https://www.arcblock.io/.netlify/functions/badge/?text=did-connect)
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-react
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 DidAuth from '@arcblock/did-react/lib/Auth';
16
- import DidAvatar from '@arcblock/did-react/lib/Avatar';
17
- import DidLogo from '@arcblock/did-react/lib/Logo';
18
- import DidAddress from '@arcblock/did-react/lib/Address';
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
- <DidAuth
24
+ <DidConnect
25
25
  action="login"
26
- responsive
27
26
  checkFn={axios.get}
28
- onClose={() => toggle()}
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.21",
3
+ "version": "1.15.26",
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.21",
37
- "@arcblock/react-hooks": "^1.15.21",
38
- "@arcblock/ux": "^1.15.21",
36
+ "@arcblock/did-connect": "^1.15.26",
37
+ "@arcblock/react-hooks": "^1.15.26",
38
+ "@arcblock/ux": "^1.15.26",
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": "73a5c87eb70b98e72c3fd01307d1bd680ddc60a1"
59
+ "gitHead": "8a7c124f0e96d768d52239970309264eac5770ef"
60
60
  }