@arcblock/did-playground 2.9.13 → 2.9.14
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/actions.js +2 -4
- package/lib/Action/index.js +5 -6
- package/package.json +5 -5
package/lib/Action/actions.js
CHANGED
|
@@ -21,7 +21,7 @@ const getValidPayAmount = (payAmount, price) => {
|
|
|
21
21
|
}
|
|
22
22
|
return 1;
|
|
23
23
|
};
|
|
24
|
-
const getMessage = function getMessage() {
|
|
24
|
+
const getMessage = exports.getMessage = function getMessage() {
|
|
25
25
|
let message = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
26
26
|
let session = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
27
27
|
try {
|
|
@@ -40,8 +40,7 @@ const getMessage = function getMessage() {
|
|
|
40
40
|
};
|
|
41
41
|
|
|
42
42
|
// https://github.com/ArcBlock/gatsby-extensions/issues/56
|
|
43
|
-
exports.
|
|
44
|
-
const actions = {
|
|
43
|
+
const actions = exports.actions = {
|
|
45
44
|
// Currency
|
|
46
45
|
receive_local_token: {
|
|
47
46
|
action: 'receive_token',
|
|
@@ -606,7 +605,6 @@ const actions = {
|
|
|
606
605
|
extraParams: {}
|
|
607
606
|
}
|
|
608
607
|
};
|
|
609
|
-
exports.actions = actions;
|
|
610
608
|
const getActionName = (config, props) => {
|
|
611
609
|
if (typeof config === 'string') {
|
|
612
610
|
return config;
|
package/lib/Action/index.js
CHANGED
|
@@ -21,11 +21,11 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
21
21
|
const _excluded = ["autoClose", "action", "buttonText", "buttonColor", "buttonVariant", "buttonSize", "buttonRounded", "children", "disableClose", "title", "scanMessage", "successMessage", "successUrl", "successTarget", "frameProps", "confirmMessage", "extraParams", "timeout", "webWalletUrl"];
|
|
22
22
|
var _templateObject;
|
|
23
23
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
24
|
-
function ownKeys(
|
|
25
|
-
function _objectSpread(
|
|
24
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
25
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
26
26
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
27
|
-
function _toPropertyKey(
|
|
28
|
-
function _toPrimitive(
|
|
27
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
|
|
28
|
+
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
29
29
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
30
30
|
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; }
|
|
31
31
|
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
@@ -267,5 +267,4 @@ PlaygroundAction.defaultProps = {
|
|
|
267
267
|
frameProps: {},
|
|
268
268
|
webWalletUrl: ''
|
|
269
269
|
};
|
|
270
|
-
var _default = PlaygroundAction;
|
|
271
|
-
exports.default = _default;
|
|
270
|
+
var _default = exports.default = PlaygroundAction;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcblock/did-playground",
|
|
3
|
-
"version": "2.9.
|
|
3
|
+
"version": "2.9.14",
|
|
4
4
|
"description": "React components that works with wallet-playground",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -30,9 +30,9 @@
|
|
|
30
30
|
"url": "https://github.com/ArcBlock/wallet-playground/issues"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@arcblock/did-connect": "^2.9.
|
|
34
|
-
"@arcblock/react-hooks": "^2.9.
|
|
35
|
-
"@arcblock/ux": "^2.9.
|
|
33
|
+
"@arcblock/did-connect": "^2.9.14",
|
|
34
|
+
"@arcblock/react-hooks": "^2.9.14",
|
|
35
|
+
"@arcblock/ux": "^2.9.14",
|
|
36
36
|
"@emotion/react": "^11.10.4",
|
|
37
37
|
"@emotion/styled": "^11.10.4",
|
|
38
38
|
"@mui/material": "^5.14.8",
|
|
@@ -53,5 +53,5 @@
|
|
|
53
53
|
"publishConfig": {
|
|
54
54
|
"access": "public"
|
|
55
55
|
},
|
|
56
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "7570827021dde66a0099a84256dfceaec07fd6b3"
|
|
57
57
|
}
|