@abtnode/ux 1.16.6-beta-08670107 → 1.16.6-beta-593a7a98

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.
@@ -11,6 +11,7 @@ var _Avatar = _interopRequireDefault(require("@arcblock/did-connect/lib/Avatar")
11
11
  var _CircularProgress = _interopRequireDefault(require("@mui/material/CircularProgress"));
12
12
  var _Empty = _interopRequireDefault(require("@arcblock/ux/lib/Empty"));
13
13
  var _context = require("@arcblock/ux/lib/Locale/context");
14
+ var _constant = require("@abtnode/constant");
14
15
  var _Box = _interopRequireDefault(require("@mui/material/Box"));
15
16
  var _Typography = _interopRequireDefault(require("@mui/material/Typography"));
16
17
  var _Pagination = _interopRequireDefault(require("@mui/lab/Pagination"));
@@ -34,7 +35,7 @@ const getUserLink = _ref => {
34
35
  } = _ref;
35
36
  if (inService) {
36
37
  // TODO
37
- return "/members?did=".concat(log.actor.did);
38
+ return "".concat(_constant.WELLKNOWN_BLOCKLET_ADMIN_PATH, "/members?did=").concat(log.actor.did);
38
39
  }
39
40
  if (log.scope === info.did) {
40
41
  return "/team/members?did=".concat(log.actor.did);
@@ -183,10 +184,12 @@ function AuditLogs() {
183
184
  }
184
185
  function WrappedAuditLogs(_ref3) {
185
186
  let {
186
- scope
187
+ scope,
188
+ categories
187
189
  } = _ref3;
188
190
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_auditLog.AuditLogProvider, {
189
191
  scope: scope,
192
+ categories: categories,
190
193
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(AuditLogs, {})
191
194
  });
192
195
  }
@@ -30,6 +30,10 @@ function Expiration(_ref) {
30
30
  if (state.loading) {
31
31
  return '';
32
32
  }
33
+ if (state.error) {
34
+ console.error('load nft expiration failed, nfId:', controller === null || controller === void 0 ? void 0 : controller.nftId, 'chainHost:', controller === null || controller === void 0 ? void 0 : controller.chainHost, state.error);
35
+ return '-';
36
+ }
33
37
  const expirationDate = (0, _last.default)((0, _get.default)(state.value, 'data.value.expirationDate', []));
34
38
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_Typography.default, {
35
39
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_RelativeTime.default, {
@@ -32,7 +32,6 @@ var _permission = require("../permission");
32
32
  var _addDomainAlias = _interopRequireDefault(require("./router/action/add-domain-alias"));
33
33
  var _domainStatus = _interopRequireDefault(require("./router/domain-status"));
34
34
  var _domainActions = _interopRequireDefault(require("./router/domain-actions"));
35
- var _walletType = _interopRequireDefault(require("./preferences/wallet-type"));
36
35
  var _appSk = _interopRequireDefault(require("./preferences/app-sk"));
37
36
  var _addCert = _interopRequireDefault(require("./add-cert"));
38
37
  var _transferOwner = _interopRequireDefault(require("./transfer-owner"));
@@ -93,7 +92,6 @@ function BlockletEnvironment(_ref) {
93
92
  }
94
93
 
95
94
  // configurable blocklet environment
96
- const customType = blocklet.environments.find(x => x.key === 'BLOCKLET_WALLET_TYPE');
97
95
  const customDelete = blocklet.environments.find(x => x.key === 'BLOCKLET_DELETABLE');
98
96
  const deletable = !customDelete || customDelete.value === 'yes';
99
97
  const customUrl = blocklet.environments.find(x => x.key === 'BLOCKLET_APP_URL');
@@ -223,30 +221,6 @@ function BlockletEnvironment(_ref) {
223
221
  setLoading(false);
224
222
  }
225
223
  };
226
- const onWalletTypeChange = async value => {
227
- if (loading) {
228
- return;
229
- }
230
- setLoading(true);
231
- try {
232
- const {
233
- blocklet: data
234
- } = await node.api.configBlocklet({
235
- input: {
236
- did: blocklet.meta.did,
237
- configs: [{
238
- key: _constant2.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_WALLET_TYPE,
239
- value
240
- }]
241
- }
242
- });
243
- onUpdate(data);
244
- } catch (err) {
245
- _toast.default.error(err.message);
246
- } finally {
247
- setLoading(false);
248
- }
249
- };
250
224
  const onUpdateCors = async value => {
251
225
  const oldValue = site.corsAllowedOrigins || [];
252
226
  const newValue = value.split(',').map(x => x.trim()).filter(Boolean);
@@ -506,23 +480,7 @@ function BlockletEnvironment(_ref) {
506
480
  border: '1px solid red',
507
481
  borderRadius: 2
508
482
  },
509
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Box.default, {
510
- className: "config-form",
511
- children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_Box.default, {
512
- className: "config-item",
513
- children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_Box.default, {
514
- className: "config-label",
515
- children: [t('blocklet.config.walletType.name'), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Box.default, {
516
- className: "config-desc",
517
- children: t('blocklet.config.walletType.description')
518
- })]
519
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_walletType.default, {
520
- value: (customType === null || customType === void 0 ? void 0 : customType.value) || 'default',
521
- disabled: disabled,
522
- onChange: onWalletTypeChange
523
- })]
524
- })
525
- }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_Box.default, {
483
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_Box.default, {
526
484
  className: "config-form",
527
485
  mt: 2,
528
486
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Box.default, {
@@ -36,6 +36,10 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
36
36
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
37
37
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
38
38
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
39
+ const WalletType = {
40
+ arcblock: 'ArcBlock',
41
+ ethereum: 'Ethereum'
42
+ };
39
43
  function DomainLink(_ref) {
40
44
  let {
41
45
  domain,
@@ -88,7 +92,7 @@ DomainLink.propTypes = {
88
92
  };
89
93
  const LinkDiv = _styled.default.span(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n &,\n & > * {\n color: #222;\n font-size: 18px;\n }\n\n .status {\n margin-left: 8px;\n }\n"])));
90
94
  function BlockletOverview() {
91
- var _blocklet$settings, _blocklet$site;
95
+ var _blocklet$environment, _blocklet$settings, _blocklet$site;
92
96
  const {
93
97
  t,
94
98
  locale
@@ -108,6 +112,7 @@ function BlockletOverview() {
108
112
  appPid,
109
113
  migratedFrom = []
110
114
  } = blocklet;
115
+ const chainType = (_blocklet$environment = blocklet.environments.find(x => x.key === 'BLOCKLET_APP_CHAIN_TYPE')) === null || _blocklet$environment === void 0 ? void 0 : _blocklet$environment.value;
111
116
  const infoRows = [appDid ? {
112
117
  name: t('blocklet.appId'),
113
118
  value: /*#__PURE__*/(0, _jsxRuntime.jsx)(_didAddress.default, {
@@ -164,6 +169,9 @@ function BlockletOverview() {
164
169
  value: (_blocklet$settings = blocklet.settings) !== null && _blocklet$settings !== void 0 && _blocklet$settings.owner ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_didAddress.default, {
165
170
  did: blocklet.settings.owner.did
166
171
  }) : '--'
172
+ }, {
173
+ name: t('blocklet.config.walletType.name'),
174
+ value: WalletType[chainType || 'arcblock'] || chainType
167
175
  }, blocklet.externalSkSource ? {
168
176
  name: t('blocklet.skSource'),
169
177
  value: blocklet.externalSkSource
@@ -44,6 +44,9 @@ function AddDomainAlias(_ref) {
44
44
  setConfirmSetting(null);
45
45
  };
46
46
  const onConfirm = async params => {
47
+ if (loading) {
48
+ return;
49
+ }
47
50
  setLoading(true);
48
51
  try {
49
52
  await api.addDomainAlias({
@@ -231,18 +231,18 @@ const fixBlocklet = async function fixBlocklet(blocklet) {
231
231
  blocklet.capabilities = getAppCapabilities(blocklet);
232
232
  };
233
233
  exports.fixBlocklet = fixBlocklet;
234
- const DEFAULT_WALLET_TYPE = 'default';
234
+ const DEFAULT_WALLET_TYPE = 'arcblock';
235
235
  const getWalletType = function getWalletType(raw) {
236
236
  let fromState = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
237
237
  let item;
238
238
 
239
239
  // from state: migrating
240
240
  if (fromState) {
241
- item = (raw.configs || []).find(x => x.key === 'BLOCKLET_WALLET_TYPE');
241
+ item = (raw.configs || []).find(x => x.key === 'BLOCKLET_APP_CHAIN_TYPE');
242
242
  if (item && item.value) {
243
243
  return item.value;
244
244
  }
245
- item = (raw.environments || []).find(x => x.key === 'BLOCKLET_WALLET_TYPE');
245
+ item = (raw.environments || []).find(x => x.key === 'BLOCKLET_APP_CHAIN_TYPE');
246
246
  if (item && item.value) {
247
247
  return item.value;
248
248
  }
@@ -250,7 +250,7 @@ const getWalletType = function getWalletType(raw) {
250
250
  }
251
251
 
252
252
  // from meta: installing
253
- item = (raw.environments || []).find(x => x.name === 'BLOCKLET_WALLET_TYPE');
253
+ item = (raw.environments || []).find(x => x.name === 'BLOCKLET_APP_CHAIN_TYPE');
254
254
  if (item && item.default) {
255
255
  return item.default;
256
256
  }
@@ -24,7 +24,8 @@ exports.AuditLogConsumer = Consumer;
24
24
  function AuditLogProvider(_ref) {
25
25
  let {
26
26
  children,
27
- scope = ''
27
+ scope = '',
28
+ categories = []
28
29
  } = _ref;
29
30
  const {
30
31
  api: client
@@ -38,6 +39,45 @@ function AuditLogProvider(_ref) {
38
39
  });
39
40
  const [loading, setLoading] = (0, _react.useState)(false);
40
41
  const [category, setCategory] = (0, _useLocalStorage.default)("audit-log-category-".concat(scope), 'all');
42
+ const categoryList = [{
43
+ value: 'all',
44
+ label: 'All',
45
+ description: ''
46
+ }, {
47
+ value: 'blocklet',
48
+ label: 'Blocklet Management',
49
+ description: ''
50
+ }, {
51
+ value: 'server',
52
+ label: 'Server Management',
53
+ description: ''
54
+ }, {
55
+ value: 'team',
56
+ label: 'Team Management',
57
+ description: ''
58
+ }, {
59
+ value: 'security',
60
+ label: 'Security',
61
+ description: ''
62
+ }, {
63
+ value: 'certificates',
64
+ label: 'Certificate Management',
65
+ description: ''
66
+ }, {
67
+ value: 'integrations',
68
+ label: 'Integration Management',
69
+ description: ''
70
+ }, {
71
+ value: 'gateway',
72
+ label: 'Gateway',
73
+ description: ''
74
+ }];
75
+ const filterCategories = categoryList.filter(item => {
76
+ if (categories.length) {
77
+ return item.value === 'all' || categories.includes(item.value);
78
+ }
79
+ return true;
80
+ });
41
81
  const fetchLogs = async function fetchLogs() {
42
82
  let {
43
83
  page = 1,
@@ -52,6 +92,7 @@ function AuditLogProvider(_ref) {
52
92
  try {
53
93
  // eslint-disable-next-line no-shadow
54
94
  const res = await client.getAuditLogs({
95
+ // 由于 blocklet 中的 audit-log 本身就不包含 server 类型的,所以这里的 category 查询不需要对 server 类型的做额外的处理
55
96
  input: {
56
97
  paging: {
57
98
  page
@@ -89,39 +130,7 @@ function AuditLogProvider(_ref) {
89
130
  category,
90
131
  scope
91
132
  },
92
- categories: [{
93
- value: 'all',
94
- label: 'All',
95
- description: ''
96
- }, {
97
- value: 'blocklet',
98
- label: 'Blocklet Management',
99
- description: ''
100
- }, {
101
- value: 'server',
102
- label: 'Server Management',
103
- description: ''
104
- }, {
105
- value: 'team',
106
- label: 'Team Management',
107
- description: ''
108
- }, {
109
- value: 'security',
110
- label: 'Security',
111
- description: ''
112
- }, {
113
- value: 'certificates',
114
- label: 'Certificate Management',
115
- description: ''
116
- }, {
117
- value: 'integrations',
118
- label: 'Integration Management',
119
- description: ''
120
- }, {
121
- value: 'gateway',
122
- label: 'Gateway',
123
- description: ''
124
- }],
133
+ categories: filterCategories,
125
134
  setCategory,
126
135
  data: auditLogs,
127
136
  paging
package/lib/locales/en.js CHANGED
@@ -313,8 +313,8 @@ module.exports = {
313
313
  services: 'Exposed Services',
314
314
  upstreamPort: 'Upstream Port',
315
315
  noService: 'No Services',
316
- appId: 'App ID',
317
- appPid: 'Permanent ID',
316
+ appId: 'App DID',
317
+ appPid: 'Permanent DID',
318
318
  alsoKnownAs: 'Also Known As',
319
319
  skSource: 'Owner Wallet',
320
320
  reloadSuccess: 'Blocklet was reloaded successfully',
package/lib/locales/zh.js CHANGED
@@ -318,9 +318,9 @@ module.exports = {
318
318
  services: '暴露的服务',
319
319
  upstreamPort: '上游端口',
320
320
  noService: '暂无服务',
321
- appId: '应用 ID',
322
- appPid: '永久性 ID',
323
- alsoKnownAs: '曾用 ID',
321
+ appId: '应用 DID',
322
+ appPid: '永久性 DID',
323
+ alsoKnownAs: '曾用 DID',
324
324
  skSource: '安装钱包',
325
325
  reloadSuccess: 'Blocklet 重启成功',
326
326
  statusTip: 'Blocklet {status}',
@@ -25,6 +25,8 @@ var _ExternalIssuerIcon = _interopRequireDefault(require("@arcblock/icons/lib/Ex
25
25
  var _Datatable = _interopRequireWildcard(require("@arcblock/ux/lib/Datatable"));
26
26
  var _RelativeTime = _interopRequireDefault(require("@arcblock/ux/lib/RelativeTime"));
27
27
  var _constant = require("@abtnode/constant");
28
+ var _useUrlState = _interopRequireDefault(require("@ahooksjs/use-url-state"));
29
+ var _ahooks = require("ahooks");
28
30
  var _toast = _interopRequireDefault(require("../../toast"));
29
31
  var _node = require("../../contexts/node");
30
32
  var _team = require("../../contexts/team");
@@ -146,6 +148,9 @@ function MemberList(_ref2) {
146
148
  const [users, setUsers] = (0, _react.useState)([]);
147
149
  const [rowCount, setRowCount] = (0, _react.useState)();
148
150
  const [userCounts, setUserCounts] = (0, _react.useState)([]);
151
+ const [urlState] = (0, _useUrlState.default)({
152
+ did: undefined
153
+ });
149
154
  const durableKey = "members-".concat(teamDid);
150
155
  const tableDurableData = (0, _Datatable.getDurableData)(durableKey);
151
156
  const [search, setSearch] = (0, _react.useState)({
@@ -155,6 +160,18 @@ function MemberList(_ref2) {
155
160
  pageSize: tableDurableData.rowsPerPage || 10,
156
161
  page: tableDurableData.page ? tableDurableData.page + 1 : 1
157
162
  });
163
+ (0, _ahooks.useMount)(async () => {
164
+ if (urlState.did) {
165
+ const {
166
+ user
167
+ } = await api.getUser({
168
+ did: urlState.did
169
+ });
170
+ if (user) {
171
+ setMemberDialog(user);
172
+ }
173
+ }
174
+ });
158
175
  const sideList = (roles || []).map(x => ({
159
176
  name: x.name,
160
177
  title: x.title,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abtnode/ux",
3
- "version": "1.16.6-beta-08670107",
3
+ "version": "1.16.6-beta-593a7a98",
4
4
  "description": "UX components shared across abtnode packages",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -22,21 +22,22 @@
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-08670107",
26
- "@abtnode/constant": "1.16.6-beta-08670107",
27
- "@abtnode/util": "1.16.6-beta-08670107",
28
- "@arcblock/did": "^1.18.76",
29
- "@arcblock/did-connect": "^2.5.34",
25
+ "@abtnode/auth": "1.16.6-beta-593a7a98",
26
+ "@abtnode/constant": "1.16.6-beta-593a7a98",
27
+ "@abtnode/util": "1.16.6-beta-593a7a98",
28
+ "@ahooksjs/use-url-state": "^3.5.1",
29
+ "@arcblock/did": "^1.18.77",
30
+ "@arcblock/did-connect": "^2.5.36",
30
31
  "@arcblock/did-motif": "^1.1.10",
31
- "@arcblock/icons": "^2.5.34",
32
- "@arcblock/react-hooks": "^2.5.34",
33
- "@arcblock/terminal": "^2.5.34",
34
- "@arcblock/ux": "^2.5.34",
35
- "@blocklet/constant": "1.16.6-beta-08670107",
36
- "@blocklet/launcher-layout": "2.0.34",
32
+ "@arcblock/icons": "^2.5.36",
33
+ "@arcblock/react-hooks": "^2.5.36",
34
+ "@arcblock/terminal": "^2.5.36",
35
+ "@arcblock/ux": "^2.5.36",
36
+ "@blocklet/constant": "1.16.6-beta-593a7a98",
37
+ "@blocklet/launcher-layout": "2.0.36",
37
38
  "@blocklet/list": "^0.11.22",
38
- "@blocklet/meta": "1.16.6-beta-08670107",
39
- "@blocklet/ui-react": "^2.5.34",
39
+ "@blocklet/meta": "1.16.6-beta-593a7a98",
40
+ "@blocklet/ui-react": "^2.5.36",
40
41
  "@emotion/react": "^11.10.4",
41
42
  "@emotion/styled": "^11.10.4",
42
43
  "@iconify/react": "^4.0.0",
@@ -45,7 +46,7 @@
45
46
  "@mui/lab": "^5.0.0-alpha.102",
46
47
  "@mui/material": "^5.10.8",
47
48
  "@mui/styles": "^5.10.8",
48
- "@ocap/client": "1.18.76",
49
+ "@ocap/client": "1.18.77",
49
50
  "@uiw/react-markdown-preview": "4.0.6",
50
51
  "ahooks": "^3.7.1",
51
52
  "axios": "^0.27.2",
@@ -91,5 +92,5 @@
91
92
  "@babel/preset-react": "^7.18.6",
92
93
  "babel-plugin-inline-react-svg": "^1.1.2"
93
94
  },
94
- "gitHead": "11bbd8ea245fdb5920338f104cbe059e90a0e1b5"
95
+ "gitHead": "5ea65d1ddc91e997f029741f01ce453464d86666"
95
96
  }
@@ -1,107 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = WalletType;
7
- var _react = require("react");
8
- var _styled = _interopRequireDefault(require("@emotion/styled"));
9
- var _propTypes = _interopRequireDefault(require("prop-types"));
10
- var _TextField = _interopRequireDefault(require("@mui/material/TextField"));
11
- var _Box = _interopRequireDefault(require("@mui/material/Box"));
12
- var _MenuItem = _interopRequireDefault(require("@mui/material/MenuItem"));
13
- var _context = require("@arcblock/ux/lib/Locale/context");
14
- var _confirm = _interopRequireDefault(require("../../confirm"));
15
- var _jsxRuntime = require("react/jsx-runtime");
16
- var _templateObject, _templateObject2;
17
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
18
- function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
19
- function WalletType(_ref) {
20
- let {
21
- value,
22
- onChange,
23
- disabled
24
- } = _ref;
25
- const {
26
- t
27
- } = (0, _context.useLocaleContext)();
28
- const [confirmCustomType, setConfirmCustomType] = (0, _react.useState)(null);
29
- const WalletTypes = [{
30
- label: 'DID',
31
- value: 'default'
32
- }, {
33
- label: 'ETH',
34
- value: 'eth'
35
- }];
36
- const onWalletTypeChange = async e => {
37
- setConfirmCustomType({
38
- value: e.target.value
39
- });
40
- };
41
- const _onConfirm = async v => {
42
- try {
43
- await onChange(v);
44
- } finally {
45
- setConfirmCustomType(null);
46
- }
47
- };
48
- return [/*#__PURE__*/(0, _jsxRuntime.jsx)(_TextField.default, {
49
- disabled: disabled,
50
- select: true,
51
- size: "small",
52
- value: value || 'default',
53
- onChange: onWalletTypeChange,
54
- children: WalletTypes.map(type => {
55
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(StyledMenuItem, {
56
- value: type.value,
57
- sx: {
58
- display: 'block'
59
- },
60
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Box.default, {
61
- display: "flex",
62
- alignItems: "center",
63
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Box.default, {
64
- children: type.label
65
- })
66
- })
67
- });
68
- })
69
- }), confirmCustomType && /*#__PURE__*/(0, _jsxRuntime.jsx)(_confirm.default, {
70
- title: t('blocklet.config.walletTypeTitle'),
71
- description: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_Box.default, {
72
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Box.default, {
73
- dangerouslySetInnerHTML: {
74
- __html: t('blocklet.config.blockletTypeChangeTip', {
75
- value: WalletTypes.find(x => x.value === confirmCustomType.value).label
76
- })
77
- }
78
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Box.default, {
79
- fontWeight: "bold",
80
- mt: 2,
81
- children: t('blocklet.config.appDidChangeTip')
82
- }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(UL, {
83
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("li", {
84
- children: t('blocklet.config.appDidChangeTipL1')
85
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("li", {
86
- children: t('blocklet.config.appDidChangeTipL2')
87
- })]
88
- })]
89
- }),
90
- confirm: t('confirm'),
91
- cancel: t('cancel'),
92
- onConfirm: () => _onConfirm(confirmCustomType.value),
93
- onCancel: () => setConfirmCustomType(null)
94
- })];
95
- }
96
- WalletType.propTypes = {
97
- value: _propTypes.default.string,
98
- onChange: _propTypes.default.func,
99
- disabled: _propTypes.default.bool
100
- };
101
- WalletType.defaultProps = {
102
- value: 'default',
103
- onChange: () => {},
104
- disabled: false
105
- };
106
- const StyledMenuItem = (0, _styled.default)(_MenuItem.default)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .tip {\n font-size: 12px;\n color: ", ";\n }\n"])), props => props.theme.palette.text.secondary);
107
- const UL = (0, _styled.default)('ul')(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n padding-left: 16px;\n li {\n margin-top: 8px;\n list-style: disk;\n font-weight: bold;\n }\n"])));