@abtnode/ux 1.16.12 → 1.16.13-beta-118c3420

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.
@@ -413,8 +413,7 @@ function ComponentItem(_ref) {
413
413
  component: blocklet,
414
414
  onStart: onStart,
415
415
  onStop: onStop,
416
- disabled: !!deleteDisabledTip,
417
- tip: deleteDisabledTip
416
+ disabled: root.status !== 'starting' && (0, _util.isInProgress)(root.status)
418
417
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_actions.default, {
419
418
  "data-cy": "component-actions",
420
419
  actions: [{
@@ -50,7 +50,7 @@ function StartComponent(_ref) {
50
50
  setLoading(false);
51
51
  };
52
52
  const componentDisabled = disabled || loading;
53
- const isStop = component.status === 'running';
53
+ const isStop = ['starting', 'running'].includes(component.status);
54
54
  const Icon = isStop ? _Stop.default : _PlayArrow.default;
55
55
  const btn = /*#__PURE__*/(0, _jsxRuntime.jsx)(StyledButton, {
56
56
  disabled: componentDisabled,
package/lib/locales/en.js CHANGED
@@ -508,7 +508,6 @@ module.exports = {
508
508
  purchase: 'Payment Required',
509
509
  tip: {
510
510
  stopBlocklet: 'Please stop running Blocklet first',
511
- notDynamic: 'Only dynamically added component can be removed',
512
511
  requiredBy: 'The component is required by {name}'
513
512
  },
514
513
  choose: 'Choose',
package/lib/locales/zh.js CHANGED
@@ -515,7 +515,6 @@ module.exports = {
515
515
  purchase: '需要支付',
516
516
  tip: {
517
517
  stopBlocklet: '请先停止运行应用',
518
- notDynamic: '只有动态添加的组件才能被删除',
519
518
  requiredBy: '{name} 需要该组件'
520
519
  },
521
520
  choose: '选择',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abtnode/ux",
3
- "version": "1.16.12",
3
+ "version": "1.16.13-beta-118c3420",
4
4
  "description": "UX components shared across abtnode packages",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -23,9 +23,9 @@
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.12",
27
- "@abtnode/constant": "1.16.12",
28
- "@abtnode/util": "1.16.12",
26
+ "@abtnode/auth": "1.16.13-beta-118c3420",
27
+ "@abtnode/constant": "1.16.13-beta-118c3420",
28
+ "@abtnode/util": "1.16.13-beta-118c3420",
29
29
  "@ahooksjs/use-url-state": "^3.5.1",
30
30
  "@arcblock/did": "^1.18.84",
31
31
  "@arcblock/did-connect": "^2.5.50",
@@ -34,10 +34,10 @@
34
34
  "@arcblock/react-hooks": "^2.5.50",
35
35
  "@arcblock/terminal": "^2.5.50",
36
36
  "@arcblock/ux": "^2.5.50",
37
- "@blocklet/constant": "1.16.12",
37
+ "@blocklet/constant": "1.16.13-beta-118c3420",
38
38
  "@blocklet/launcher-layout": "2.1.18",
39
39
  "@blocklet/list": "^0.12.1",
40
- "@blocklet/meta": "1.16.12",
40
+ "@blocklet/meta": "1.16.13-beta-118c3420",
41
41
  "@blocklet/ui-react": "^2.5.50",
42
42
  "@emotion/react": "^11.10.4",
43
43
  "@emotion/styled": "^11.10.4",
@@ -93,5 +93,5 @@
93
93
  "@babel/preset-react": "^7.18.6",
94
94
  "babel-plugin-inline-react-svg": "^1.1.2"
95
95
  },
96
- "gitHead": "f91a92c7621b0defbdb6b119ac657d712b1ca5bc"
96
+ "gitHead": "93e00311f882c8c153a1c6c3d18aa29c154f08f6"
97
97
  }