@arcblock/did-playground 2.1.27 → 2.1.30
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/lib/Action/index.js +5 -7
- package/package.json +5 -5
- package/src/Action/index.js +3 -3
package/lib/Action/index.js
CHANGED
|
@@ -9,6 +9,8 @@ var _react = require("react");
|
|
|
9
9
|
|
|
10
10
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
11
|
|
|
12
|
+
var _styles = require("@mui/material/styles");
|
|
13
|
+
|
|
12
14
|
var _useWindowSize = _interopRequireDefault(require("react-use/lib/useWindowSize"));
|
|
13
15
|
|
|
14
16
|
var _useBrowser = _interopRequireDefault(require("@arcblock/react-hooks/lib/useBrowser"));
|
|
@@ -21,8 +23,6 @@ var _Dialog = _interopRequireDefault(require("@mui/material/Dialog"));
|
|
|
21
23
|
|
|
22
24
|
var _DialogContent = _interopRequireDefault(require("@mui/material/DialogContent"));
|
|
23
25
|
|
|
24
|
-
var _styles = require("@mui/styles");
|
|
25
|
-
|
|
26
26
|
var _Connect = _interopRequireDefault(require("@arcblock/did-connect/lib/Connect"));
|
|
27
27
|
|
|
28
28
|
var _Button = _interopRequireDefault(require("@arcblock/ux/lib/Button"));
|
|
@@ -35,7 +35,7 @@ var _actions = require("./actions");
|
|
|
35
35
|
|
|
36
36
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
37
37
|
|
|
38
|
-
const _excluded = ["autoClose", "action", "buttonText", "buttonColor", "buttonVariant", "buttonSize", "buttonRounded", "children", "disableClose", "title", "scanMessage", "successMessage", "successUrl", "successTarget", "frameProps", "confirmMessage", "extraParams", "timeout", "
|
|
38
|
+
const _excluded = ["autoClose", "action", "buttonText", "buttonColor", "buttonVariant", "buttonSize", "buttonRounded", "children", "disableClose", "title", "scanMessage", "successMessage", "successUrl", "successTarget", "frameProps", "confirmMessage", "extraParams", "timeout", "webWalletUrl"];
|
|
39
39
|
|
|
40
40
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
41
41
|
|
|
@@ -90,11 +90,11 @@ function PlaygroundAction(props) {
|
|
|
90
90
|
confirmMessage,
|
|
91
91
|
extraParams,
|
|
92
92
|
timeout,
|
|
93
|
-
theme,
|
|
94
93
|
webWalletUrl
|
|
95
94
|
} = newProps,
|
|
96
95
|
rest = _objectWithoutProperties(newProps, _excluded);
|
|
97
96
|
|
|
97
|
+
const theme = (0, _styles.useTheme)();
|
|
98
98
|
const browser = (0, _useBrowser.default)();
|
|
99
99
|
const {
|
|
100
100
|
api,
|
|
@@ -306,7 +306,5 @@ PlaygroundAction.defaultProps = {
|
|
|
306
306
|
frameProps: {},
|
|
307
307
|
webWalletUrl: ''
|
|
308
308
|
};
|
|
309
|
-
|
|
310
|
-
var _default = (0, _styles.withTheme)(PlaygroundAction);
|
|
311
|
-
|
|
309
|
+
var _default = PlaygroundAction;
|
|
312
310
|
exports.default = _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcblock/did-playground",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.30",
|
|
4
4
|
"description": "React components that works with wallet-playground",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -34,9 +34,9 @@
|
|
|
34
34
|
"url": "https://github.com/ArcBlock/wallet-playground/issues"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@arcblock/did-connect": "^2.1.
|
|
38
|
-
"@arcblock/react-hooks": "^2.1.
|
|
39
|
-
"@arcblock/ux": "^2.1.
|
|
37
|
+
"@arcblock/did-connect": "^2.1.30",
|
|
38
|
+
"@arcblock/react-hooks": "^2.1.30",
|
|
39
|
+
"@arcblock/ux": "^2.1.30",
|
|
40
40
|
"@mui/material": "^5.6.4",
|
|
41
41
|
"axios": "^0.21.2",
|
|
42
42
|
"core-js": "^3.6.4",
|
|
@@ -57,5 +57,5 @@
|
|
|
57
57
|
"publishConfig": {
|
|
58
58
|
"access": "public"
|
|
59
59
|
},
|
|
60
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "16c9e4b3d8664ef14440b248bdf34b46fc8396d1"
|
|
61
61
|
}
|
package/src/Action/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { useContext, useState, useEffect } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
|
+
import { useTheme } from '@mui/material/styles';
|
|
3
4
|
import useWindowSize from 'react-use/lib/useWindowSize';
|
|
4
5
|
import useBrowser from '@arcblock/react-hooks/lib/useBrowser';
|
|
5
6
|
import styled from 'styled-components';
|
|
@@ -7,7 +8,6 @@ import styled from 'styled-components';
|
|
|
7
8
|
import CircularProgress from '@mui/material/CircularProgress';
|
|
8
9
|
import Dialog from '@mui/material/Dialog';
|
|
9
10
|
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';
|
|
@@ -54,11 +54,11 @@ function PlaygroundAction(props) {
|
|
|
54
54
|
confirmMessage,
|
|
55
55
|
extraParams,
|
|
56
56
|
timeout,
|
|
57
|
-
theme,
|
|
58
57
|
webWalletUrl,
|
|
59
58
|
...rest
|
|
60
59
|
} = newProps;
|
|
61
60
|
|
|
61
|
+
const theme = useTheme();
|
|
62
62
|
const browser = useBrowser();
|
|
63
63
|
const { api, session } = useContext(SessionContext);
|
|
64
64
|
const [open, setOpen] = useState(false);
|
|
@@ -269,4 +269,4 @@ PlaygroundAction.defaultProps = {
|
|
|
269
269
|
webWalletUrl: '',
|
|
270
270
|
};
|
|
271
271
|
|
|
272
|
-
export default
|
|
272
|
+
export default PlaygroundAction;
|