@arcblock/did-playground 1.17.20 → 2.0.1

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.
@@ -15,13 +15,13 @@ var _useBrowser = _interopRequireDefault(require("@arcblock/react-hooks/lib/useB
15
15
 
16
16
  var _styledComponents = _interopRequireDefault(require("styled-components"));
17
17
 
18
- var _CircularProgress = _interopRequireDefault(require("@material-ui/core/CircularProgress"));
18
+ var _CircularProgress = _interopRequireDefault(require("@mui/material/CircularProgress"));
19
19
 
20
- var _Dialog = _interopRequireDefault(require("@material-ui/core/Dialog"));
20
+ var _Dialog = _interopRequireDefault(require("@mui/material/Dialog"));
21
21
 
22
- var _DialogContent = _interopRequireDefault(require("@material-ui/core/DialogContent"));
22
+ var _DialogContent = _interopRequireDefault(require("@mui/material/DialogContent"));
23
23
 
24
- var _styles = require("@material-ui/core/styles");
24
+ var _styles = require("@mui/styles");
25
25
 
26
26
  var _Connect = _interopRequireDefault(require("@arcblock/did-connect/lib/Connect"));
27
27
 
@@ -211,7 +211,6 @@ function PlaygroundAction(props) {
211
211
  color: "#fff"
212
212
  })), open && !showDidConnect && /*#__PURE__*/_react.default.createElement(_Dialog.default, {
213
213
  open: true,
214
- disableBackdropClick: true,
215
214
  disableEscapeKeyDown: true,
216
215
  fullScreen: width < theme.breakpoints.values.sm && !browser.wallet,
217
216
  fullWidth: showFrame,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcblock/did-playground",
3
- "version": "1.17.20",
3
+ "version": "2.0.1",
4
4
  "description": "React components that works with wallet-playground",
5
5
  "keywords": [
6
6
  "react",
@@ -34,10 +34,10 @@
34
34
  "url": "https://github.com/ArcBlock/wallet-playground/issues"
35
35
  },
36
36
  "dependencies": {
37
- "@arcblock/did-connect": "^1.17.20",
38
- "@arcblock/react-hooks": "^1.17.20",
39
- "@arcblock/ux": "^1.17.20",
40
- "@material-ui/core": "^4.12.3",
37
+ "@arcblock/did-connect": "^2.0.1",
38
+ "@arcblock/react-hooks": "^2.0.1",
39
+ "@arcblock/ux": "^2.0.1",
40
+ "@mui/material": "^5.6.4",
41
41
  "axios": "^0.21.2",
42
42
  "core-js": "^3.6.4",
43
43
  "mustache": "^4.0.0",
@@ -46,7 +46,7 @@
46
46
  },
47
47
  "peerDependencies": {
48
48
  "prop-types": "^15.7.2",
49
- "react": ">=16.12.0"
49
+ "react": ">=18.1.0"
50
50
  },
51
51
  "devDependencies": {
52
52
  "@babel/cli": "^7.8.4",
@@ -57,5 +57,5 @@
57
57
  "publishConfig": {
58
58
  "access": "public"
59
59
  },
60
- "gitHead": "dfa25e33ce1f0204b4a0043dd33f5fe97b187fb8"
60
+ "gitHead": "9fa98015ebb44b81cc813dad0196cc48c14c5cf7"
61
61
  }
@@ -4,10 +4,10 @@ import useWindowSize from 'react-use/lib/useWindowSize';
4
4
  import useBrowser from '@arcblock/react-hooks/lib/useBrowser';
5
5
  import styled from 'styled-components';
6
6
 
7
- import CircularProgress from '@material-ui/core/CircularProgress';
8
- import Dialog from '@material-ui/core/Dialog';
9
- import DialogContent from '@material-ui/core/DialogContent';
10
- import { withTheme } from '@material-ui/core/styles';
7
+ import CircularProgress from '@mui/material/CircularProgress';
8
+ import Dialog from '@mui/material/Dialog';
9
+ import DialogContent from '@mui/material/DialogContent';
10
+ import { withTheme } from '@mui/styles';
11
11
 
12
12
  import DidConnect from '@arcblock/did-connect/lib/Connect';
13
13
  import Button from '@arcblock/ux/lib/Button';
@@ -199,7 +199,6 @@ function PlaygroundAction(props) {
199
199
  {open && !showDidConnect && (
200
200
  <Dialog
201
201
  open
202
- disableBackdropClick
203
202
  disableEscapeKeyDown
204
203
  fullScreen={width < theme.breakpoints.values.sm && !browser.wallet}
205
204
  fullWidth={showFrame}