@abtnode/ux 1.16.29-beta-e04c6f40 → 1.16.29-beta-db5c4ed6
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/component/add-component/add-component-core.js +4 -15
- package/lib/blocklet/logo-uploader.js +1 -1
- package/lib/blocklet/publish/create-release/branding.js +53 -56
- package/lib/blocklet/publish/create-release/connect-store-button.js +59 -19
- package/lib/blocklet/publish/create-release/connect-store-list.js +23 -4
- package/lib/blocklet/publish/create-release/header.js +12 -2
- package/lib/blocklet/publish/create-release/index.js +8 -5
- package/lib/blocklet/publish/create-release/release-stepper.js +2 -2
- package/lib/blocklet/publish/create-release/resource-upload.js +16 -4
- package/lib/blocklet/publish/create-release/tree.js +4 -1
- package/lib/blocklet/publish/hooks/use-want-to-connect-store.js +14 -2
- package/lib/blocklet/publish/utils/can-delete-store.js +18 -0
- package/lib/blocklet/publish/utils/get-studio-store-list.js +15 -0
- package/lib/blocklet/publish/utils/validate-params.js +1 -1
- package/lib/delete-confirm.js +9 -2
- package/lib/locales/ar.js +1 -14
- package/lib/locales/de.js +1 -14
- package/lib/locales/en.js +1 -2
- package/lib/locales/es.js +1 -14
- package/lib/locales/fr.js +1 -14
- package/lib/locales/hi.js +1 -14
- package/lib/locales/id.js +1 -14
- package/lib/locales/ja.js +1 -14
- package/lib/locales/ko.js +1 -14
- package/lib/locales/pt.js +1 -14
- package/lib/locales/ru.js +1 -14
- package/lib/locales/th.js +1 -14
- package/lib/locales/vi.js +1 -14
- package/lib/locales/zh-tw.js +1 -14
- package/lib/locales/zh.js +3 -22
- package/lib/store/add.js +0 -4
- package/lib/store/connect-actions.js +10 -1
- package/lib/store/delete.js +10 -3
- package/lib/store/item.js +19 -10
- package/lib/team/members/index.js +19 -19
- package/lib/util/index.js +4 -9
- package/package.json +20 -20
|
@@ -141,7 +141,8 @@ export default function MemberList({
|
|
|
141
141
|
}
|
|
142
142
|
});
|
|
143
143
|
const {
|
|
144
|
-
appIdList = []
|
|
144
|
+
appIdList = [],
|
|
145
|
+
blocklet
|
|
145
146
|
} = useBlockletContext();
|
|
146
147
|
const {
|
|
147
148
|
teamDid,
|
|
@@ -151,8 +152,7 @@ export default function MemberList({
|
|
|
151
152
|
refresh,
|
|
152
153
|
enablePassportIssuance,
|
|
153
154
|
endpoint,
|
|
154
|
-
api
|
|
155
|
-
blocklet
|
|
155
|
+
api
|
|
156
156
|
} = useTeamContext();
|
|
157
157
|
const {
|
|
158
158
|
inService,
|
|
@@ -161,30 +161,30 @@ export default function MemberList({
|
|
|
161
161
|
}
|
|
162
162
|
} = useNodeContext();
|
|
163
163
|
const appInfoList = [];
|
|
164
|
-
if (
|
|
164
|
+
if (blocklet) {
|
|
165
165
|
const federatedMaster = (blocklet.settings?.federated?.sites || []).find(item => item.isMaster !== false);
|
|
166
166
|
const federatedCurrent = (blocklet.settings?.federated?.sites || []).find(item => item.appId === blocklet.appDid);
|
|
167
167
|
if (federatedCurrent?.status === 'approved') {
|
|
168
168
|
appInfoList.push({
|
|
169
|
-
appId: federatedMaster
|
|
170
|
-
appName: federatedMaster
|
|
171
|
-
appDescription: federatedMaster
|
|
172
|
-
appLogo: federatedMaster
|
|
173
|
-
appPid: federatedMaster
|
|
174
|
-
appUrl: federatedMaster
|
|
175
|
-
version: federatedMaster
|
|
176
|
-
sourceAppPid: federatedMaster
|
|
169
|
+
appId: federatedMaster?.appId,
|
|
170
|
+
appName: federatedMaster?.appName,
|
|
171
|
+
appDescription: federatedMaster?.appDescription,
|
|
172
|
+
appLogo: federatedMaster?.appLogo,
|
|
173
|
+
appPid: federatedMaster?.appPid,
|
|
174
|
+
appUrl: federatedMaster?.appUrl,
|
|
175
|
+
version: federatedMaster?.version,
|
|
176
|
+
sourceAppPid: federatedMaster?.appPid,
|
|
177
177
|
provider: 'wallet'
|
|
178
178
|
});
|
|
179
179
|
}
|
|
180
180
|
appInfoList.push({
|
|
181
|
-
appId: federatedCurrent
|
|
182
|
-
appName: federatedCurrent
|
|
183
|
-
appDescription: federatedCurrent
|
|
184
|
-
appLogo: federatedCurrent
|
|
185
|
-
appPid: federatedCurrent
|
|
186
|
-
appUrl: federatedCurrent
|
|
187
|
-
version: federatedCurrent
|
|
181
|
+
appId: federatedCurrent?.appId,
|
|
182
|
+
appName: federatedCurrent?.appName,
|
|
183
|
+
appDescription: federatedCurrent?.appDescription,
|
|
184
|
+
appLogo: federatedCurrent?.appLogo,
|
|
185
|
+
appPid: federatedCurrent?.appPid,
|
|
186
|
+
appUrl: federatedCurrent?.appUrl,
|
|
187
|
+
version: federatedCurrent?.version,
|
|
188
188
|
// NOTICE: null 代表该值置空
|
|
189
189
|
sourceAppPid: null,
|
|
190
190
|
provider: 'wallet'
|
package/lib/util/index.js
CHANGED
|
@@ -18,6 +18,7 @@ import { evaluateURLs } from '@abtnode/util/lib/url-evaluation';
|
|
|
18
18
|
import checkAccessible from '@abtnode/util/lib/url-evaluation/check-accessible-browser';
|
|
19
19
|
import { BLOCKLET_MODES } from '@blocklet/constant';
|
|
20
20
|
import urlPathFriendly from '@blocklet/meta/lib/url-path-friendly';
|
|
21
|
+
const STORE_LOGO_FILTER = 'imageFilter=convert&f=png&h=80';
|
|
21
22
|
export { formatError };
|
|
22
23
|
export function filesize(size, options = {}) {
|
|
23
24
|
return _filesize(size, {
|
|
@@ -300,17 +301,11 @@ export const getIssuePassportLink = ({
|
|
|
300
301
|
u.searchParams.set('id', id);
|
|
301
302
|
return u.href;
|
|
302
303
|
};
|
|
303
|
-
export const formatRegistryScreenshotPath = (did, asset) => {
|
|
304
|
-
if (asset.startsWith('/assets')) {
|
|
305
|
-
return asset;
|
|
306
|
-
}
|
|
307
|
-
return `/assets/${did}/screenshots/${asset}`;
|
|
308
|
-
};
|
|
309
304
|
export const formatRegistryLogoPath = (did, asset, version = '') => {
|
|
310
305
|
if (asset.startsWith('/assets')) {
|
|
311
306
|
return asset;
|
|
312
307
|
}
|
|
313
|
-
return version ? `/assets/${did}/${asset}?v=${version}` : `/assets/${did}/${asset}`;
|
|
308
|
+
return version ? `/assets/${did}/${asset}?v=${version}&${STORE_LOGO_FILTER}` : `/assets/${did}/${asset}?${STORE_LOGO_FILTER}`;
|
|
314
309
|
};
|
|
315
310
|
export function getWebWalletUrl(info) {
|
|
316
311
|
try {
|
|
@@ -373,7 +368,7 @@ export const getBlockletLogoUrl = ({
|
|
|
373
368
|
if (apiPrefix) {
|
|
374
369
|
apiPrefix = `/${apiPrefix}`;
|
|
375
370
|
}
|
|
376
|
-
return joinURL(apiPrefix, version ? `/blocklet/logo/${did}?v=${version}` : `/blocklet/logo/${did}`);
|
|
371
|
+
return joinURL(apiPrefix, version ? `/blocklet/logo/${did}?v=${version}&${STORE_LOGO_FILTER}` : `/blocklet/logo/${did}?${STORE_LOGO_FILTER}`);
|
|
377
372
|
};
|
|
378
373
|
export const getPathPrefix = () => window.env && window.env.apiPrefix ? window.env.apiPrefix : '/';
|
|
379
374
|
export const isUrlAccessible = url => checkAccessible(joinURL(new URL(url).origin, WELLKNOWN_PING_PREFIX));
|
|
@@ -595,7 +590,7 @@ export const getStoreList = ({
|
|
|
595
590
|
const storeList = fromBlocklet ? blocklet?.settings?.storeList || [] : nodeInfo?.blockletRegistryList || [];
|
|
596
591
|
return {
|
|
597
592
|
teamDid,
|
|
598
|
-
storeList: storeList.filter(x =>
|
|
593
|
+
storeList: storeList.filter(x => x.protected || !x.scope)
|
|
599
594
|
};
|
|
600
595
|
};
|
|
601
596
|
const isDidDomainOrIpEchoDomain = domain => {
|
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-db5c4ed6",
|
|
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-db5c4ed6",
|
|
29
|
+
"@abtnode/constant": "1.16.29-beta-db5c4ed6",
|
|
30
|
+
"@abtnode/util": "1.16.29-beta-db5c4ed6",
|
|
31
31
|
"@ahooksjs/use-url-state": "^3.5.1",
|
|
32
|
-
"@arcblock/did": "^1.18.
|
|
33
|
-
"@arcblock/did-connect": "^2.10.
|
|
32
|
+
"@arcblock/did": "^1.18.124",
|
|
33
|
+
"@arcblock/did-connect": "^2.10.2",
|
|
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-
|
|
42
|
-
"@blocklet/launcher-layout": "2.3.
|
|
43
|
-
"@blocklet/list": "^0.
|
|
44
|
-
"@blocklet/meta": "1.16.29-beta-
|
|
45
|
-
"@blocklet/ui-react": "^2.10.
|
|
46
|
-
"@blocklet/uploader": "^0.1.
|
|
35
|
+
"@arcblock/icons": "^2.10.2",
|
|
36
|
+
"@arcblock/nft-display": "2.10.2",
|
|
37
|
+
"@arcblock/react-hooks": "^2.10.2",
|
|
38
|
+
"@arcblock/terminal": "^2.10.2",
|
|
39
|
+
"@arcblock/ux": "^2.10.2",
|
|
40
|
+
"@blocklet/constant": "1.16.29-beta-db5c4ed6",
|
|
41
|
+
"@blocklet/js-sdk": "1.16.29-beta-db5c4ed6",
|
|
42
|
+
"@blocklet/launcher-layout": "2.3.24",
|
|
43
|
+
"@blocklet/list": "^0.13.4",
|
|
44
|
+
"@blocklet/meta": "1.16.29-beta-db5c4ed6",
|
|
45
|
+
"@blocklet/ui-react": "^2.10.2",
|
|
46
|
+
"@blocklet/uploader": "^0.1.16",
|
|
47
47
|
"@emotion/react": "^11.10.4",
|
|
48
48
|
"@emotion/styled": "^11.10.4",
|
|
49
49
|
"@iconify-icons/logos": "^1.2.36",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"@mui/styles": "^5.15.11",
|
|
57
57
|
"@mui/x-date-pickers": "^6.19.0",
|
|
58
58
|
"@mui/x-tree-view": "^6.17.0",
|
|
59
|
-
"@ocap/client": "1.18.
|
|
59
|
+
"@ocap/client": "1.18.124",
|
|
60
60
|
"@uiw/react-markdown-preview": "^5.1.1",
|
|
61
61
|
"ahooks": "^3.7.8",
|
|
62
62
|
"axios": "^1.7.2",
|
|
@@ -108,5 +108,5 @@
|
|
|
108
108
|
"jest": "^29.7.0",
|
|
109
109
|
"jest-environment-jsdom": "^29.7.0"
|
|
110
110
|
},
|
|
111
|
-
"gitHead": "
|
|
111
|
+
"gitHead": "b15f6442fd30f217c08c7f892dce5d38e340ea28"
|
|
112
112
|
}
|