@abtnode/ux 1.16.27-beta-43a3bbb2 → 1.16.27-beta-c450492a

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.
Files changed (97) hide show
  1. package/es/blocklet/component/component-cell.js +0 -13
  2. package/es/blocklet/component/index.js +0 -16
  3. package/es/blocklet/configuration.js +28 -9
  4. package/es/blocklet/publish/resource.js +22 -4
  5. package/es/locales/ar.js +7 -1
  6. package/es/locales/de.js +7 -1
  7. package/es/locales/en.js +7 -1
  8. package/es/locales/es.js +7 -1
  9. package/es/locales/fr.js +7 -1
  10. package/es/locales/hi.js +7 -1
  11. package/es/locales/i18n.db +0 -0
  12. package/es/locales/id.js +7 -1
  13. package/es/locales/ja.js +7 -1
  14. package/es/locales/ko.js +7 -1
  15. package/es/locales/pt.js +7 -1
  16. package/es/locales/ru.js +7 -1
  17. package/es/locales/th.js +7 -1
  18. package/es/locales/vi.js +7 -1
  19. package/es/locales/zh-tw.js +7 -1
  20. package/es/locales/zh.js +8 -2
  21. package/es/subscription/server.js +16 -2
  22. package/lib/actions.js +1 -1
  23. package/lib/blocklet/actions.js +1 -1
  24. package/lib/blocklet/add-cert.js +1 -1
  25. package/lib/blocklet/app-avatar.js +1 -1
  26. package/lib/blocklet/bundle-avatar.js +1 -1
  27. package/lib/blocklet/component/add-component-core.js +1 -1
  28. package/lib/blocklet/component/component-cell.js +0 -13
  29. package/lib/blocklet/component/did-space/connect-to.js +1 -1
  30. package/lib/blocklet/component/did-space/item.js +1 -1
  31. package/lib/blocklet/component/domain-list.js +1 -1
  32. package/lib/blocklet/component/index.js +1 -17
  33. package/lib/blocklet/component/navigation/simple-select.js +1 -1
  34. package/lib/blocklet/component/setting.js +1 -1
  35. package/lib/blocklet/component/space-connector.js +1 -1
  36. package/lib/blocklet/component/space-selector.js +1 -1
  37. package/lib/blocklet/component/store-blocklet-list.js +1 -1
  38. package/lib/blocklet/component/switch-control.js +1 -1
  39. package/lib/blocklet/configuration.js +28 -9
  40. package/lib/blocklet/disk-info.js +1 -1
  41. package/lib/blocklet/log.js +1 -1
  42. package/lib/blocklet/mode.js +1 -1
  43. package/lib/blocklet/page-group.js +1 -1
  44. package/lib/blocklet/preferences/index.js +1 -1
  45. package/lib/blocklet/publish/resource.js +22 -4
  46. package/lib/blocklet/purchase/component-purchase.js +1 -1
  47. package/lib/blocklet/resource-type.js +1 -1
  48. package/lib/blocklet/router/add-domain.js +1 -1
  49. package/lib/blocklet/router/dns-tip.js +1 -1
  50. package/lib/blocklet/runtime-info.js +1 -1
  51. package/lib/blocklet/status.js +1 -1
  52. package/lib/blocklet/storage/action.js +1 -1
  53. package/lib/blocklet/storage/auto-check-update.js +1 -1
  54. package/lib/blocklet/storage/item.js +1 -1
  55. package/lib/blocklet/version.js +1 -1
  56. package/lib/clear-cache.js +1 -1
  57. package/lib/click-to-copy.js +1 -1
  58. package/lib/confirm.js +1 -1
  59. package/lib/did-address.js +1 -1
  60. package/lib/empty-spinner.js +1 -1
  61. package/lib/form/form-autocomplete-input.js +1 -1
  62. package/lib/form/form-select-input.js +1 -1
  63. package/lib/form/form-text-input.js +1 -1
  64. package/lib/images.js +1 -1
  65. package/lib/invitation/invitation-app.js +1 -1
  66. package/lib/launch-blocklet/content-layout.js +1 -1
  67. package/lib/locales/ar.js +7 -1
  68. package/lib/locales/de.js +7 -1
  69. package/lib/locales/en.js +7 -1
  70. package/lib/locales/es.js +7 -1
  71. package/lib/locales/fr.js +7 -1
  72. package/lib/locales/hi.js +7 -1
  73. package/lib/locales/i18n.db +0 -0
  74. package/lib/locales/id.js +7 -1
  75. package/lib/locales/ja.js +7 -1
  76. package/lib/locales/ko.js +7 -1
  77. package/lib/locales/pt.js +7 -1
  78. package/lib/locales/ru.js +7 -1
  79. package/lib/locales/th.js +7 -1
  80. package/lib/locales/vi.js +7 -1
  81. package/lib/locales/zh-tw.js +7 -1
  82. package/lib/locales/zh.js +8 -2
  83. package/lib/logs/log-terminal.js +1 -1
  84. package/lib/nav-logo.js +1 -1
  85. package/lib/notifications/tag.js +1 -1
  86. package/lib/passport-tag.js +1 -1
  87. package/lib/relative-time.js +1 -1
  88. package/lib/schema-form/passport-input.js +1 -1
  89. package/lib/schema-form/text-input.js +1 -1
  90. package/lib/store/item.js +1 -1
  91. package/lib/subscription/blocklet.js +1 -1
  92. package/lib/subscription/server.js +17 -4
  93. package/lib/tag.js +1 -1
  94. package/lib/team/members/member.js +1 -1
  95. package/lib/team/members/passport-item.js +1 -1
  96. package/lib/team/search-input.js +1 -1
  97. package/package.json +19 -19
