@abtnode/ux 1.16.16-beta-740ea329 → 1.16.16-beta-d6c5ed65
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/es/blocklet/component/sortable-tree.js +1 -0
- package/es/layout/addon.js +2 -1
- package/es/locales/en.js +2 -1
- package/es/locales/zh.js +2 -1
- package/es/team/members/index.js +8 -3
- package/lib/blocklet/component/sortable-tree.js +1 -0
- package/lib/layout/addon.js +4 -2
- package/lib/locales/en.js +2 -1
- package/lib/locales/zh.js +2 -1
- package/lib/team/members/index.js +8 -3
- package/package.json +16 -16
package/es/layout/addon.js
CHANGED
package/es/locales/en.js
CHANGED
|
@@ -1040,7 +1040,8 @@ module.exports = {
|
|
|
1040
1040
|
error: {
|
|
1041
1041
|
passportEmpty: 'Passport should not be empty'
|
|
1042
1042
|
},
|
|
1043
|
-
connectedAccounts: 'Connected Accounts'
|
|
1043
|
+
connectedAccounts: 'Connected Accounts',
|
|
1044
|
+
federated: 'Federated'
|
|
1044
1045
|
},
|
|
1045
1046
|
transferNode: {
|
|
1046
1047
|
name: 'Transfer Ownership',
|
package/es/locales/zh.js
CHANGED
package/es/team/members/index.js
CHANGED
|
@@ -294,14 +294,19 @@ export default function MemberList({
|
|
|
294
294
|
label: t('team.member.source'),
|
|
295
295
|
name: 'sourceProvider',
|
|
296
296
|
options: {
|
|
297
|
-
|
|
298
|
-
const
|
|
297
|
+
customBodyRenderLite: rowIndex => {
|
|
298
|
+
const user = users[rowIndex];
|
|
299
|
+
const source = user.sourceProvider || USER_TYPE.WALLET;
|
|
299
300
|
const providerNameMap = {
|
|
300
301
|
auth0: 'Auth0',
|
|
301
302
|
wallet: 'DID wallet',
|
|
302
303
|
federated: 'Federated'
|
|
303
304
|
};
|
|
304
|
-
|
|
305
|
+
const providerName = providerNameMap[source] || source;
|
|
306
|
+
if (user.sourceAppPid) {
|
|
307
|
+
return `${providerName} (${t('team.member.federated')})`;
|
|
308
|
+
}
|
|
309
|
+
return providerName;
|
|
305
310
|
}
|
|
306
311
|
}
|
|
307
312
|
}, {
|
package/lib/layout/addon.js
CHANGED
|
@@ -73,12 +73,14 @@ function HeaderAddon(_ref) {
|
|
|
73
73
|
}), showHelper && /*#__PURE__*/(0, _jsxRuntime.jsx)(_IconButton.default, {
|
|
74
74
|
onClick: onHelpClick,
|
|
75
75
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_QuestionMarkCircle.default, {})
|
|
76
|
-
}), showSessionManager && /*#__PURE__*/(0, _jsxRuntime.jsx)(_SessionManager.default, _objectSpread({
|
|
76
|
+
}), showSessionManager && /*#__PURE__*/(0, _jsxRuntime.jsx)(_SessionManager.default, _objectSpread(_objectSpread({
|
|
77
77
|
locale: locale,
|
|
78
78
|
session: session,
|
|
79
79
|
size: 24,
|
|
80
80
|
showRole: true
|
|
81
|
-
}, sessionManagerProps)
|
|
81
|
+
}, sessionManagerProps), {}, {
|
|
82
|
+
showManageBlocklet: false
|
|
83
|
+
}))]
|
|
82
84
|
});
|
|
83
85
|
}
|
|
84
86
|
HeaderAddon.propTypes = {
|
package/lib/locales/en.js
CHANGED
|
@@ -1042,7 +1042,8 @@ module.exports = {
|
|
|
1042
1042
|
error: {
|
|
1043
1043
|
passportEmpty: 'Passport should not be empty'
|
|
1044
1044
|
},
|
|
1045
|
-
connectedAccounts: 'Connected Accounts'
|
|
1045
|
+
connectedAccounts: 'Connected Accounts',
|
|
1046
|
+
federated: 'Federated'
|
|
1046
1047
|
},
|
|
1047
1048
|
transferNode: {
|
|
1048
1049
|
name: 'Transfer Ownership',
|
package/lib/locales/zh.js
CHANGED
|
@@ -312,14 +312,19 @@ function MemberList(_ref2) {
|
|
|
312
312
|
label: t('team.member.source'),
|
|
313
313
|
name: 'sourceProvider',
|
|
314
314
|
options: {
|
|
315
|
-
|
|
316
|
-
const
|
|
315
|
+
customBodyRenderLite: rowIndex => {
|
|
316
|
+
const user = users[rowIndex];
|
|
317
|
+
const source = user.sourceProvider || _constant.USER_TYPE.WALLET;
|
|
317
318
|
const providerNameMap = {
|
|
318
319
|
auth0: 'Auth0',
|
|
319
320
|
wallet: 'DID wallet',
|
|
320
321
|
federated: 'Federated'
|
|
321
322
|
};
|
|
322
|
-
|
|
323
|
+
const providerName = providerNameMap[source] || source;
|
|
324
|
+
if (user.sourceAppPid) {
|
|
325
|
+
return "".concat(providerName, " (").concat(t('team.member.federated'), ")");
|
|
326
|
+
}
|
|
327
|
+
return providerName;
|
|
323
328
|
}
|
|
324
329
|
}
|
|
325
330
|
}, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abtnode/ux",
|
|
3
|
-
"version": "1.16.16-beta-
|
|
3
|
+
"version": "1.16.16-beta-d6c5ed65",
|
|
4
4
|
"description": "UX components shared across abtnode packages",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -27,23 +27,23 @@
|
|
|
27
27
|
"author": "linchen <linchen1987@foxmail.com> (http://github.com/linchen1987)",
|
|
28
28
|
"license": "Apache-2.0",
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@abtnode/auth": "1.16.16-beta-
|
|
31
|
-
"@abtnode/constant": "1.16.16-beta-
|
|
32
|
-
"@abtnode/util": "1.16.16-beta-
|
|
30
|
+
"@abtnode/auth": "1.16.16-beta-d6c5ed65",
|
|
31
|
+
"@abtnode/constant": "1.16.16-beta-d6c5ed65",
|
|
32
|
+
"@abtnode/util": "1.16.16-beta-d6c5ed65",
|
|
33
33
|
"@ahooksjs/use-url-state": "^3.5.1",
|
|
34
34
|
"@arcblock/did": "^1.18.89",
|
|
35
|
-
"@arcblock/did-connect": "^2.7.
|
|
35
|
+
"@arcblock/did-connect": "^2.7.17",
|
|
36
36
|
"@arcblock/did-motif": "^1.1.13",
|
|
37
|
-
"@arcblock/icons": "^2.7.
|
|
38
|
-
"@arcblock/nft-display": "2.7.
|
|
39
|
-
"@arcblock/react-hooks": "^2.7.
|
|
40
|
-
"@arcblock/terminal": "^2.7.
|
|
41
|
-
"@arcblock/ux": "^2.7.
|
|
42
|
-
"@blocklet/constant": "1.16.16-beta-
|
|
43
|
-
"@blocklet/launcher-layout": "2.2.
|
|
44
|
-
"@blocklet/list": "^0.12.
|
|
45
|
-
"@blocklet/meta": "1.16.16-beta-
|
|
46
|
-
"@blocklet/ui-react": "^2.7.
|
|
37
|
+
"@arcblock/icons": "^2.7.17",
|
|
38
|
+
"@arcblock/nft-display": "2.7.17",
|
|
39
|
+
"@arcblock/react-hooks": "^2.7.17",
|
|
40
|
+
"@arcblock/terminal": "^2.7.17",
|
|
41
|
+
"@arcblock/ux": "^2.7.17",
|
|
42
|
+
"@blocklet/constant": "1.16.16-beta-d6c5ed65",
|
|
43
|
+
"@blocklet/launcher-layout": "2.2.7",
|
|
44
|
+
"@blocklet/list": "^0.12.37",
|
|
45
|
+
"@blocklet/meta": "1.16.16-beta-d6c5ed65",
|
|
46
|
+
"@blocklet/ui-react": "^2.7.17",
|
|
47
47
|
"@emotion/react": "^11.10.4",
|
|
48
48
|
"@emotion/styled": "^11.10.4",
|
|
49
49
|
"@iconify/react": "^4.0.0",
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
"babel-plugin-inline-react-svg": "^1.1.2",
|
|
99
99
|
"glob": "^10.3.3"
|
|
100
100
|
},
|
|
101
|
-
"gitHead": "
|
|
101
|
+
"gitHead": "16f5632a7b86283381fa49acc4d2553c65cd2aa3",
|
|
102
102
|
"exports": {
|
|
103
103
|
".": {
|
|
104
104
|
"import": "./es/index.js",
|