@abtnode/ux 1.16.25-beta-708d1e12 → 1.16.25-beta-e3dbef52
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.
|
@@ -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:
|
|
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 =
|
|
41
|
+
const scopes = DID_SPACES.AUTHORIZE.DEFAULT_SCOPE;
|
|
41
42
|
const referrer = window.location.href;
|
|
42
43
|
|
|
43
44
|
// 授权的时候提供 appUrl, 因为 appUrl 可能很久都拿不到值,所以加一个 isReady 来表示就绪状态
|
|
@@ -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:
|
|
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 =
|
|
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-beta-
|
|
3
|
+
"version": "1.16.25-beta-e3dbef52",
|
|
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-beta-
|
|
32
|
-
"@abtnode/constant": "1.16.25-beta-
|
|
33
|
-
"@abtnode/util": "1.16.25-beta-
|
|
31
|
+
"@abtnode/auth": "1.16.25-beta-e3dbef52",
|
|
32
|
+
"@abtnode/constant": "1.16.25-beta-e3dbef52",
|
|
33
|
+
"@abtnode/util": "1.16.25-beta-e3dbef52",
|
|
34
34
|
"@ahooksjs/use-url-state": "^3.5.1",
|
|
35
35
|
"@arcblock/did": "^1.18.113",
|
|
36
|
-
"@arcblock/did-connect": "^2.9.
|
|
36
|
+
"@arcblock/did-connect": "^2.9.51",
|
|
37
37
|
"@arcblock/did-motif": "^1.1.13",
|
|
38
|
-
"@arcblock/icons": "^2.9.
|
|
39
|
-
"@arcblock/nft-display": "2.9.
|
|
40
|
-
"@arcblock/react-hooks": "^2.9.
|
|
41
|
-
"@arcblock/terminal": "^2.9.
|
|
42
|
-
"@arcblock/ux": "^2.9.
|
|
43
|
-
"@blocklet/constant": "1.16.25-beta-
|
|
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-beta-e3dbef52",
|
|
44
44
|
"@blocklet/launcher-layout": "2.2.54",
|
|
45
|
-
"@blocklet/list": "^0.12.
|
|
46
|
-
"@blocklet/meta": "1.16.25-beta-
|
|
47
|
-
"@blocklet/ui-react": "^2.9.
|
|
45
|
+
"@blocklet/list": "^0.12.76",
|
|
46
|
+
"@blocklet/meta": "1.16.25-beta-e3dbef52",
|
|
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": "
|
|
109
|
+
"gitHead": "a740380dd98d1677f7da1233d753f28ea50f77ce",
|
|
110
110
|
"exports": {
|
|
111
111
|
".": {
|
|
112
112
|
"import": "./es/index.js",
|