@@ -28,7 +28,7 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
28
28
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
29
29
  function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
30
30
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
31
- function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
31
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } } return target; }
32
32
  const DEFAULT_LAUNCHER_URL = 'https://launcher.arcblock.io/'; // 兼容: 旧版本的 blocklet.controller 没有 launcherUrl 字段
33
33
 
34
34
  const ALERT_THRESHOLD_MS = 30 * 24 * 60 * 60 * 1000;
@@ -28,12 +28,12 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
28
28
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
29
29
  function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
30
30
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
31
- function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
31
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } } return target; }
32
32
  const ALERT_THRESHOLD_MS = 30 * 24 * 60 * 60 * 1000;
33
33
  const DEFAULT_LAUNCHER_URL = 'https://launcher.arcblock.io/'; // 兼容: 旧版本的 blocklet.controller 没有 launcherUrl 字段
34
34
 
35
35
  function SubscriptionServer(_ref) {
36
- var _asyncState$value, _asyncState$value2;
36
+ var _asyncState$value, _asyncState$value2, _asyncState$value3, _asyncState$value4;
37
37
  let {
38
38
  launcherUrl,
39
39
  chainHost,
@@ -129,7 +129,20 @@ function SubscriptionServer(_ref) {
129
129
  });
130
130
  };
