@abtnode/ux 1.16.29-beta-bb5685f8 → 1.16.29-beta-21b5e0ab
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/team/members/index.js +33 -13
- package/lib/team/members/invite-member.js +1 -1
- package/package.json +16 -16
|
@@ -19,11 +19,13 @@ import { getTextColor } from '@abtnode/auth/lib/util/create-passport-svg';
|
|
|
19
19
|
import Datatable, { getDurableData } from '@arcblock/ux/lib/Datatable';
|
|
20
20
|
import RelativeTime from '@arcblock/ux/lib/RelativeTime';
|
|
21
21
|
import Toast from '@arcblock/ux/lib/Toast';
|
|
22
|
-
import { USER_TYPE } from '@abtnode/constant';
|
|
22
|
+
import { USER_TYPE, WELLKNOWN_SERVICE_PATH_PREFIX } from '@abtnode/constant';
|
|
23
23
|
import { TeamEvents, PROVIDER_NAME } from '@blocklet/constant';
|
|
24
24
|
import useUrlState from '@ahooksjs/use-url-state';
|
|
25
25
|
import { useMemoizedFn, useMount } from 'ahooks';
|
|
26
26
|
import { UserSessions } from '@blocklet/ui-react';
|
|
27
|
+
import getBlockletInfo from '@blocklet/meta/lib/info';
|
|
28
|
+
import { joinURL } from 'ufo';
|
|
27
29
|
import Tag from '../../tag';
|
|
28
30
|
import DidAddress from '../../did-address';
|
|
29
31
|
import { useNodeContext } from '../../contexts/node';
|
|
@@ -177,18 +179,36 @@ export default function MemberList({
|
|
|
177
179
|
provider: 'wallet'
|
|
178
180
|
});
|
|
179
181
|
}
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
182
|
+
if (federatedCurrent) {
|
|
183
|
+
appInfoList.push({
|
|
184
|
+
appId: federatedCurrent?.appId || blocklet.appDid,
|
|
185
|
+
appName: federatedCurrent?.appName,
|
|
186
|
+
appDescription: federatedCurrent?.appDescription,
|
|
187
|
+
appLogo: federatedCurrent?.appLogo,
|
|
188
|
+
appPid: federatedCurrent?.appPid,
|
|
189
|
+
appUrl: federatedCurrent?.appUrl,
|
|
190
|
+
version: federatedCurrent?.version,
|
|
191
|
+
// NOTICE: null 代表该值置空
|
|
192
|
+
sourceAppPid: null,
|
|
193
|
+
provider: 'wallet'
|
|
194
|
+
});
|
|
195
|
+
} else {
|
|
196
|
+
const blockletInfo = getBlockletInfo(blocklet, undefined, {
|
|
197
|
+
returnWallet: false
|
|
198
|
+
});
|
|
199
|
+
appInfoList.push({
|
|
200
|
+
appId: blockletInfo.did,
|
|
201
|
+
appName: blockletInfo.name,
|
|
202
|
+
appDescription: blockletInfo.description,
|
|
203
|
+
appLogo: joinURL(blockletInfo.appUrl, WELLKNOWN_SERVICE_PATH_PREFIX, '/blocklet/logo'),
|
|
204
|
+
appPid: blocklet?.appPid,
|
|
205
|
+
appUrl: blockletInfo.appUrl,
|
|
206
|
+
version: blockletInfo.version,
|
|
207
|
+
// NOTICE: null 代表该值置空
|
|
208
|
+
sourceAppPid: null,
|
|
209
|
+
provider: 'wallet'
|
|
210
|
+
});
|
|
211
|
+
}
|
|
192
212
|
}
|
|
193
213
|
const {
|
|
194
214
|
t,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abtnode/ux",
|
|
3
|
-
"version": "1.16.29-beta-
|
|
3
|
+
"version": "1.16.29-beta-21b5e0ab",
|
|
4
4
|
"description": "UX components shared across abtnode packages",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -25,25 +25,25 @@
|
|
|
25
25
|
"author": "linchen <linchen1987@foxmail.com> (http://github.com/linchen1987)",
|
|
26
26
|
"license": "Apache-2.0",
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@abtnode/auth": "1.16.29-beta-
|
|
29
|
-
"@abtnode/constant": "1.16.29-beta-
|
|
30
|
-
"@abtnode/util": "1.16.29-beta-
|
|
28
|
+
"@abtnode/auth": "1.16.29-beta-21b5e0ab",
|
|
29
|
+
"@abtnode/constant": "1.16.29-beta-21b5e0ab",
|
|
30
|
+
"@abtnode/util": "1.16.29-beta-21b5e0ab",
|
|
31
31
|
"@ahooksjs/use-url-state": "^3.5.1",
|
|
32
32
|
"@arcblock/did": "^1.18.124",
|
|
33
|
-
"@arcblock/did-connect": "^2.10.
|
|
33
|
+
"@arcblock/did-connect": "^2.10.3",
|
|
34
34
|
"@arcblock/did-motif": "^1.1.13",
|
|
35
|
-
"@arcblock/icons": "^2.10.
|
|
36
|
-
"@arcblock/nft-display": "2.10.
|
|
37
|
-
"@arcblock/react-hooks": "^2.10.
|
|
38
|
-
"@arcblock/terminal": "^2.10.
|
|
39
|
-
"@arcblock/ux": "^2.10.
|
|
40
|
-
"@blocklet/constant": "1.16.29-beta-
|
|
41
|
-
"@blocklet/js-sdk": "1.16.29-beta-
|
|
35
|
+
"@arcblock/icons": "^2.10.3",
|
|
36
|
+
"@arcblock/nft-display": "2.10.3",
|
|
37
|
+
"@arcblock/react-hooks": "^2.10.3",
|
|
38
|
+
"@arcblock/terminal": "^2.10.3",
|
|
39
|
+
"@arcblock/ux": "^2.10.3",
|
|
40
|
+
"@blocklet/constant": "1.16.29-beta-21b5e0ab",
|
|
41
|
+
"@blocklet/js-sdk": "1.16.29-beta-21b5e0ab",
|
|
42
42
|
"@blocklet/launcher-layout": "2.3.24",
|
|
43
43
|
"@blocklet/list": "^0.13.4",
|
|
44
|
-
"@blocklet/meta": "1.16.29-beta-
|
|
45
|
-
"@blocklet/ui-react": "^2.10.
|
|
46
|
-
"@blocklet/uploader": "
|
|
44
|
+
"@blocklet/meta": "1.16.29-beta-21b5e0ab",
|
|
45
|
+
"@blocklet/ui-react": "^2.10.3",
|
|
46
|
+
"@blocklet/uploader": "0.1.17",
|
|
47
47
|
"@emotion/react": "^11.10.4",
|
|
48
48
|
"@emotion/styled": "^11.10.4",
|
|
49
49
|
"@iconify-icons/logos": "^1.2.36",
|
|
@@ -108,5 +108,5 @@
|
|
|
108
108
|
"jest": "^29.7.0",
|
|
109
109
|
"jest-environment-jsdom": "^29.7.0"
|
|
110
110
|
},
|
|
111
|
-
"gitHead": "
|
|
111
|
+
"gitHead": "89bcff8f3769f77e36e4d04127093e2480246b15"
|
|
112
112
|
}
|