@abtnode/ux 1.16.25-next-a0747dd3 → 1.16.25-next-d6a21727

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.
@@ -321,13 +321,17 @@ export default function BlockletActions({
321
321
  name: t('common.restart'),
322
322
  handler: createHandler('restart', node.api.restartBlocklet, true),
323
323
  disabled: disableStart || blocklet.status !== 'running'
324
- }, {
325
- action: 'reload',
326
- icon: Icons.Reload,
327
- name: t('common.reload'),
328
- handler: createHandler('reload', node.api.reloadBlocklet),
329
- disabled: disableStart || blocklet.status !== 'running'
330
- }, isDownloading(blocklet.status) ? cancelDownloadAction : removeAction, {
324
+ },
325
+ // hidden reload: https://github.com/ArcBlock/blocklet-server/issues/8655
326
+ // {
327
+ // action: 'reload',
328
+ // icon: Icons.Reload,
329
+ // name: t('common.reload'),
330
+ // handler: createHandler('reload', node.api.reloadBlocklet),
331
+ // disabled: disableStart || blocklet.status !== 'running',
332
+ // },
333
+
334
+ isDownloading(blocklet.status) ? cancelDownloadAction : removeAction, {
331
335
  separator: true
332
336
  }, {
333
337
  onlyInMenu: true,
@@ -1,7 +1,7 @@
1
1
  import React, { useContext, useState, useEffect, useImperativeHandle, forwardRef, useMemo } from 'react';
2
2
  import DidConnect from '@arcblock/did-connect/lib/Connect';
3
3
  import { LocaleContext } from '@arcblock/ux/lib/Locale/context';
4
- import { BLOCKLET_CONFIGURABLE_KEY } from '@blocklet/constant';
4
+ import { BLOCKLET_CONFIGURABLE_KEY, DID_SPACES } from '@blocklet/constant';
5
5
  import axios from 'axios';
6
6
  import PropTypes from 'prop-types';
7
7
  import joinUrl from 'url-join';
@@ -129,7 +129,7 @@ const SpaceConnector = /*#__PURE__*/forwardRef(({
129
129
  appDid: blocklet.appDid,
130
130
  appName,
131
131
  appDescription,
132
- scopes: 'list:object read:object write:object',
132
+ scopes: DID_SPACES.AUTHORIZE.DEFAULT_SCOPE,
133
133
  appUrl,
134
134
  referrer: window.location.href,
135
135
  nodeDid
@@ -1,3 +1,4 @@
1
+ import { DID_SPACES } from '@blocklet/constant';
1
2
  import { getAppDescription, getAppName } from '@blocklet/meta/lib/util';
2
3
  import isEmpty from 'lodash/isEmpty';
3
4
 
@@ -37,7 +38,7 @@ function useBlockletInfoForConnectDIDSpaces({
37
38
  return `${protocol}${value}`;
38
39
  }).filter(Boolean);
39
40
  const appUrl = appUrls?.[0];
40
- const scopes = 'list:object read:object write:object';
41
+ const scopes = DID_SPACES.AUTHORIZE.DEFAULT_SCOPE;
41
42
  const referrer = window.location.href;
42
43
 
43
44
  // 授权的时候提供 appUrl, 因为 appUrl 可能很久都拿不到值,所以加一个 isReady 来表示就绪状态
@@ -342,13 +342,17 @@ function BlockletActions(_ref) {
342
342
  name: t('common.restart'),
343
343
  handler: createHandler('restart', node.api.restartBlocklet, true),
344
344
  disabled: disableStart || blocklet.status !== 'running'
345
- }, {
346
- action: 'reload',
347
- icon: _icons.default.Reload,
348
- name: t('common.reload'),
349
- handler: createHandler('reload', node.api.reloadBlocklet),
350
- disabled: disableStart || blocklet.status !== 'running'
351
- }, (0, _util2.isDownloading)(blocklet.status) ? cancelDownloadAction : removeAction, {
345
+ },
346
+ // hidden reload: https://github.com/ArcBlock/blocklet-server/issues/8655
347
+ // {
348
+ // action: 'reload',
349
+ // icon: Icons.Reload,
350
+ // name: t('common.reload'),
351
+ // handler: createHandler('reload', node.api.reloadBlocklet),
352
+ // disabled: disableStart || blocklet.status !== 'running',
353
+ // },
354
+
355
+ (0, _util2.isDownloading)(blocklet.status) ? cancelDownloadAction : removeAction, {
352
356
  separator: true
353
357
  }, {
354
358
  onlyInMenu: true,
@@ -145,7 +145,7 @@ const SpaceConnector = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
145
145
  appDid: blocklet.appDid,
146
146
  appName,
147
147
  appDescription,
148
- scopes: 'list:object read:object write:object',
148
+ scopes: _constant.DID_SPACES.AUTHORIZE.DEFAULT_SCOPE,
149
149
  appUrl,
150
150
  referrer: window.location.href,
151
151
  nodeDid
@@ -4,6 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
+ var _constant = require("@blocklet/constant");
7
8
  var _util = require("@blocklet/meta/lib/util");
8
9
  var _isEmpty = _interopRequireDefault(require("lodash/isEmpty"));
9
10
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -46,7 +47,7 @@ function useBlockletInfoForConnectDIDSpaces(_ref) {
46
47
  return "".concat(protocol).concat(value);
47
48
  }).filter(Boolean);
48
49
  const appUrl = appUrls === null || appUrls === void 0 ? void 0 : appUrls[0];
49
- const scopes = 'list:object read:object write:object';
50
+ const scopes = _constant.DID_SPACES.AUTHORIZE.DEFAULT_SCOPE;
50
51
  const referrer = window.location.href;
51
52
 
52
53
  // 授权的时候提供 appUrl, 因为 appUrl 可能很久都拿不到值,所以加一个 isReady 来表示就绪状态
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abtnode/ux",
3
- "version": "1.16.25-next-a0747dd3",
3
+ "version": "1.16.25-next-d6a21727",
4
4
  "description": "UX components shared across abtnode packages",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -28,23 +28,23 @@
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.25-next-a0747dd3",
32
- "@abtnode/constant": "1.16.25-next-a0747dd3",
33
- "@abtnode/util": "1.16.25-next-a0747dd3",
31
+ "@abtnode/auth": "1.16.25-next-d6a21727",
32
+ "@abtnode/constant": "1.16.25-next-d6a21727",
33
+ "@abtnode/util": "1.16.25-next-d6a21727",
34
34
  "@ahooksjs/use-url-state": "^3.5.1",
35
35
  "@arcblock/did": "^1.18.113",
36
- "@arcblock/did-connect": "^2.9.50",
36
+ "@arcblock/did-connect": "^2.9.51",
37
37
  "@arcblock/did-motif": "^1.1.13",
38
- "@arcblock/icons": "^2.9.50",
39
- "@arcblock/nft-display": "2.9.50",
40
- "@arcblock/react-hooks": "^2.9.50",
41
- "@arcblock/terminal": "^2.9.50",
42
- "@arcblock/ux": "^2.9.50",
43
- "@blocklet/constant": "1.16.25-next-a0747dd3",
38
+ "@arcblock/icons": "^2.9.51",
39
+ "@arcblock/nft-display": "2.9.51",
40
+ "@arcblock/react-hooks": "^2.9.51",
41
+ "@arcblock/terminal": "^2.9.51",
42
+ "@arcblock/ux": "^2.9.51",
43
+ "@blocklet/constant": "1.16.25-next-d6a21727",
44
44
  "@blocklet/launcher-layout": "2.2.54",
45
- "@blocklet/list": "^0.12.75",
46
- "@blocklet/meta": "1.16.25-next-a0747dd3",
47
- "@blocklet/ui-react": "^2.9.50",
45
+ "@blocklet/list": "^0.12.76",
46
+ "@blocklet/meta": "1.16.25-next-d6a21727",
47
+ "@blocklet/ui-react": "^2.9.51",
48
48
  "@blocklet/uploader": "^0.0.74",
49
49
  "@emotion/react": "^11.10.4",
50
50
  "@emotion/styled": "^11.10.4",
@@ -106,7 +106,7 @@
106
106
  "jest": "^29.7.0",
107
107
  "jest-environment-jsdom": "^29.7.0"
108
108
  },
109
- "gitHead": "1b8ffe184a925ffac92f6b06eaaaf775d2923bb6",
109
+ "gitHead": "29a0a8fd08712583900a536ac02b3798cd417576",
110
110
  "exports": {
111
111
  ".": {
112
112
  "import": "./es/index.js",