@arcblock/did-playground 2.2.3 → 2.4.0
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 +6 -5
- package/package.json +9 -8
- package/src/Action/index.js +1 -1
package/lib/Action/index.js
CHANGED
|
@@ -15,7 +15,7 @@ var _useWindowSize = _interopRequireDefault(require("react-use/lib/useWindowSize
|
|
|
15
15
|
|
|
16
16
|
var _useBrowser = _interopRequireDefault(require("@arcblock/react-hooks/lib/useBrowser"));
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _styled = _interopRequireDefault(require("@emotion/styled"));
|
|
19
19
|
|
|
20
20
|
var _CircularProgress = _interopRequireDefault(require("@mui/material/CircularProgress"));
|
|
21
21
|
|
|
@@ -37,6 +37,8 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
37
37
|
|
|
38
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
|
+
var _templateObject;
|
|
41
|
+
|
|
40
42
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
41
43
|
|
|
42
44
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
@@ -49,6 +51,8 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
49
51
|
|
|
50
52
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
51
53
|
|
|
54
|
+
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
55
|
+
|
|
52
56
|
function Close(_ref) {
|
|
53
57
|
let {
|
|
54
58
|
onClose
|
|
@@ -63,10 +67,7 @@ Close.propTypes = {
|
|
|
63
67
|
onClose: _propTypes.default.func.isRequired
|
|
64
68
|
};
|
|
65
69
|
|
|
66
|
-
const CloseContainer =
|
|
67
|
-
displayName: "Action__CloseContainer",
|
|
68
|
-
componentId: "sc-y9rma2-0"
|
|
69
|
-
})(["display:", ";position:absolute;top:1rem;right:1rem;color:#999999;font-size:2rem;line-height:1rem;cursor:pointer;user-select:none;"], props => props.disableClose ? 'none' : 'block');
|
|
70
|
+
const CloseContainer = _styled.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: ", ";\n position: absolute;\n top: 1rem;\n right: 1rem;\n color: #999999;\n font-size: 2rem;\n line-height: 1rem;\n cursor: pointer;\n user-select: none;\n"])), props => props.disableClose ? 'none' : 'block');
|
|
70
71
|
|
|
71
72
|
function PlaygroundAction(props) {
|
|
72
73
|
const newProps = (0, _Util.mergeProps)(props, PlaygroundAction, ['buttonRounded', 'extraParams', 'timeout']);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcblock/did-playground",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.4.0",
|
|
4
4
|
"description": "React components that works with wallet-playground",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -29,15 +29,16 @@
|
|
|
29
29
|
"url": "https://github.com/ArcBlock/wallet-playground/issues"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@arcblock/did-connect": "^2.
|
|
33
|
-
"@arcblock/react-hooks": "^2.
|
|
34
|
-
"@arcblock/ux": "^2.
|
|
35
|
-
"@
|
|
32
|
+
"@arcblock/did-connect": "^2.4.0",
|
|
33
|
+
"@arcblock/react-hooks": "^2.4.0",
|
|
34
|
+
"@arcblock/ux": "^2.4.0",
|
|
35
|
+
"@emotion/react": "^11.10.0",
|
|
36
|
+
"@emotion/styled": "^11.10.0",
|
|
37
|
+
"@mui/material": "^5.10.0",
|
|
36
38
|
"axios": "^0.21.4",
|
|
37
39
|
"core-js": "^3.24.1",
|
|
38
40
|
"mustache": "^4.2.0",
|
|
39
|
-
"react-use": "^17.4.0"
|
|
40
|
-
"styled-components": "^5.3.5"
|
|
41
|
+
"react-use": "^17.4.0"
|
|
41
42
|
},
|
|
42
43
|
"peerDependencies": {
|
|
43
44
|
"prop-types": "^15.7.2",
|
|
@@ -52,5 +53,5 @@
|
|
|
52
53
|
"publishConfig": {
|
|
53
54
|
"access": "public"
|
|
54
55
|
},
|
|
55
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "202771a046cab27fc550d31e73588075a90c75fd"
|
|
56
57
|
}
|
package/src/Action/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import PropTypes from 'prop-types';
|
|
|
3
3
|
import { useTheme } from '@mui/material/styles';
|
|
4
4
|
import useWindowSize from 'react-use/lib/useWindowSize';
|
|
5
5
|
import useBrowser from '@arcblock/react-hooks/lib/useBrowser';
|
|
6
|
-
import styled from 'styled
|
|
6
|
+
import styled from '@emotion/styled';
|
|
7
7
|
|
|
8
8
|
import CircularProgress from '@mui/material/CircularProgress';
|
|
9
9
|
import Dialog from '@mui/material/Dialog';
|