@abtnode/ux 1.16.30-beta-5d9c2c41 → 1.16.30-beta-cd65989e

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.
@@ -31,6 +31,8 @@ import { formatError, isDownloading, sleep } from '../util';
31
31
  import Icons from './icons';
32
32
  import { getServerUrl } from './util';
33
33
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
34
+ const INTERNAL = 'internal';
35
+ const EXTERNAL = 'external';
34
36
  export default function BlockletActions({
35
37
  blocklet,
36
38
  onStart,
@@ -55,6 +57,7 @@ export default function BlockletActions({
55
57
  loading: recommendedUrlLoading,
56
58
  recommendedUrl
57
59
  } = useBlockletUrlEvaluation(blocklet);
60
+ const [tab] = useLocalStorage('blocklet-type-filter', INTERNAL);
58
61
  const inProgress = isInProgress(blocklet.status);
59
62
  const [disableStart, setDisableStart] = useState(false);
60
63
  useEffect(() => {
@@ -332,7 +335,7 @@ export default function BlockletActions({
332
335
  handler: createHandler('cancelDownload', node.api.cancelDownloadBlocklet, true)
333
336
  };
334
337
  const missingRequiredConfigs = getAppMissingConfigs(blocklet);
335
- const actions = [{
338
+ let actions = [{
336
339
  action: 'start',
337
340
  icon: Icons.Start,
338
341
  name: t('common.start'),
@@ -362,6 +365,10 @@ export default function BlockletActions({
362
365
  },
363
366
  disabled: isDownloading(blocklet.status)
364
367
  } : null].filter(Boolean);
368
+ if (tab === EXTERNAL) {
369
+ // eslint-disable-next-line no-return-assign
370
+ actions = actions.filter(x => x.onlyInMenu);
371
+ }
365
372
  if (variant === 'menu') {
366
373
  return /*#__PURE__*/_jsxs(Div, {
367
374
  "data-cy": "blocklet-actions",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abtnode/ux",
3
- "version": "1.16.30-beta-5d9c2c41",
3
+ "version": "1.16.30-beta-cd65989e",
4
4
  "description": "UX components shared across abtnode packages",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -25,25 +25,25 @@
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-5d9c2c41",
29
- "@abtnode/constant": "1.16.30-beta-5d9c2c41",
30
- "@abtnode/util": "1.16.30-beta-5d9c2c41",
28
+ "@abtnode/auth": "1.16.30-beta-cd65989e",
29
+ "@abtnode/constant": "1.16.30-beta-cd65989e",
30
+ "@abtnode/util": "1.16.30-beta-cd65989e",
31
31
  "@ahooksjs/use-url-state": "^3.5.1",
32
- "@arcblock/did": "^1.18.130",
33
- "@arcblock/did-connect": "^2.10.21",
32
+ "@arcblock/did": "^1.18.131",
33
+ "@arcblock/did-connect": "^2.10.22",
34
34
  "@arcblock/did-motif": "^1.1.13",
35
- "@arcblock/icons": "^2.10.21",
36
- "@arcblock/nft-display": "2.10.21",
37
- "@arcblock/react-hooks": "^2.10.21",
38
- "@arcblock/terminal": "^2.10.21",
39
- "@arcblock/ux": "^2.10.21",
40
- "@blocklet/constant": "1.16.30-beta-5d9c2c41",
41
- "@blocklet/js-sdk": "1.16.30-beta-5d9c2c41",
42
- "@blocklet/launcher-layout": "2.10.21",
35
+ "@arcblock/icons": "^2.10.22",
36
+ "@arcblock/nft-display": "2.10.22",
37
+ "@arcblock/react-hooks": "^2.10.22",
38
+ "@arcblock/terminal": "^2.10.22",
39
+ "@arcblock/ux": "^2.10.22",
40
+ "@blocklet/constant": "1.16.30-beta-cd65989e",
41
+ "@blocklet/js-sdk": "1.16.30-beta-cd65989e",
42
+ "@blocklet/launcher-layout": "2.10.22",
43
43
  "@blocklet/list": "^0.13.18",
44
- "@blocklet/meta": "1.16.30-beta-5d9c2c41",
45
- "@blocklet/ui-react": "^2.10.21",
46
- "@blocklet/uploader": "0.1.21",
44
+ "@blocklet/meta": "1.16.30-beta-cd65989e",
45
+ "@blocklet/ui-react": "^2.10.22",
46
+ "@blocklet/uploader": "0.1.22",
47
47
  "@emotion/react": "^11.10.4",
48
48
  "@emotion/styled": "^11.10.4",
49
49
  "@iconify-icons/logos": "^1.2.36",
@@ -56,7 +56,7 @@
56
56
  "@mui/styles": "^5.15.11",
57
57
  "@mui/x-date-pickers": "^6.19.0",
58
58
  "@mui/x-tree-view": "^6.17.0",
59
- "@ocap/client": "1.18.130",
59
+ "@ocap/client": "1.18.131",
60
60
  "@uiw/react-markdown-preview": "^5.1.1",
61
61
  "ahooks": "^3.7.8",
62
62
  "axios": "^1.7.2",
@@ -108,5 +108,5 @@
108
108
  "jest": "^29.7.0",
109
109
  "jest-environment-jsdom": "^29.7.0"
110
110
  },
111
- "gitHead": "d9227f08e11c1d82969880b30b2a2e3639e88def"
111
+ "gitHead": "8646768b8ac83cdb8c213ab17fe8030f3d5dc6fc"
112
112
  }