@abtnode/ux 1.16.18-beta-aa01bd8e → 1.16.18-beta-bb4ebacc
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/actions.js +17 -6
- package/es/blocklet/add-cert.js +1 -0
- package/es/blocklet/configuration.js +28 -118
- package/es/blocklet/logo-uploader.js +131 -0
- package/es/blocklet/oauth/federated-site-list.js +1 -1
- package/es/blocklet/publish/create-release.js +2 -2
- package/es/hooks/use-passport-id.js +9 -6
- package/es/locales/en.js +25 -5
- package/es/locales/zh.js +21 -1
- package/es/logs/log-terminal.js +2 -1
- package/es/schema-form/index.js +11 -3
- package/es/team/members/connections.js +27 -0
- package/es/team/members/member.js +2 -26
- package/es/team/members/passport-item.js +104 -0
- package/es/team/members/passports.js +23 -78
- package/lib/blocklet/actions.js +17 -6
- package/lib/blocklet/add-cert.js +1 -0
- package/lib/blocklet/configuration.js +30 -90
- package/lib/blocklet/logo-uploader.js +112 -0
- package/lib/blocklet/oauth/federated-site-list.js +1 -1
- package/lib/blocklet/publish/create-release.js +2 -2
- package/lib/hooks/use-passport-id.js +9 -7
- package/lib/locales/en.js +25 -5
- package/lib/locales/zh.js +21 -1
- package/lib/logs/log-terminal.js +2 -1
- package/lib/schema-form/index.js +9 -3
- package/lib/team/members/connections.js +35 -0
- package/lib/team/members/member.js +8 -33
- package/lib/team/members/passport-item.js +95 -0
- package/lib/team/members/passports.js +26 -54
- package/package.json +18 -18
|
@@ -4,11 +4,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = Passports;
|
|
7
|
-
var _react = require("react");
|
|
7
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
8
8
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
9
|
var _styled = _interopRequireDefault(require("@emotion/styled"));
|
|
10
10
|
var _get = _interopRequireDefault(require("lodash/get"));
|
|
11
|
-
var _upperFirst = _interopRequireDefault(require("lodash/upperFirst"));
|
|
12
11
|
var _Toast = _interopRequireDefault(require("@arcblock/ux/lib/Toast"));
|
|
13
12
|
var _Add = _interopRequireDefault(require("@mui/icons-material/Add"));
|
|
14
13
|
var _Box = _interopRequireDefault(require("@mui/material/Box"));
|
|
@@ -31,9 +30,12 @@ var _permission = _interopRequireDefault(require("../../permission"));
|
|
|
31
30
|
var _searchInput = _interopRequireDefault(require("../search-input"));
|
|
32
31
|
var _listHeader = _interopRequireDefault(require("../styles/list-header"));
|
|
33
32
|
var _issuePassport = _interopRequireDefault(require("./issue-passport"));
|
|
33
|
+
var _passportItem = _interopRequireDefault(require("./passport-item"));
|
|
34
34
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
35
35
|
var _templateObject;
|
|
36
36
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
37
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
38
|
+
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
39
|
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
38
40
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
39
41
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
@@ -224,60 +226,30 @@ function Passports(_ref2) {
|
|
|
224
226
|
justifyContent: "space-between",
|
|
225
227
|
alignItems: "center",
|
|
226
228
|
mt: 3,
|
|
227
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
229
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_passportItem.default, {
|
|
230
|
+
passport: x,
|
|
231
|
+
user: user,
|
|
232
|
+
color: passportColor,
|
|
233
|
+
createPassportSvg: createPassportSvg,
|
|
234
|
+
icon: !!appIdList.length && !appIdList.includes(x.issuer.id) ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_ExternalIssuerIcon.default, {}) : null,
|
|
235
|
+
children: !!appIdList.length && !appIdList.includes(x.issuer.id) && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
236
|
+
className: "tip",
|
|
237
|
+
children: [x.issuer.id !== teamIssuerDid && !trustedPassports.some(y => y.issuerDid === x.issuer.id) && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Tooltip.default, {
|
|
238
|
+
title: t('team.passport.notTrustedIssuerTip'),
|
|
239
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Box.default, {
|
|
240
|
+
component: _ErrorOutline.default,
|
|
241
|
+
style: {
|
|
242
|
+
fontSize: '1.3em'
|
|
243
|
+
},
|
|
244
|
+
color: "error.main",
|
|
245
|
+
mr: 0.5
|
|
243
246
|
})
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_Box.default, {
|
|
248
|
-
className: "title",
|
|
249
|
-
display: "flex",
|
|
250
|
-
alignItems: "center",
|
|
251
|
-
children: [(0, _upperFirst.default)(x.title), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
252
|
-
className: "status-icons",
|
|
253
|
-
children: [!!appIdList.length && !appIdList.includes(x.issuer.id) && /*#__PURE__*/(0, _jsxRuntime.jsx)(_ExternalIssuerIcon.default, {}), x.revoked && /*#__PURE__*/(0, _jsxRuntime.jsx)(_RevokeIcon.default, {})]
|
|
254
|
-
})]
|
|
255
|
-
}), x.expirationDate && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Box.default, {
|
|
256
|
-
className: "title",
|
|
257
|
-
display: "flex",
|
|
258
|
-
alignItems: "center",
|
|
259
|
-
children: t('team.passport.validUntil', {
|
|
260
|
-
date: x.expirationDate
|
|
247
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
248
|
+
children: t('team.passport.issueBy', {
|
|
249
|
+
name: x.issuer.name
|
|
261
250
|
})
|
|
262
|
-
}), !!appIdList.length && !appIdList.includes(x.issuer.id) && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
263
|
-
className: "tip",
|
|
264
|
-
children: [x.issuer.id !== teamIssuerDid && !trustedPassports.some(y => y.issuerDid === x.issuer.id) && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Tooltip.default, {
|
|
265
|
-
title: t('team.passport.notTrustedIssuerTip'),
|
|
266
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Box.default, {
|
|
267
|
-
component: _ErrorOutline.default,
|
|
268
|
-
style: {
|
|
269
|
-
fontSize: '1.3em'
|
|
270
|
-
},
|
|
271
|
-
color: "error.main",
|
|
272
|
-
mr: 0.5
|
|
273
|
-
})
|
|
274
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
275
|
-
children: t('team.passport.issueBy', {
|
|
276
|
-
name: x.issuer.name
|
|
277
|
-
})
|
|
278
|
-
})]
|
|
279
251
|
})]
|
|
280
|
-
})
|
|
252
|
+
})
|
|
281
253
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Box.default, {
|
|
282
254
|
children: revokeInfo(can, x).revokable ? /*#__PURE__*/(0, _jsxRuntime.jsxs)(_Button.default, {
|
|
283
255
|
variant: "outlined",
|
|
@@ -338,4 +310,4 @@ Passports.propTypes = {
|
|
|
338
310
|
Passports.defaultProps = {
|
|
339
311
|
onCreate: () => {}
|
|
340
312
|
};
|
|
341
|
-
const Div = _styled.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .passport-item {\n .
|
|
313
|
+
const Div = _styled.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .passport-item {\n .MuiButton-outlinedSecondary {\n color: #f16e6e;\n fill: #f16e6e;\n background: #fcf3f3;\n border: 0;\n &:hover {\n border: 0;\n }\n }\n }\n"])));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abtnode/ux",
|
|
3
|
-
"version": "1.16.18-beta-
|
|
3
|
+
"version": "1.16.18-beta-bb4ebacc",
|
|
4
4
|
"description": "UX components shared across abtnode packages",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -27,24 +27,24 @@
|
|
|
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.18-beta-
|
|
31
|
-
"@abtnode/constant": "1.16.18-beta-
|
|
32
|
-
"@abtnode/util": "1.16.18-beta-
|
|
30
|
+
"@abtnode/auth": "1.16.18-beta-bb4ebacc",
|
|
31
|
+
"@abtnode/constant": "1.16.18-beta-bb4ebacc",
|
|
32
|
+
"@abtnode/util": "1.16.18-beta-bb4ebacc",
|
|
33
33
|
"@ahooksjs/use-url-state": "^3.5.1",
|
|
34
34
|
"@arcblock/did": "^1.18.95",
|
|
35
|
-
"@arcblock/did-connect": "^2.8.
|
|
35
|
+
"@arcblock/did-connect": "^2.8.11",
|
|
36
36
|
"@arcblock/did-motif": "^1.1.13",
|
|
37
|
-
"@arcblock/icons": "^2.8.
|
|
38
|
-
"@arcblock/nft-display": "2.8.
|
|
39
|
-
"@arcblock/react-hooks": "^2.8.
|
|
40
|
-
"@arcblock/terminal": "^2.8.
|
|
41
|
-
"@arcblock/ux": "^2.8.
|
|
42
|
-
"@blocklet/constant": "1.16.18-beta-
|
|
43
|
-
"@blocklet/launcher-layout": "2.2.
|
|
44
|
-
"@blocklet/list": "^0.12.
|
|
45
|
-
"@blocklet/meta": "1.16.18-beta-
|
|
46
|
-
"@blocklet/ui-react": "^2.8.
|
|
47
|
-
"@blocklet/uploader": "^0.0.
|
|
37
|
+
"@arcblock/icons": "^2.8.11",
|
|
38
|
+
"@arcblock/nft-display": "2.8.11",
|
|
39
|
+
"@arcblock/react-hooks": "^2.8.11",
|
|
40
|
+
"@arcblock/terminal": "^2.8.11",
|
|
41
|
+
"@arcblock/ux": "^2.8.11",
|
|
42
|
+
"@blocklet/constant": "1.16.18-beta-bb4ebacc",
|
|
43
|
+
"@blocklet/launcher-layout": "2.2.28",
|
|
44
|
+
"@blocklet/list": "^0.12.51",
|
|
45
|
+
"@blocklet/meta": "1.16.18-beta-bb4ebacc",
|
|
46
|
+
"@blocklet/ui-react": "^2.8.11",
|
|
47
|
+
"@blocklet/uploader": "^0.0.35",
|
|
48
48
|
"@emotion/react": "^11.10.4",
|
|
49
49
|
"@emotion/styled": "^11.10.4",
|
|
50
50
|
"@iconify/react": "^4.0.0",
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
"react-dnd": "11.1.3",
|
|
80
80
|
"react-dnd-html5-backend": "11.1.3",
|
|
81
81
|
"react-error-boundary": "^3.1.4",
|
|
82
|
-
"react-hook-form": "^7.
|
|
82
|
+
"react-hook-form": "^7.48.2",
|
|
83
83
|
"react-iframe": "^1.8.5",
|
|
84
84
|
"react-placeholder": "^4.1.0",
|
|
85
85
|
"react-router-dom": "^6.4.2",
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
"babel-plugin-inline-react-svg": "^1.1.2",
|
|
101
101
|
"glob": "^10.3.3"
|
|
102
102
|
},
|
|
103
|
-
"gitHead": "
|
|
103
|
+
"gitHead": "aca7ff8eb508ecf586108b99a9e07ceab2a62430",
|
|
104
104
|
"exports": {
|
|
105
105
|
".": {
|
|
106
106
|
"import": "./es/index.js",
|