131
131
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
132
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Chip.default, _objectSpread(_objectSpread({
132
+ children: [((_asyncState$value2 = asyncState.value) === null || _asyncState$value2 === void 0 || (_asyncState$value2 = _asyncState$value2.launcherSession) === null || _asyncState$value2 === void 0 ? void 0 : _asyncState$value2.subscription) && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Chip.default, _objectSpread(_objectSpread({
133
+ label: /*#__PURE__*/(0, _jsxRuntime.jsx)(_chipLabel.default, {
134
+ children: t('expiration.desktop.nextInvoice', {
135
+ date: (0, _util.formatToDate)(expirationDate, locale)
136
+ })
137
+ }),
138
+ color: "success",
139
+ variant: "outlined",
140
+ sx: _objectSpread({
141
+ cursor: 'pointer'
142
+ }, sx)
143
+ }, rest), {}, {
144
+ onClick: handlePopoverClick
145
+ })), !((_asyncState$value3 = asyncState.value) !== null && _asyncState$value3 !== void 0 && (_asyncState$value3 = _asyncState$value3.launcherSession) !== null && _asyncState$value3 !== void 0 && _asyncState$value3.subscription) && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Chip.default, _objectSpread(_objectSpread({
133
146
  label: /*#__PURE__*/(0, _jsxRuntime.jsx)(_chipLabel.default, {
134
147
  children: t("expiration.".concat(typoKey, ".tips.").concat(status), {
135
148
  validity: (0, _prettyMsI18n.default)(validityMs, {
@@ -167,7 +180,7 @@ function SubscriptionServer(_ref) {
167
180
  style: {
168
181
  border: 0
169
182
  },
170
- src: (_asyncState$value2 = asyncState.value) === null || _asyncState$value2 === void 0 ? void 0 : _asyncState$value2.subscriptionURL
183
+ src: (_asyncState$value4 = asyncState.value) === null || _asyncState$value4 === void 0 ? void 0 : _asyncState$value4.subscriptionURL
171
184
  })
172
185
  })]
173
186
  });
package/lib/tag.js CHANGED
@@ -15,7 +15,7 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
15
15
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
16
16
  function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
17
17
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
18
- function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
18
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } } return target; }
19
19
  function Wrapped(_ref) {
20
20
  let {
21
21
  children,
@@ -44,7 +44,7 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
44
44
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
45
45
  function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
46
46
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
47
- function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
47
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } } return target; }
48
48
  function LinkUser(_ref) {
49
49
  let {
50
50
  name
@@ -23,7 +23,7 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
23
23
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
24
24
  function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
25
25
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
26
- function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
26
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } } return target; }
27
27
  function PassportItem(_ref) {
28
28
  let {
29
29
  passport,
@@ -17,7 +17,7 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
17
17
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
18
18
  function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
19
19
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
20
- function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
20
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } } return target; }
21
21
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
22
22
  const SearchInput = (0, _styled.default)(_ref => {
23
23
  let {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abtnode/ux",
3
- "version": "1.16.27-beta-43a3bbb2",
3
+ "version": "1.16.27-beta-c450492a",
4
4
  "description": "UX components shared across abtnode packages",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -28,24 +28,24 @@
28
28
  "author": "linchen <linchen1987@foxmail.com> (http://github.com/linchen1987)",
29
29
  "license": "Apache-2.0",
30
30
  "dependencies": {
31
- "@abtnode/auth": "1.16.27-beta-43a3bbb2",
32
- "@abtnode/constant": "1.16.27-beta-43a3bbb2",
33
- "@abtnode/util": "1.16.27-beta-43a3bbb2",
31
+ "@abtnode/auth": "1.16.27-beta-c450492a",
32
+ "@abtnode/constant": "1.16.27-beta-c450492a",
33
+ "@abtnode/util": "1.16.27-beta-c450492a",
34
34
  "@ahooksjs/use-url-state": "^3.5.1",
35
- "@arcblock/did": "^1.18.115",
36
- "@arcblock/did-connect": "^2.9.75",
35
+ "@arcblock/did": "^1.18.117",
36
+ "@arcblock/did-connect": "^2.9.79",
37
37
  "@arcblock/did-motif": "^1.1.13",
38
- "@arcblock/icons": "^2.9.75",
39
- "@arcblock/nft-display": "2.9.75",
40
- "@arcblock/react-hooks": "^2.9.75",
41
- "@arcblock/terminal": "^2.9.75",
42
- "@arcblock/ux": "^2.9.75",
43
- "@blocklet/constant": "1.16.27-beta-43a3bbb2",
44
- "@blocklet/launcher-layout": "2.3.14",
45
- "@blocklet/list": "^0.12.88",
46
- "@blocklet/meta": "1.16.27-beta-43a3bbb2",
47
- "@blocklet/ui-react": "^2.9.75",
48
- "@blocklet/uploader": "^0.0.78",
38
+ "@arcblock/icons": "^2.9.79",
39
+ "@arcblock/nft-display": "2.9.79",
40
+ "@arcblock/react-hooks": "^2.9.79",
41
+ "@arcblock/terminal": "^2.9.79",
42
+ "@arcblock/ux": "^2.9.79",
43
+ "@blocklet/constant": "1.16.27-beta-c450492a",
44
+ "@blocklet/launcher-layout": "2.3.19",
45
+ "@blocklet/list": "^0.12.89",
46
+ "@blocklet/meta": "1.16.27-beta-c450492a",
47
+ "@blocklet/ui-react": "^2.9.79",
48
+ "@blocklet/uploader": "^0.1.6",
49
49
  "@emotion/react": "^11.10.4",
50
50
  "@emotion/styled": "^11.10.4",
51
51
  "@iconify-icons/logos": "^1.2.36",
@@ -58,7 +58,7 @@
58
58
  "@mui/styles": "^5.15.11",
59
59
  "@mui/x-date-pickers": "^6.19.0",
60
60
  "@mui/x-tree-view": "^6.17.0",
61
- "@ocap/client": "1.18.115",
61
+ "@ocap/client": "1.18.117",
62
62
  "@uiw/react-markdown-preview": "4.0.6",
63
63
  "ahooks": "^3.7.8",
64
64
  "axios": "^0.27.2",
@@ -109,7 +109,7 @@
109
109
  "jest": "^29.7.0",
110
110
  "jest-environment-jsdom": "^29.7.0"
111
111
  },
112
- "gitHead": "375820f90d78b9ff78bb4c29880dc9b19756ffc6",
112
+ "gitHead": "acb1a611412f31cd292b4db4536352dba75bbe3f",
113
113
  "exports": {
114
114
  ".": {
115
115
  "import": "./es/index.js",