@abtnode/ux 1.16.6-beta-7cbab489 → 1.16.6-beta-79e0bbcc
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/blocklet/overview.js
CHANGED
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = BlockletOverview;
|
|
7
7
|
var _Button = _interopRequireDefault(require("@arcblock/ux/lib/Button"));
|
|
8
8
|
var _styled = _interopRequireDefault(require("@emotion/styled"));
|
|
9
|
+
var _isEmpty = _interopRequireDefault(require("lodash/isEmpty"));
|
|
9
10
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
10
11
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
12
|
var _Alert = _interopRequireDefault(require("@mui/material/Alert"));
|
|
@@ -140,7 +141,7 @@ function BlockletOverview() {
|
|
|
140
141
|
status: blocklet.status,
|
|
141
142
|
source: blocklet.source
|
|
142
143
|
})
|
|
143
|
-
}, blocklet.controller ? {
|
|
144
|
+
}, !(0, _isEmpty.default)(blocklet.controller) ? {
|
|
144
145
|
name: t('common.expires'),
|
|
145
146
|
value: /*#__PURE__*/(0, _jsxRuntime.jsx)(_expiration.default, {
|
|
146
147
|
controller: blocklet.controller,
|
package/lib/lost-passport.js
CHANGED
|
@@ -245,9 +245,11 @@ function LostPassport(_ref2) {
|
|
|
245
245
|
}, {
|
|
246
246
|
label: t('lostPassport.receivePassport'),
|
|
247
247
|
content: () => {
|
|
248
|
+
var _window, _window$blocklet;
|
|
248
249
|
const extraParams = {
|
|
249
250
|
receiverDid: user.did,
|
|
250
|
-
passportName: passport
|
|
251
|
+
passportName: passport,
|
|
252
|
+
teamDid: ((_window = window) === null || _window === void 0 ? void 0 : (_window$blocklet = _window.blocklet) === null || _window$blocklet === void 0 ? void 0 : _window$blocklet.did) || ''
|
|
251
253
|
};
|
|
252
254
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Connect.default, {
|
|
253
255
|
popup: true,
|
|
@@ -13,6 +13,7 @@ var _ListItemText = _interopRequireDefault(require("@mui/material/ListItemText")
|
|
|
13
13
|
var _context = require("@arcblock/ux/lib/Locale/context");
|
|
14
14
|
var _ForbidLoginIcon = _interopRequireDefault(require("@arcblock/icons/lib/ForbidLoginIcon"));
|
|
15
15
|
var _AllowLoginIcon = _interopRequireDefault(require("@arcblock/icons/lib/AllowLoginIcon"));
|
|
16
|
+
var _didUtils = require("@blocklet/meta/lib/did-utils");
|
|
16
17
|
var _team = require("../../contexts/team");
|
|
17
18
|
var _actions = _interopRequireDefault(require("../../actions"));
|
|
18
19
|
var _issuePassport = _interopRequireDefault(require("./issue-passport"));
|
|
@@ -81,6 +82,7 @@ function MemberActions(_ref) {
|
|
|
81
82
|
}), enablePassportIssuance && /*#__PURE__*/(0, _jsxRuntime.jsx)(_issuePassport.default, {
|
|
82
83
|
teamDid: teamDid,
|
|
83
84
|
ownerDid: user.did,
|
|
85
|
+
needReceive: (0, _didUtils.getWalletDid)(user) === user.did,
|
|
84
86
|
roles: roles,
|
|
85
87
|
onCancel: () => setEnablePassportIssuance(false),
|
|
86
88
|
onSuccess: () => {
|
|
@@ -14,6 +14,7 @@ var _Add = _interopRequireDefault(require("@mui/icons-material/Add"));
|
|
|
14
14
|
var _Box = _interopRequireDefault(require("@mui/material/Box"));
|
|
15
15
|
var _Tooltip = _interopRequireDefault(require("@mui/material/Tooltip"));
|
|
16
16
|
var _ErrorOutline = _interopRequireDefault(require("@mui/icons-material/ErrorOutline"));
|
|
17
|
+
var _didUtils = require("@blocklet/meta/lib/did-utils");
|
|
17
18
|
var _context = require("@arcblock/ux/lib/Locale/context");
|
|
18
19
|
var _Button = _interopRequireDefault(require("@arcblock/ux/lib/Button"));
|
|
19
20
|
var _RevokeIcon = _interopRequireDefault(require("@arcblock/icons/lib/RevokeIcon"));
|
|
@@ -71,7 +72,7 @@ ConfirmDescription.propTypes = {
|
|
|
71
72
|
};
|
|
72
73
|
ConfirmDescription.defaultProps = {};
|
|
73
74
|
function Passports(_ref2) {
|
|
74
|
-
var
|
|
75
|
+
var _blocklet$settings;
|
|
75
76
|
let {
|
|
76
77
|
user,
|
|
77
78
|
onCreate
|
|
@@ -191,17 +192,6 @@ function Passports(_ref2) {
|
|
|
191
192
|
};
|
|
192
193
|
};
|
|
193
194
|
const filteredPassports = passports.filter(x => !search || x.title.includes(search) || x.name.includes(search));
|
|
194
|
-
const needReceive = (0, _react.useMemo)(() => {
|
|
195
|
-
var _user$extraConfigs;
|
|
196
|
-
const connectedAccounts = (user === null || user === void 0 ? void 0 : (_user$extraConfigs = user.extraConfigs) === null || _user$extraConfigs === void 0 ? void 0 : _user$extraConfigs.connectedAccounts) || [];
|
|
197
|
-
if (connectedAccounts.find(item => item.provider === 'wallet')) {
|
|
198
|
-
return true;
|
|
199
|
-
}
|
|
200
|
-
if (connectedAccounts.length === 0) {
|
|
201
|
-
return true;
|
|
202
|
-
}
|
|
203
|
-
return false;
|
|
204
|
-
}, [user === null || user === void 0 ? void 0 : (_user$extraConfigs2 = user.extraConfigs) === null || _user$extraConfigs2 === void 0 ? void 0 : _user$extraConfigs2.connectedAccounts]);
|
|
205
195
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(Div, {
|
|
206
196
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_listHeader.default, {
|
|
207
197
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
@@ -325,7 +315,7 @@ function Passports(_ref2) {
|
|
|
325
315
|
}), showIssueDialog && /*#__PURE__*/(0, _jsxRuntime.jsx)(_issuePassport.default, {
|
|
326
316
|
teamDid: teamDid,
|
|
327
317
|
ownerDid: user.did,
|
|
328
|
-
needReceive:
|
|
318
|
+
needReceive: (0, _didUtils.getWalletDid)(user) === user.did,
|
|
329
319
|
roles: roles,
|
|
330
320
|
onCancel: () => setShowIssueDialog(false),
|
|
331
321
|
onSuccess: () => {
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abtnode/ux",
|
|
3
|
+
"version": "1.16.6-beta-79e0bbcc",
|
|
4
|
+
"description": "UX components shared across abtnode packages",
|
|
3
5
|
"publishConfig": {
|
|
4
6
|
"access": "public"
|
|
5
7
|
},
|
|
6
|
-
"version": "1.16.6-beta-7cbab489",
|
|
7
|
-
"description": "UX components shared across abtnode packages",
|
|
8
8
|
"main": "lib/index.js",
|
|
9
9
|
"files": [
|
|
10
10
|
"lib"
|
|
@@ -22,20 +22,20 @@
|
|
|
22
22
|
"author": "linchen <linchen1987@foxmail.com> (http://github.com/linchen1987)",
|
|
23
23
|
"license": "MIT",
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@abtnode/auth": "1.16.6-beta-
|
|
26
|
-
"@abtnode/constant": "1.16.6-beta-
|
|
27
|
-
"@abtnode/util": "1.16.6-beta-
|
|
28
|
-
"@arcblock/did": "^1.18.
|
|
25
|
+
"@abtnode/auth": "1.16.6-beta-79e0bbcc",
|
|
26
|
+
"@abtnode/constant": "1.16.6-beta-79e0bbcc",
|
|
27
|
+
"@abtnode/util": "1.16.6-beta-79e0bbcc",
|
|
28
|
+
"@arcblock/did": "^1.18.76",
|
|
29
29
|
"@arcblock/did-connect": "^2.5.34",
|
|
30
30
|
"@arcblock/did-motif": "^1.1.10",
|
|
31
31
|
"@arcblock/icons": "^2.5.34",
|
|
32
32
|
"@arcblock/react-hooks": "^2.5.34",
|
|
33
33
|
"@arcblock/terminal": "^2.5.34",
|
|
34
34
|
"@arcblock/ux": "^2.5.34",
|
|
35
|
-
"@blocklet/constant": "1.16.6-beta-
|
|
36
|
-
"@blocklet/launcher-layout": "2.0.
|
|
35
|
+
"@blocklet/constant": "1.16.6-beta-79e0bbcc",
|
|
36
|
+
"@blocklet/launcher-layout": "2.0.34",
|
|
37
37
|
"@blocklet/list": "^0.11.22",
|
|
38
|
-
"@blocklet/meta": "1.16.6-beta-
|
|
38
|
+
"@blocklet/meta": "1.16.6-beta-79e0bbcc",
|
|
39
39
|
"@blocklet/ui-react": "^2.5.34",
|
|
40
40
|
"@emotion/react": "^11.10.4",
|
|
41
41
|
"@emotion/styled": "^11.10.4",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"@mui/lab": "^5.0.0-alpha.102",
|
|
46
46
|
"@mui/material": "^5.10.8",
|
|
47
47
|
"@mui/styles": "^5.10.8",
|
|
48
|
-
"@ocap/client": "1.18.
|
|
48
|
+
"@ocap/client": "1.18.76",
|
|
49
49
|
"@uiw/react-markdown-preview": "4.0.6",
|
|
50
50
|
"ahooks": "^3.7.1",
|
|
51
51
|
"axios": "^0.27.2",
|
|
@@ -91,5 +91,5 @@
|
|
|
91
91
|
"@babel/preset-react": "^7.18.6",
|
|
92
92
|
"babel-plugin-inline-react-svg": "^1.1.2"
|
|
93
93
|
},
|
|
94
|
-
"gitHead": "
|
|
94
|
+
"gitHead": "a14091393bf4c1a7b430155cf27343a0f23ffa2c"
|
|
95
95
|
}
|