@abtnode/ux 1.16.14-beta-ab7f615e → 1.16.14-beta-cb53c14b
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/actions.js +97 -0
- package/es/analytics/card.js +92 -0
- package/es/analytics/chart.js +96 -0
- package/es/analytics/cpu.js +36 -0
- package/es/analytics/disk.js +111 -0
- package/es/analytics/memory.js +72 -0
- package/es/analytics/runtime.js +173 -0
- package/es/analytics/traffic.js +259 -0
- package/es/blocklet/access/config-access.js +307 -0
- package/es/blocklet/access/index.js +216 -0
- package/es/blocklet/actions.js +474 -0
- package/es/blocklet/add-cert.js +177 -0
- package/es/blocklet/agreement-app.js +21 -0
- package/es/blocklet/agreement.js +127 -0
- package/es/blocklet/app-avatar.js +57 -0
- package/es/blocklet/audit-logs.js +259 -0
- package/es/blocklet/blocklet-source.js +48 -0
- package/es/blocklet/bundle-avatar.js +64 -0
- package/es/blocklet/component/add.js +1308 -0
- package/es/blocklet/component/configuration.js +122 -0
- package/es/blocklet/component/delete.js +134 -0
- package/es/blocklet/component/environment.js +370 -0
- package/es/blocklet/component/index.js +975 -0
- package/es/blocklet/component/line.js +20 -0
- package/es/blocklet/component/navigation/locale-tabs.js +225 -0
- package/es/blocklet/component/navigation/navigation-actions.js +112 -0
- package/es/blocklet/component/navigation/navigation-dialog.js +607 -0
- package/es/blocklet/component/navigation/navigation-preview.js +101 -0
- package/es/blocklet/component/navigation/simple-select.js +124 -0
- package/es/blocklet/component/select-store.js +155 -0
- package/es/blocklet/component/setting.js +109 -0
- package/es/blocklet/component/sortable-tree.js +126 -0
- package/es/blocklet/component/space-connector.js +199 -0
- package/es/blocklet/component/space-selector.js +178 -0
- package/es/blocklet/component/start.js +101 -0
- package/es/blocklet/component/store-blocklet-list.js +200 -0
- package/es/blocklet/component/switch-control.js +57 -0
- package/es/blocklet/config-navigation.js +331 -0
- package/es/blocklet/configuration.js +603 -0
- package/es/blocklet/disk-info.js +75 -0
- package/es/blocklet/icons.js +18 -0
- package/es/blocklet/install-from-url.js +337 -0
- package/es/blocklet/log.js +90 -0
- package/es/blocklet/migration.js +149 -0
- package/es/blocklet/mode.js +19 -0
- package/es/blocklet/notification/email.js +257 -0
- package/es/blocklet/notification/index.js +49 -0
- package/es/blocklet/oauth/auth0.js +145 -0
- package/es/blocklet/oauth/common-settings.js +133 -0
- package/es/blocklet/oauth/federated-detail-dialog.js +175 -0
- package/es/blocklet/oauth/federated-invite-dialog.js +83 -0
- package/es/blocklet/oauth/federated-join-dialog.js +111 -0
- package/es/blocklet/oauth/federated-site-list.js +338 -0
- package/es/blocklet/oauth/federated.js +81 -0
- package/es/blocklet/oauth/index.js +69 -0
- package/es/blocklet/overview.js +293 -0
- package/es/blocklet/page-group.js +19 -0
- package/es/blocklet/preferences/app-sk.js +142 -0
- package/es/blocklet/preferences/index.js +305 -0
- package/es/blocklet/purchase/common.js +95 -0
- package/es/blocklet/purchase/component-purchase.js +237 -0
- package/es/blocklet/purchase/index.js +4 -0
- package/es/blocklet/router/action/add-domain-alias.js +167 -0
- package/es/blocklet/router/action/add-rule.js +211 -0
- package/es/blocklet/router/action/config-routing-rule.js +232 -0
- package/es/blocklet/router/action/delete-domain-alias.js +99 -0
- package/es/blocklet/router/action/delete-rule.js +108 -0
- package/es/blocklet/router/action/update-rule.js +209 -0
- package/es/blocklet/router/domain-actions.js +64 -0
- package/es/blocklet/router/domain-status.js +88 -0
- package/es/blocklet/router/rule-actions.js +66 -0
- package/es/blocklet/router/rule-list.js +190 -0
- package/es/blocklet/router/util.js +131 -0
- package/es/blocklet/runtime-info.js +68 -0
- package/es/blocklet/status.js +91 -0
- package/es/blocklet/storage/action.js +134 -0
- package/es/blocklet/storage/backups.js +241 -0
- package/es/blocklet/storage/connect-to.js +373 -0
- package/es/blocklet/storage/connected.js +198 -0
- package/es/blocklet/storage/delete.js +113 -0
- package/es/blocklet/storage/disconnect.js +243 -0
- package/es/blocklet/storage/index.js +19 -0
- package/es/blocklet/storage/item.js +558 -0
- package/es/blocklet/storage/preview-nft.js +286 -0
- package/es/blocklet/transfer-owner.js +198 -0
- package/es/blocklet/types.js +18 -0
- package/es/blocklet/util.js +145 -0
- package/es/blocklet/version.js +141 -0
- package/es/card-selector.js +134 -0
- package/es/certificate.js +105 -0
- package/es/chain.js +13 -0
- package/es/click-to-copy.js +22 -0
- package/es/confirm.js +149 -0
- package/es/contexts/audit-log.js +152 -0
- package/es/contexts/blocklet.js +10 -0
- package/es/contexts/deleting-blocklets.js +70 -0
- package/es/contexts/node.js +17 -0
- package/es/contexts/session.js +8 -0
- package/es/contexts/team.js +10 -0
- package/es/delete-confirm.js +121 -0
- package/es/did-address.js +46 -0
- package/es/dot.js +14 -0
- package/es/exchange-passport.js +102 -0
- package/es/form/form-select-input.js +184 -0
- package/es/form/form-text-input.js +178 -0
- package/es/form/form-wrapper.js +88 -0
- package/es/form/input-triggers.js +98 -0
- package/es/form/required.js +8 -0
- package/es/hooks/blocklet.js +229 -0
- package/es/hooks/confirm.js +90 -0
- package/es/hooks/mobile-width.js +11 -0
- package/es/hooks/url-evaluation.js +155 -0
- package/es/hooks/use-app-logo.js +16 -0
- package/es/hooks/use-backup-progress.js +31 -0
- package/es/hooks/use-blocklet-info-for-connect-did-spaces.js +50 -0
- package/es/hooks/use-bundle-logo.js +27 -0
- package/es/hooks/use-navigation.js +347 -0
- package/es/hooks/use-passport-id.js +14 -0
- package/es/hooks/use-subscription.js +22 -0
- package/es/icons/empty-space-nft.svg +59 -0
- package/es/icons/empty-spaces-nft.svg +58 -0
- package/es/icons/long-arrow.svg +5 -0
- package/es/icons/space-connected.svg +3 -0
- package/es/icons/space-disconnect.svg +3 -0
- package/es/index.js +3 -0
- package/es/invitation/invitation-app.js +58 -0
- package/es/invitation/invitation-login.js +68 -0
- package/es/invitation/invitation-passport.js +144 -0
- package/es/invitation/invitation-receive.js +138 -0
- package/es/invitation/invitation-success.js +93 -0
- package/es/invitation/invitation-user.js +90 -0
- package/es/invitation/invitation.js +90 -0
- package/es/issue-passport.js +142 -0
- package/es/launch-blocklet/content-layout.js +58 -0
- package/es/launch-blocklet/page-header.js +43 -0
- package/es/layout/addon.js +114 -0
- package/es/layout/feedback.js +55 -0
- package/es/locales/en.js +1534 -0
- package/es/locales/index.js +9 -0
- package/es/locales/zh.js +1537 -0
- package/es/logs/clock.js +11 -0
- package/es/logs/download.js +132 -0
- package/es/logs/log-terminal.js +253 -0
- package/es/lost-passport.js +452 -0
- package/es/nav-logo.js +219 -0
- package/es/passport-tag.js +43 -0
- package/es/permission.js +57 -0
- package/es/relative-time.js +53 -0
- package/es/result-message.js +11 -0
- package/es/schema-form/color-input.js +98 -0
- package/es/schema-form/common-prop-types.js +13 -0
- package/es/schema-form/index.js +215 -0
- package/es/schema-form/passport-input.js +54 -0
- package/es/schema-form/text-input.js +57 -0
- package/es/store/add.js +179 -0
- package/es/store/delete.js +96 -0
- package/es/store/item.js +76 -0
- package/es/subscription.js +144 -0
- package/es/table-icons.js +34 -0
- package/es/table.js +52 -0
- package/es/tag.js +21 -0
- package/es/team/members/actions.js +89 -0
- package/es/team/members/index.js +636 -0
- package/es/team/members/invitations.js +188 -0
- package/es/team/members/invite-member.js +208 -0
- package/es/team/members/issue-passport.js +152 -0
- package/es/team/members/member.js +408 -0
- package/es/team/members/passport-issuances.js +155 -0
- package/es/team/members/passports.js +364 -0
- package/es/team/members/toggle-user-approval.js +122 -0
- package/es/team/members/transfer-node.js +256 -0
- package/es/team/members/util.js +14 -0
- package/es/team/passports/color.js +126 -0
- package/es/team/passports/detail.js +312 -0
- package/es/team/passports/index.js +282 -0
- package/es/team/passports/mutate-role.js +198 -0
- package/es/team/passports/trusted-factories.js +221 -0
- package/es/team/passports/trusted-factory.js +343 -0
- package/es/team/passports/trusted-issuer.js +296 -0
- package/es/team/passports/trusted-issuers.js +226 -0
- package/es/team/search-input.js +46 -0
- package/es/team/styles/dialog.js +72 -0
- package/es/team/styles/list-header.js +31 -0
- package/es/util/api.js +6 -0
- package/es/util/constants.js +2 -0
- package/es/util/index.js +598 -0
- package/es/util/mode.js +4 -0
- package/es/util/space-gateway.js +51 -0
- package/es/util/spaces.js +151 -0
- package/es/who-can-access/config.js +38 -0
- package/es/wrap-locale.js +15 -0
- package/lib/blocklet/component/space-connector.js +1 -1
- package/lib/blocklet/component/space-selector.js +1 -1
- package/lib/blocklet/storage/backups.js +1 -1
- package/lib/blocklet/storage/connect-to.js +1 -1
- package/lib/blocklet/storage/connected.js +1 -1
- package/lib/blocklet/storage/disconnect.js +1 -1
- package/lib/blocklet/storage/index.js +1 -1
- package/lib/blocklet/storage/item.js +1 -1
- package/lib/invitation/invitation-receive.js +1 -1
- package/lib/team/passports/trusted-factory.js +1 -1
- package/package.json +81 -18
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
import isUrl from 'is-url';
|
|
2
|
+
import { BLOCKLET_CONFIGURABLE_KEY } from '@blocklet/constant';
|
|
3
|
+
import { isObject } from 'lodash';
|
|
4
|
+
import { api } from './api';
|
|
5
|
+
|
|
6
|
+
/* eslint-disable import/prefer-default-export */
|
|
7
|
+
const joinUrl = require('url-join');
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* @FIXME 希望之后放在 sdk 中 @jianchao
|
|
11
|
+
* @description
|
|
12
|
+
* @param {string} endpoint
|
|
13
|
+
* @returns {string}
|
|
14
|
+
*/
|
|
15
|
+
export function getBackupFilesUrlFromEndpoint(endpoint) {
|
|
16
|
+
const prefix = endpoint.replace(/\/api\/space\/.+/, '');
|
|
17
|
+
const strArray = endpoint.replace(/\/$/, '').split('/');
|
|
18
|
+
const spaceDid = strArray.at(-4);
|
|
19
|
+
const appDid = strArray.at(-2);
|
|
20
|
+
return joinUrl(prefix, 'space', spaceDid, 'apps', appDid, 'explorer', `?key=/apps/${appDid}/.did-objects/${appDid}/`);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* @FIXME 希望之后放在 sdk 中 @jianchao
|
|
25
|
+
* @description
|
|
26
|
+
* @param {string} endpoint
|
|
27
|
+
* @returns {string}
|
|
28
|
+
*/
|
|
29
|
+
export function getDIDSpaceUrlFromEndpoint(endpoint) {
|
|
30
|
+
const prefix = endpoint.replace(/\/api\/space\/.+/, '');
|
|
31
|
+
const strArray = endpoint.replace(/\/$/, '').split('/');
|
|
32
|
+
const spaceDid = strArray.at(-4);
|
|
33
|
+
return joinUrl(prefix, 'space', spaceDid);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* @FIXME 希望之后放在 sdk 中 @jianchao
|
|
38
|
+
* @description
|
|
39
|
+
* @param {string} endpoint
|
|
40
|
+
* @returns {string}
|
|
41
|
+
*/
|
|
42
|
+
export function getDIDSpaceDidFromEndpoint(endpoint) {
|
|
43
|
+
const strArray = endpoint.replace(/\/$/, '').split('/');
|
|
44
|
+
const spaceDid = strArray.at(-4);
|
|
45
|
+
return spaceDid;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* @description
|
|
50
|
+
* @export
|
|
51
|
+
* @param {string} endpoint
|
|
52
|
+
* @return {Promise<boolean>}
|
|
53
|
+
*/
|
|
54
|
+
export async function hasPermissionByEndpoint(endpoint) {
|
|
55
|
+
try {
|
|
56
|
+
if (!isUrl(endpoint)) {
|
|
57
|
+
return false;
|
|
58
|
+
}
|
|
59
|
+
const {
|
|
60
|
+
headers
|
|
61
|
+
} = await api.head(endpoint, {
|
|
62
|
+
timeout: 5000
|
|
63
|
+
});
|
|
64
|
+
return headers['x-listable'] === 'true' && headers['x-readable'] === 'true' && headers['x-writeable'] === 'true';
|
|
65
|
+
} catch (error) {
|
|
66
|
+
console.error(error);
|
|
67
|
+
return false;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* @description
|
|
73
|
+
* @export
|
|
74
|
+
* @param {import('@abtnode/client').ConfigEntry[]} environments
|
|
75
|
+
* @return {string}
|
|
76
|
+
*/
|
|
77
|
+
export function getSpaceBackupEndpoint(environments) {
|
|
78
|
+
return environments?.find(e => e.key === BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_BACKUP_ENDPOINT)?.value || '';
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* @description
|
|
83
|
+
* @export
|
|
84
|
+
* @param {string} endpoint
|
|
85
|
+
* @return {boolean}
|
|
86
|
+
*/
|
|
87
|
+
export function getSpaceGatewayFromEndpoint(endpoint) {
|
|
88
|
+
return endpoint?.replace(/\/api\/space\/.+/, '');
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* @description
|
|
93
|
+
* @export
|
|
94
|
+
* @param {string} spaceGatewayUrl
|
|
95
|
+
* @return {Promise<boolean>}
|
|
96
|
+
*/
|
|
97
|
+
export async function isValidSpaceGatewayUrl(spaceGatewayUrl) {
|
|
98
|
+
try {
|
|
99
|
+
if (!isUrl(spaceGatewayUrl)) {
|
|
100
|
+
return false;
|
|
101
|
+
}
|
|
102
|
+
const didConnectTokenUrl = joinUrl(spaceGatewayUrl, 'space/api/did/one-click-authorization/token');
|
|
103
|
+
const {
|
|
104
|
+
status,
|
|
105
|
+
data
|
|
106
|
+
} = await api.get(didConnectTokenUrl, {
|
|
107
|
+
timeout: 5000
|
|
108
|
+
});
|
|
109
|
+
// note: data 必定返回一个对象才行,如果 data 返回了一个非对象,说明失败了,此时可能返回了前端的 404 页面的 html
|
|
110
|
+
return status === 200 && isObject(data);
|
|
111
|
+
} catch (error) {
|
|
112
|
+
console.error(error);
|
|
113
|
+
return false;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* @description
|
|
119
|
+
* @export
|
|
120
|
+
* @param {string} endpoint
|
|
121
|
+
* @return {Promise<string >}
|
|
122
|
+
*/
|
|
123
|
+
export async function getSpaceNameByEndpoint(endpoint) {
|
|
124
|
+
try {
|
|
125
|
+
if (!isUrl(endpoint)) {
|
|
126
|
+
return '';
|
|
127
|
+
}
|
|
128
|
+
const {
|
|
129
|
+
headers
|
|
130
|
+
} = await api.head(endpoint, {
|
|
131
|
+
timeout: 3000
|
|
132
|
+
});
|
|
133
|
+
const spaceName = headers['x-space-name'];
|
|
134
|
+
return spaceName ? decodeURIComponent(spaceName) : '';
|
|
135
|
+
} catch (error) {
|
|
136
|
+
console.error(error);
|
|
137
|
+
return '';
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* @description
|
|
142
|
+
* @export
|
|
143
|
+
* @param {string} endpoint
|
|
144
|
+
* @return {string}
|
|
145
|
+
*/
|
|
146
|
+
export function getSpaceNftDisplayUrlFromEndpoint(endpoint) {
|
|
147
|
+
const prefix = endpoint.replace(/\/api\/space\/.+/, '');
|
|
148
|
+
const strArray = endpoint.replace(/\/$/, '').split('/');
|
|
149
|
+
const spaceDid = strArray.at(-4);
|
|
150
|
+
return joinUrl(prefix, `/api/space/nft/display?spaceDid=${spaceDid}`);
|
|
151
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import LockIcon from '@mui/icons-material/Lock';
|
|
2
|
+
import ContactMailIcon from '@mui/icons-material/ContactMail';
|
|
3
|
+
import PublicIcon from '@mui/icons-material/Public';
|
|
4
|
+
import { WHO_CAN_ACCESS } from '@abtnode/constant';
|
|
5
|
+
export default [{
|
|
6
|
+
value: WHO_CAN_ACCESS.ALL,
|
|
7
|
+
icon: PublicIcon,
|
|
8
|
+
title: {
|
|
9
|
+
zh: '所有人可访问',
|
|
10
|
+
en: 'Accessible to all'
|
|
11
|
+
},
|
|
12
|
+
description: {
|
|
13
|
+
zh: '向所有人开放,无需通行证即可访问应用',
|
|
14
|
+
en: 'Open to the world anyone can access without passport'
|
|
15
|
+
}
|
|
16
|
+
}, {
|
|
17
|
+
value: WHO_CAN_ACCESS.INVITED,
|
|
18
|
+
icon: ContactMailIcon,
|
|
19
|
+
title: {
|
|
20
|
+
zh: '只有被邀请的人可以访问',
|
|
21
|
+
en: 'Only invited people can access'
|
|
22
|
+
},
|
|
23
|
+
description: {
|
|
24
|
+
zh: '稍后您可以在管理页面中邀请成员',
|
|
25
|
+
en: 'You can invite members later in the admin page'
|
|
26
|
+
}
|
|
27
|
+
}, {
|
|
28
|
+
value: WHO_CAN_ACCESS.OWNER,
|
|
29
|
+
icon: LockIcon,
|
|
30
|
+
title: {
|
|
31
|
+
zh: '只有应用所有者可以访问',
|
|
32
|
+
en: 'Only Owner of the blocklet can access'
|
|
33
|
+
},
|
|
34
|
+
description: {
|
|
35
|
+
zh: '必须提供所有者通行证才能访问应用',
|
|
36
|
+
en: 'You must provide owner passport to access this application'
|
|
37
|
+
}
|
|
38
|
+
}];
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/* eslint-disable react/jsx-props-no-spreading */
|
|
2
|
+
/* eslint-disable import/no-extraneous-dependencies */
|
|
3
|
+
import { LocaleProvider } from '@arcblock/ux/lib/Locale/context';
|
|
4
|
+
import { translations } from './locales';
|
|
5
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
|
+
export default function wrapLocale(Component) {
|
|
7
|
+
return function LocaleWrapper(props) {
|
|
8
|
+
return /*#__PURE__*/_jsx(LocaleProvider, {
|
|
9
|
+
translations: translations,
|
|
10
|
+
children: /*#__PURE__*/_jsx(Component, {
|
|
11
|
+
...props
|
|
12
|
+
})
|
|
13
|
+
});
|
|
14
|
+
};
|
|
15
|
+
}
|
|
@@ -15,7 +15,7 @@ var _lodash = require("lodash");
|
|
|
15
15
|
var _Typography = _interopRequireDefault(require("@mui/material/Typography"));
|
|
16
16
|
var _Toast = _interopRequireDefault(require("@arcblock/ux/lib/Toast"));
|
|
17
17
|
var _util = require("@blocklet/meta/lib/util");
|
|
18
|
-
var _blocklet = require("
|
|
18
|
+
var _blocklet = require("../../contexts/blocklet");
|
|
19
19
|
var _node = require("../../contexts/node");
|
|
20
20
|
var _spaceSelector = _interopRequireDefault(require("./space-selector"));
|
|
21
21
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
@@ -15,7 +15,7 @@ var _context = require("@arcblock/ux/lib/Locale/context");
|
|
|
15
15
|
var _material = require("@mui/material");
|
|
16
16
|
var _Autocomplete = _interopRequireWildcard(require("@mui/material/Autocomplete"));
|
|
17
17
|
var _Toast = _interopRequireDefault(require("@arcblock/ux/lib/Toast"));
|
|
18
|
-
var _session = require("
|
|
18
|
+
var _session = require("../../contexts/session");
|
|
19
19
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
20
20
|
var _templateObject;
|
|
21
21
|
const _excluded = ["onSelect", "endpoint", "gatewayUrl", "loading", "size", "helperText"];
|
|
@@ -15,7 +15,7 @@ var _dayjs = _interopRequireDefault(require("@abtnode/util/lib/dayjs"));
|
|
|
15
15
|
var _HelpOutline = _interopRequireDefault(require("@mui/icons-material/HelpOutline"));
|
|
16
16
|
var _propTypes = require("prop-types");
|
|
17
17
|
var _node = require("../../contexts/node");
|
|
18
|
-
var _blocklet = require("
|
|
18
|
+
var _blocklet = require("../../contexts/blocklet");
|
|
19
19
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
20
20
|
const _excluded = ["progress", "spaceGateways"];
|
|
21
21
|
/**
|
|
@@ -17,7 +17,7 @@ var _SplitButton = _interopRequireDefault(require("@arcblock/ux/lib/SplitButton"
|
|
|
17
17
|
var _Dialog = _interopRequireDefault(require("@arcblock/ux/lib/Dialog"));
|
|
18
18
|
var _Alert = _interopRequireDefault(require("@arcblock/ux/lib/Alert"));
|
|
19
19
|
var _propTypes = require("prop-types");
|
|
20
|
-
var _blocklet = require("
|
|
20
|
+
var _blocklet = require("../../contexts/blocklet");
|
|
21
21
|
var _api = require("../../util/api");
|
|
22
22
|
var _util = require("../../util");
|
|
23
23
|
var _node = require("../../contexts/node");
|
|
@@ -12,7 +12,7 @@ var _Toast = _interopRequireDefault(require("@arcblock/ux/lib/Toast"));
|
|
|
12
12
|
var _connectTo = _interopRequireDefault(require("./connect-to"));
|
|
13
13
|
var _item = _interopRequireDefault(require("./item"));
|
|
14
14
|
var _backups = _interopRequireDefault(require("./backups"));
|
|
15
|
-
var _blocklet = require("
|
|
15
|
+
var _blocklet = require("../../contexts/blocklet");
|
|
16
16
|
var _node = require("../../contexts/node");
|
|
17
17
|
var _spaces = require("../../util/spaces");
|
|
18
18
|
var _useBackupProgress = _interopRequireDefault(require("../../hooks/use-backup-progress"));
|
|
@@ -7,7 +7,7 @@ exports.default = void 0;
|
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
8
|
var _material = require("@mui/material");
|
|
9
9
|
var _context = require("@arcblock/ux/lib/Locale/context");
|
|
10
|
-
var _blocklet = require("
|
|
10
|
+
var _blocklet = require("../../contexts/blocklet");
|
|
11
11
|
var _connectTo = _interopRequireDefault(require("./connect-to"));
|
|
12
12
|
var _diskInfo = _interopRequireDefault(require("../disk-info"));
|
|
13
13
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
-
var _blocklet = require("
|
|
8
|
+
var _blocklet = require("../../contexts/blocklet");
|
|
9
9
|
var _spaces = require("../../util/spaces");
|
|
10
10
|
var _disconnect = _interopRequireDefault(require("./disconnect"));
|
|
11
11
|
var _connected = _interopRequireDefault(require("./connected"));
|
|
@@ -23,7 +23,7 @@ var _action = _interopRequireDefault(require("./action"));
|
|
|
23
23
|
var _mode = require("../../util/mode");
|
|
24
24
|
var _api = require("../../util/api");
|
|
25
25
|
var _node = require("../../contexts/node");
|
|
26
|
-
var _blocklet = require("
|
|
26
|
+
var _blocklet = require("../../contexts/blocklet");
|
|
27
27
|
var _useBlockletInfoForConnectDidSpaces = _interopRequireDefault(require("../../hooks/use-blocklet-info-for-connect-did-spaces"));
|
|
28
28
|
var _spaces = require("../../util/spaces");
|
|
29
29
|
var _previewNft = _interopRequireDefault(require("./preview-nft"));
|
|
@@ -12,7 +12,7 @@ var _Connect = _interopRequireDefault(require("@arcblock/did-connect/lib/Connect
|
|
|
12
12
|
var _Button = _interopRequireDefault(require("@arcblock/did-connect/lib/Button"));
|
|
13
13
|
var _utils = require("@arcblock/did-connect/lib/utils");
|
|
14
14
|
var _util = require("../util");
|
|
15
|
-
var _usePassportId = _interopRequireDefault(require("
|
|
15
|
+
var _usePassportId = _interopRequireDefault(require("../hooks/use-passport-id"));
|
|
16
16
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
17
17
|
var _templateObject;
|
|
18
18
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -31,7 +31,7 @@ var _Toast = _interopRequireDefault(require("@arcblock/ux/lib/Toast"));
|
|
|
31
31
|
var _node = require("../../contexts/node");
|
|
32
32
|
var _team = require("../../contexts/team");
|
|
33
33
|
var _util = require("../../util");
|
|
34
|
-
var _chain = _interopRequireDefault(require("
|
|
34
|
+
var _chain = _interopRequireDefault(require("../../chain"));
|
|
35
35
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
36
36
|
var _templateObject;
|
|
37
37
|
/* eslint-disable react-hooks/exhaustive-deps */
|
package/package.json
CHANGED
|
@@ -1,20 +1,24 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abtnode/ux",
|
|
3
|
-
"version": "1.16.14-beta-
|
|
3
|
+
"version": "1.16.14-beta-cb53c14b",
|
|
4
4
|
"description": "UX components shared across abtnode packages",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
8
8
|
"main": "lib/index.js",
|
|
9
9
|
"files": [
|
|
10
|
-
"lib"
|
|
10
|
+
"lib",
|
|
11
|
+
"es"
|
|
11
12
|
],
|
|
12
13
|
"scripts": {
|
|
13
14
|
"lint": "eslint src --ext js --ext jsx",
|
|
14
15
|
"lint:fix": "npm run lint -- --fix",
|
|
15
16
|
"prepublishOnly": "npm run build",
|
|
16
17
|
"prebuild": "rm -fr lib/",
|
|
17
|
-
"build": "
|
|
18
|
+
"build": "npm run build:lib && npm run build:es && npm run autoexports",
|
|
19
|
+
"build:lib": "babel src --out-dir lib --copy-files",
|
|
20
|
+
"build:es": "babel --config-file ./babel.config.es.js src --out-dir es --copy-files",
|
|
21
|
+
"autoexports": "node tools/auto-exports.js",
|
|
18
22
|
"watch": "babel src --out-dir lib -w --copy-files",
|
|
19
23
|
"coverage": "npm run test -- --coverage",
|
|
20
24
|
"test": "node tools/jest.js"
|
|
@@ -23,23 +27,23 @@
|
|
|
23
27
|
"author": "linchen <linchen1987@foxmail.com> (http://github.com/linchen1987)",
|
|
24
28
|
"license": "Apache-2.0",
|
|
25
29
|
"dependencies": {
|
|
26
|
-
"@abtnode/auth": "1.16.14-beta-
|
|
27
|
-
"@abtnode/constant": "1.16.14-beta-
|
|
28
|
-
"@abtnode/util": "1.16.14-beta-
|
|
30
|
+
"@abtnode/auth": "1.16.14-beta-cb53c14b",
|
|
31
|
+
"@abtnode/constant": "1.16.14-beta-cb53c14b",
|
|
32
|
+
"@abtnode/util": "1.16.14-beta-cb53c14b",
|
|
29
33
|
"@ahooksjs/use-url-state": "^3.5.1",
|
|
30
34
|
"@arcblock/did": "^1.18.88",
|
|
31
|
-
"@arcblock/did-connect": "^2.
|
|
35
|
+
"@arcblock/did-connect": "^2.7.0",
|
|
32
36
|
"@arcblock/did-motif": "^1.1.13",
|
|
33
|
-
"@arcblock/icons": "^2.
|
|
34
|
-
"@arcblock/nft-display": "2.
|
|
35
|
-
"@arcblock/react-hooks": "^2.
|
|
36
|
-
"@arcblock/terminal": "^2.
|
|
37
|
-
"@arcblock/ux": "^2.
|
|
38
|
-
"@blocklet/constant": "1.16.14-beta-
|
|
39
|
-
"@blocklet/launcher-layout": "2.1.
|
|
37
|
+
"@arcblock/icons": "^2.7.0",
|
|
38
|
+
"@arcblock/nft-display": "2.7.0",
|
|
39
|
+
"@arcblock/react-hooks": "^2.7.0",
|
|
40
|
+
"@arcblock/terminal": "^2.7.0",
|
|
41
|
+
"@arcblock/ux": "^2.7.0",
|
|
42
|
+
"@blocklet/constant": "1.16.14-beta-cb53c14b",
|
|
43
|
+
"@blocklet/launcher-layout": "2.1.85",
|
|
40
44
|
"@blocklet/list": "^0.12.25",
|
|
41
|
-
"@blocklet/meta": "1.16.14-beta-
|
|
42
|
-
"@blocklet/ui-react": "^2.
|
|
45
|
+
"@blocklet/meta": "1.16.14-beta-cb53c14b",
|
|
46
|
+
"@blocklet/ui-react": "^2.7.0",
|
|
43
47
|
"@emotion/react": "^11.10.4",
|
|
44
48
|
"@emotion/styled": "^11.10.4",
|
|
45
49
|
"@iconify/react": "^4.0.0",
|
|
@@ -91,7 +95,66 @@
|
|
|
91
95
|
"@babel/plugin-proposal-class-properties": "^7.18.6",
|
|
92
96
|
"@babel/preset-env": "^7.19.4",
|
|
93
97
|
"@babel/preset-react": "^7.18.6",
|
|
94
|
-
"babel-plugin-inline-react-svg": "^1.1.2"
|
|
98
|
+
"babel-plugin-inline-react-svg": "^1.1.2",
|
|
99
|
+
"glob": "^10.3.3"
|
|
95
100
|
},
|
|
96
|
-
"gitHead": "
|
|
101
|
+
"gitHead": "3dcea777b632f9236c10ca888db63c7282992c56",
|
|
102
|
+
"exports": {
|
|
103
|
+
".": {
|
|
104
|
+
"import": "./es/index.js",
|
|
105
|
+
"require": "./lib/index.js"
|
|
106
|
+
},
|
|
107
|
+
"./lib/": {
|
|
108
|
+
"import": "./es/",
|
|
109
|
+
"require": "./lib/"
|
|
110
|
+
},
|
|
111
|
+
"./lib/blocklet/access": {
|
|
112
|
+
"import": "./es/blocklet/access/index.js",
|
|
113
|
+
"require": "./lib/blocklet/access/index.js"
|
|
114
|
+
},
|
|
115
|
+
"./lib/blocklet/component": {
|
|
116
|
+
"import": "./es/blocklet/component/index.js",
|
|
117
|
+
"require": "./lib/blocklet/component/index.js"
|
|
118
|
+
},
|
|
119
|
+
"./lib/blocklet/notification": {
|
|
120
|
+
"import": "./es/blocklet/notification/index.js",
|
|
121
|
+
"require": "./lib/blocklet/notification/index.js"
|
|
122
|
+
},
|
|
123
|
+
"./lib/blocklet/oauth": {
|
|
124
|
+
"import": "./es/blocklet/oauth/index.js",
|
|
125
|
+
"require": "./lib/blocklet/oauth/index.js"
|
|
126
|
+
},
|
|
127
|
+
"./lib/blocklet/preferences": {
|
|
128
|
+
"import": "./es/blocklet/preferences/index.js",
|
|
129
|
+
"require": "./lib/blocklet/preferences/index.js"
|
|
130
|
+
},
|
|
131
|
+
"./lib/blocklet/purchase": {
|
|
132
|
+
"import": "./es/blocklet/purchase/index.js",
|
|
133
|
+
"require": "./lib/blocklet/purchase/index.js"
|
|
134
|
+
},
|
|
135
|
+
"./lib/blocklet/storage": {
|
|
136
|
+
"import": "./es/blocklet/storage/index.js",
|
|
137
|
+
"require": "./lib/blocklet/storage/index.js"
|
|
138
|
+
},
|
|
139
|
+
"./lib/locales": {
|
|
140
|
+
"import": "./es/locales/index.js",
|
|
141
|
+
"require": "./lib/locales/index.js"
|
|
142
|
+
},
|
|
143
|
+
"./lib/schema-form": {
|
|
144
|
+
"import": "./es/schema-form/index.js",
|
|
145
|
+
"require": "./lib/schema-form/index.js"
|
|
146
|
+
},
|
|
147
|
+
"./lib/team/members": {
|
|
148
|
+
"import": "./es/team/members/index.js",
|
|
149
|
+
"require": "./lib/team/members/index.js"
|
|
150
|
+
},
|
|
151
|
+
"./lib/team/passports": {
|
|
152
|
+
"import": "./es/team/passports/index.js",
|
|
153
|
+
"require": "./lib/team/passports/index.js"
|
|
154
|
+
},
|
|
155
|
+
"./lib/util": {
|
|
156
|
+
"import": "./es/util/index.js",
|
|
157
|
+
"require": "./lib/util/index.js"
|
|
158
|
+
}
|
|
159
|
+
}
|
|
97
160
|
}
|