@abtnode/ux 1.16.11-beta-069c3537 → 1.16.11-next-a232f5fb
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/access/config-access.js +3 -3
- package/lib/blocklet/actions.js +3 -3
- package/lib/blocklet/add-cert.js +3 -3
- package/lib/blocklet/component/add.js +2 -2
- package/lib/blocklet/component/environment.js +11 -11
- package/lib/blocklet/component/index.js +5 -5
- package/lib/blocklet/component/navigation/navigation-dialog.js +4 -9
- package/lib/blocklet/component/setting.js +2 -2
- package/lib/blocklet/component/space-connector.js +4 -4
- package/lib/blocklet/component/space-selector.js +2 -2
- package/lib/blocklet/component/store-blocklet-list.js +2 -2
- package/lib/blocklet/config-navigation.js +10 -19
- package/lib/blocklet/configuration.js +7 -7
- package/lib/blocklet/migration.js +4 -4
- package/lib/blocklet/notification/email.js +4 -3
- package/lib/blocklet/oauth/auth0.js +4 -3
- package/lib/blocklet/preferences/app-sk.js +3 -3
- package/lib/blocklet/purchase/component-purchase.js +2 -2
- package/lib/blocklet/router/action/add-domain-alias.js +2 -2
- package/lib/blocklet/router/action/add-rule.js +2 -2
- package/lib/blocklet/router/action/delete-domain-alias.js +2 -2
- package/lib/blocklet/router/action/delete-rule.js +2 -2
- package/lib/blocklet/router/action/update-rule.js +2 -2
- package/lib/blocklet/storage/connect.js +2 -2
- package/lib/blocklet/storage/delete.js +2 -2
- package/lib/blocklet/storage/index.js +4 -4
- package/lib/blocklet/storage/switch-did-spaces.js +3 -3
- package/lib/blocklet/version.js +1 -8
- package/lib/contexts/audit-log.js +2 -2
- package/lib/exchange-passport.js +3 -3
- package/lib/hooks/blocklet.js +4 -4
- package/lib/hooks/use-navigation.js +1 -1
- package/lib/locales/en.js +23 -24
- package/lib/locales/zh.js +43 -44
- package/lib/logs/download.js +2 -2
- package/lib/store/delete.js +2 -2
- package/lib/team/members/index.js +4 -3
- package/lib/team/members/member.js +2 -8
- package/lib/team/members/passport-issuances.js +2 -8
- package/lib/team/members/passports.js +2 -8
- package/lib/team/members/toggle-user-approval.js +2 -2
- package/lib/team/passports/color.js +2 -2
- package/lib/team/passports/detail.js +4 -4
- package/lib/team/passports/index.js +3 -3
- package/lib/team/passports/trusted-factories.js +3 -3
- package/lib/team/passports/trusted-factory.js +3 -3
- package/lib/team/passports/trusted-issuer.js +3 -3
- package/lib/team/passports/trusted-issuers.js +4 -4
- package/lib/util/index.js +8 -13
- package/package.json +14 -15
- package/lib/toast.js +0 -86
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abtnode/ux",
|
|
3
|
-
"version": "1.16.11-
|
|
3
|
+
"version": "1.16.11-next-a232f5fb",
|
|
4
4
|
"description": "UX components shared across abtnode packages",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -23,22 +23,22 @@
|
|
|
23
23
|
"author": "linchen <linchen1987@foxmail.com> (http://github.com/linchen1987)",
|
|
24
24
|
"license": "Apache-2.0",
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@abtnode/auth": "1.16.11-
|
|
27
|
-
"@abtnode/constant": "1.16.11-
|
|
28
|
-
"@abtnode/util": "1.16.11-
|
|
26
|
+
"@abtnode/auth": "1.16.11-next-a232f5fb",
|
|
27
|
+
"@abtnode/constant": "1.16.11-next-a232f5fb",
|
|
28
|
+
"@abtnode/util": "1.16.11-next-a232f5fb",
|
|
29
29
|
"@ahooksjs/use-url-state": "^3.5.1",
|
|
30
30
|
"@arcblock/did": "^1.18.80",
|
|
31
|
-
"@arcblock/did-connect": "^2.5.
|
|
31
|
+
"@arcblock/did-connect": "^2.5.47",
|
|
32
32
|
"@arcblock/did-motif": "^1.1.10",
|
|
33
|
-
"@arcblock/icons": "^2.5.
|
|
34
|
-
"@arcblock/react-hooks": "^2.5.
|
|
35
|
-
"@arcblock/terminal": "^2.5.
|
|
36
|
-
"@arcblock/ux": "^2.5.
|
|
37
|
-
"@blocklet/constant": "1.16.11-
|
|
38
|
-
"@blocklet/launcher-layout": "2.0
|
|
33
|
+
"@arcblock/icons": "^2.5.47",
|
|
34
|
+
"@arcblock/react-hooks": "^2.5.47",
|
|
35
|
+
"@arcblock/terminal": "^2.5.47",
|
|
36
|
+
"@arcblock/ux": "^2.5.47",
|
|
37
|
+
"@blocklet/constant": "1.16.11-next-a232f5fb",
|
|
38
|
+
"@blocklet/launcher-layout": "2.1.0",
|
|
39
39
|
"@blocklet/list": "^0.11.28",
|
|
40
|
-
"@blocklet/meta": "1.16.11-
|
|
41
|
-
"@blocklet/ui-react": "^2.5.
|
|
40
|
+
"@blocklet/meta": "1.16.11-next-a232f5fb",
|
|
41
|
+
"@blocklet/ui-react": "^2.5.47",
|
|
42
42
|
"@emotion/react": "^11.10.4",
|
|
43
43
|
"@emotion/styled": "^11.10.4",
|
|
44
44
|
"@iconify/react": "^4.0.0",
|
|
@@ -67,7 +67,6 @@
|
|
|
67
67
|
"moment": "^2.29.4",
|
|
68
68
|
"ms": "^2.1.3",
|
|
69
69
|
"nanoid": "^4.0.0",
|
|
70
|
-
"notistack": "2.0.5",
|
|
71
70
|
"p-wait-for": "^4.1.0",
|
|
72
71
|
"pretty-ms-i18n": "^1.0.3",
|
|
73
72
|
"prop-types": "^15.8.1",
|
|
@@ -94,5 +93,5 @@
|
|
|
94
93
|
"@babel/preset-react": "^7.18.6",
|
|
95
94
|
"babel-plugin-inline-react-svg": "^1.1.2"
|
|
96
95
|
},
|
|
97
|
-
"gitHead": "
|
|
96
|
+
"gitHead": "1af264e9b6648aa191fbf23c67717262ac717697"
|
|
98
97
|
}
|
package/lib/toast.js
DELETED
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.ToastProvider = ToastProvider;
|
|
7
|
-
exports.default = void 0;
|
|
8
|
-
var _react = require("react");
|
|
9
|
-
var _notistack = require("notistack");
|
|
10
|
-
var _IconButton = _interopRequireDefault(require("@mui/material/IconButton"));
|
|
11
|
-
var _Close = _interopRequireDefault(require("@mui/icons-material/Close"));
|
|
12
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
14
|
-
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; }
|
|
15
|
-
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; }
|
|
16
|
-
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
17
|
-
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
18
|
-
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
19
|
-
const noop = () => {};
|
|
20
|
-
let _success = noop;
|
|
21
|
-
let _error = noop;
|
|
22
|
-
let _warning = noop;
|
|
23
|
-
let _info = noop;
|
|
24
|
-
const genFn = (enqueueSnackbar, variant) => (message, opts) => {
|
|
25
|
-
enqueueSnackbar(message, _objectSpread({
|
|
26
|
-
autoHideDuration: 3000,
|
|
27
|
-
variant
|
|
28
|
-
}, opts));
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
// eslint-disable-next-line react/prop-types
|
|
32
|
-
function ToastProvider(_ref) {
|
|
33
|
-
let {
|
|
34
|
-
children
|
|
35
|
-
} = _ref;
|
|
36
|
-
const notistackRef = /*#__PURE__*/(0, _react.createRef)();
|
|
37
|
-
const onClickDismiss = key => () => {
|
|
38
|
-
notistackRef.current.closeSnackbar(key);
|
|
39
|
-
};
|
|
40
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_notistack.SnackbarProvider, {
|
|
41
|
-
anchorOrigin: {
|
|
42
|
-
vertical: 'top',
|
|
43
|
-
horizontal: 'right'
|
|
44
|
-
},
|
|
45
|
-
ref: notistackRef
|
|
46
|
-
// eslint-disable-next-line react/no-unstable-nested-components
|
|
47
|
-
,
|
|
48
|
-
action: key => /*#__PURE__*/(0, _jsxRuntime.jsx)(_IconButton.default, {
|
|
49
|
-
"aria-label": "close",
|
|
50
|
-
color: "inherit",
|
|
51
|
-
onClick: onClickDismiss(key),
|
|
52
|
-
size: "large",
|
|
53
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Close.default, {
|
|
54
|
-
style: {
|
|
55
|
-
fontSize: 16
|
|
56
|
-
}
|
|
57
|
-
})
|
|
58
|
-
}, "close"),
|
|
59
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(Toast, {}), children]
|
|
60
|
-
});
|
|
61
|
-
}
|
|
62
|
-
function Toast() {
|
|
63
|
-
const {
|
|
64
|
-
enqueueSnackbar
|
|
65
|
-
} = (0, _notistack.useSnackbar)();
|
|
66
|
-
_success = genFn(enqueueSnackbar, 'success');
|
|
67
|
-
_error = genFn(enqueueSnackbar, 'error');
|
|
68
|
-
_warning = genFn(enqueueSnackbar, 'warning');
|
|
69
|
-
_info = genFn(enqueueSnackbar, 'info');
|
|
70
|
-
return null;
|
|
71
|
-
}
|
|
72
|
-
var _default = {
|
|
73
|
-
success: function success() {
|
|
74
|
-
return _success(...arguments);
|
|
75
|
-
},
|
|
76
|
-
error: function error() {
|
|
77
|
-
return _error(...arguments);
|
|
78
|
-
},
|
|
79
|
-
warning: function warning() {
|
|
80
|
-
return _warning(...arguments);
|
|
81
|
-
},
|
|
82
|
-
info: function info() {
|
|
83
|
-
return _info(...arguments);
|
|
84
|
-
}
|
|
85
|
-
};
|
|
86
|
-
exports.default = _default;
|