@abtnode/ux 1.16.30-beta-958ae719 → 1.16.30-beta-b7f31b10
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/actions.js
CHANGED
|
@@ -75,7 +75,7 @@ export default function BlockletActions({
|
|
|
75
75
|
console.error('get launcher session failed', data.error);
|
|
76
76
|
return;
|
|
77
77
|
}
|
|
78
|
-
setDisableStart([LAUNCH_SESSION_STATUS.
|
|
78
|
+
setDisableStart([LAUNCH_SESSION_STATUS.overdue, LAUNCH_SESSION_STATUS.canceled, LAUNCH_SESSION_STATUS.terminated].includes(data?.launcherSession?.status));
|
|
79
79
|
} catch (error) {
|
|
80
80
|
console.error('call getLauncherSession error', error);
|
|
81
81
|
}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { LAUNCH_SESSION_STATUS } from '@abtnode/constant';
|
|
2
2
|
import dayjs from '@abtnode/util/lib/dayjs';
|
|
3
|
+
import { useLocaleContext } from '@arcblock/ux/lib/Locale/context';
|
|
3
4
|
import Chip from '@mui/material/Chip';
|
|
4
5
|
import CircularProgress from '@mui/material/CircularProgress';
|
|
5
6
|
import Popover from '@mui/material/Popover';
|
|
6
7
|
import useMediaQuery from '@mui/material/useMediaQuery';
|
|
7
|
-
import PropTypes from 'prop-types';
|
|
8
8
|
import prettyMs from 'pretty-ms-i18n';
|
|
9
|
+
import PropTypes from 'prop-types';
|
|
9
10
|
import { useRef } from 'react';
|
|
10
11
|
import useAsyncRetry from 'react-use/lib/useAsyncRetry';
|
|
11
12
|
import useSetState from 'react-use/lib/useSetState';
|
|
@@ -102,7 +103,7 @@ function SubscriptionBlocklet({
|
|
|
102
103
|
};
|
|
103
104
|
const launcherSession = asyncState.value?.launcherSession;
|
|
104
105
|
let status = 'success';
|
|
105
|
-
if ([
|
|
106
|
+
if ([LAUNCH_SESSION_STATUS.overdue, LAUNCH_SESSION_STATUS.canceled, LAUNCH_SESSION_STATUS.terminated].includes(asyncState.value?.launcherSession?.status)) {
|
|
106
107
|
status = 'error';
|
|
107
108
|
}
|
|
108
109
|
let validity = null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abtnode/ux",
|
|
3
|
-
"version": "1.16.30-beta-
|
|
3
|
+
"version": "1.16.30-beta-b7f31b10",
|
|
4
4
|
"description": "UX components shared across abtnode packages",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -25,9 +25,9 @@
|
|
|
25
25
|
"author": "linchen <linchen1987@foxmail.com> (http://github.com/linchen1987)",
|
|
26
26
|
"license": "Apache-2.0",
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@abtnode/auth": "1.16.30-beta-
|
|
29
|
-
"@abtnode/constant": "1.16.30-beta-
|
|
30
|
-
"@abtnode/util": "1.16.30-beta-
|
|
28
|
+
"@abtnode/auth": "1.16.30-beta-b7f31b10",
|
|
29
|
+
"@abtnode/constant": "1.16.30-beta-b7f31b10",
|
|
30
|
+
"@abtnode/util": "1.16.30-beta-b7f31b10",
|
|
31
31
|
"@ahooksjs/use-url-state": "^3.5.1",
|
|
32
32
|
"@arcblock/did": "^1.18.128",
|
|
33
33
|
"@arcblock/did-connect": "^2.10.14",
|
|
@@ -37,11 +37,11 @@
|
|
|
37
37
|
"@arcblock/react-hooks": "^2.10.14",
|
|
38
38
|
"@arcblock/terminal": "^2.10.14",
|
|
39
39
|
"@arcblock/ux": "^2.10.14",
|
|
40
|
-
"@blocklet/constant": "1.16.30-beta-
|
|
41
|
-
"@blocklet/js-sdk": "1.16.30-beta-
|
|
40
|
+
"@blocklet/constant": "1.16.30-beta-b7f31b10",
|
|
41
|
+
"@blocklet/js-sdk": "1.16.30-beta-b7f31b10",
|
|
42
42
|
"@blocklet/launcher-layout": "2.3.40",
|
|
43
43
|
"@blocklet/list": "^0.13.14",
|
|
44
|
-
"@blocklet/meta": "1.16.30-beta-
|
|
44
|
+
"@blocklet/meta": "1.16.30-beta-b7f31b10",
|
|
45
45
|
"@blocklet/ui-react": "^2.10.14",
|
|
46
46
|
"@blocklet/uploader": "0.1.20",
|
|
47
47
|
"@emotion/react": "^11.10.4",
|
|
@@ -108,5 +108,5 @@
|
|
|
108
108
|
"jest": "^29.7.0",
|
|
109
109
|
"jest-environment-jsdom": "^29.7.0"
|
|
110
110
|
},
|
|
111
|
-
"gitHead": "
|
|
111
|
+
"gitHead": "2d429b619b7b54b5603fb05761d3acd9ff674c2c"
|
|
112
112
|
}
|