@abtnode/ux 1.16.21-beta-93c6e42b → 1.16.21-beta-2e75c75c
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/es/hooks/use-passport-id.js +2 -1
- package/es/issue-passport.js +30 -19
- package/lib/hooks/use-passport-id.js +2 -1
- package/lib/issue-passport.js +31 -19
- package/package.json +19 -19
package/es/issue-passport.js
CHANGED
|
@@ -8,6 +8,7 @@ import Box from '@mui/material/Box';
|
|
|
8
8
|
import Center from '@arcblock/ux/lib/Center';
|
|
9
9
|
import Button from '@arcblock/ux/lib/Button';
|
|
10
10
|
import DidConnect from '@arcblock/did-connect/lib/Connect';
|
|
11
|
+
import Fullpage from '@arcblock/did-connect/lib/Connect/fullpage';
|
|
11
12
|
import { LocaleContext } from '@arcblock/ux/lib/Locale/context';
|
|
12
13
|
import { WELLKNOWN_SERVICE_PATH_PREFIX } from '@abtnode/constant';
|
|
13
14
|
import wrapLocale from './wrap-locale';
|
|
@@ -94,25 +95,35 @@ function IssuePassport({
|
|
|
94
95
|
})]
|
|
95
96
|
})
|
|
96
97
|
})
|
|
97
|
-
}) : /*#__PURE__*/_jsx(
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
98
|
+
}) : /*#__PURE__*/_jsx(Fullpage, {
|
|
99
|
+
did: window?.blocklet?.appPid || window?.env?.appPid,
|
|
100
|
+
children: /*#__PURE__*/_jsx(Box, {
|
|
101
|
+
sx: {
|
|
102
|
+
width: '560px',
|
|
103
|
+
maxWidth: '100%',
|
|
104
|
+
height: '100%'
|
|
105
|
+
},
|
|
106
|
+
children: /*#__PURE__*/_jsx(DidConnect, {
|
|
107
|
+
className: "connect",
|
|
108
|
+
action: "issue-passport",
|
|
109
|
+
forceConnected: false,
|
|
110
|
+
autoConnect: false,
|
|
111
|
+
checkFn: api.get,
|
|
112
|
+
checkTimeout: 10 * 60 * 1000,
|
|
113
|
+
webWalletUrl: webWalletUrl,
|
|
114
|
+
onSuccess: onReceivePassport,
|
|
115
|
+
locale: locale,
|
|
116
|
+
messages: {
|
|
117
|
+
title: t('issuePassport.title'),
|
|
118
|
+
scan: t('issuePassport.description', {
|
|
119
|
+
name: window.env.appName
|
|
120
|
+
}),
|
|
121
|
+
confirm: t('issuePassport.dialog.confirm'),
|
|
122
|
+
success: t('issuePassport.dialog.success')
|
|
123
|
+
},
|
|
124
|
+
extraParams: extraParams
|
|
125
|
+
})
|
|
126
|
+
})
|
|
116
127
|
})
|
|
117
128
|
});
|
|
118
129
|
}
|
package/lib/issue-passport.js
CHANGED
|
@@ -13,6 +13,7 @@ var _Box = _interopRequireDefault(require("@mui/material/Box"));
|
|
|
13
13
|
var _Center = _interopRequireDefault(require("@arcblock/ux/lib/Center"));
|
|
14
14
|
var _Button = _interopRequireDefault(require("@arcblock/ux/lib/Button"));
|
|
15
15
|
var _Connect = _interopRequireDefault(require("@arcblock/did-connect/lib/Connect"));
|
|
16
|
+
var _fullpage = _interopRequireDefault(require("@arcblock/did-connect/lib/Connect/fullpage"));
|
|
16
17
|
var _context = require("@arcblock/ux/lib/Locale/context");
|
|
17
18
|
var _constant = require("@abtnode/constant");
|
|
18
19
|
var _wrapLocale = _interopRequireDefault(require("./wrap-locale"));
|
|
@@ -24,6 +25,7 @@ var _templateObject;
|
|
|
24
25
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
25
26
|
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
26
27
|
function IssuePassport(_ref) {
|
|
28
|
+
var _window, _window$blocklet, _window2, _window2$env;
|
|
27
29
|
let {
|
|
28
30
|
SessionContext,
|
|
29
31
|
webWalletUrl
|
|
@@ -103,25 +105,35 @@ function IssuePassport(_ref) {
|
|
|
103
105
|
})]
|
|
104
106
|
})
|
|
105
107
|
})
|
|
106
|
-
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
108
|
+
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_fullpage.default, {
|
|
109
|
+
did: ((_window = window) === null || _window === void 0 ? void 0 : (_window$blocklet = _window.blocklet) === null || _window$blocklet === void 0 ? void 0 : _window$blocklet.appPid) || ((_window2 = window) === null || _window2 === void 0 ? void 0 : (_window2$env = _window2.env) === null || _window2$env === void 0 ? void 0 : _window2$env.appPid),
|
|
110
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Box.default, {
|
|
111
|
+
sx: {
|
|
112
|
+
width: '560px',
|
|
113
|
+
maxWidth: '100%',
|
|
114
|
+
height: '100%'
|
|
115
|
+
},
|
|
116
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Connect.default, {
|
|
117
|
+
className: "connect",
|
|
118
|
+
action: "issue-passport",
|
|
119
|
+
forceConnected: false,
|
|
120
|
+
autoConnect: false,
|
|
121
|
+
checkFn: api.get,
|
|
122
|
+
checkTimeout: 10 * 60 * 1000,
|
|
123
|
+
webWalletUrl: webWalletUrl,
|
|
124
|
+
onSuccess: onReceivePassport,
|
|
125
|
+
locale: locale,
|
|
126
|
+
messages: {
|
|
127
|
+
title: t('issuePassport.title'),
|
|
128
|
+
scan: t('issuePassport.description', {
|
|
129
|
+
name: window.env.appName
|
|
130
|
+
}),
|
|
131
|
+
confirm: t('issuePassport.dialog.confirm'),
|
|
132
|
+
success: t('issuePassport.dialog.success')
|
|
133
|
+
},
|
|
134
|
+
extraParams: extraParams
|
|
135
|
+
})
|
|
136
|
+
})
|
|
125
137
|
})
|
|
126
138
|
});
|
|
127
139
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abtnode/ux",
|
|
3
|
-
"version": "1.16.21-beta-
|
|
3
|
+
"version": "1.16.21-beta-2e75c75c",
|
|
4
4
|
"description": "UX components shared across abtnode packages",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -27,24 +27,24 @@
|
|
|
27
27
|
"author": "linchen <linchen1987@foxmail.com> (http://github.com/linchen1987)",
|
|
28
28
|
"license": "Apache-2.0",
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@abtnode/auth": "1.16.21-beta-
|
|
31
|
-
"@abtnode/constant": "1.16.21-beta-
|
|
32
|
-
"@abtnode/util": "1.16.21-beta-
|
|
30
|
+
"@abtnode/auth": "1.16.21-beta-2e75c75c",
|
|
31
|
+
"@abtnode/constant": "1.16.21-beta-2e75c75c",
|
|
32
|
+
"@abtnode/util": "1.16.21-beta-2e75c75c",
|
|
33
33
|
"@ahooksjs/use-url-state": "^3.5.1",
|
|
34
|
-
"@arcblock/did": "^1.18.
|
|
35
|
-
"@arcblock/did-connect": "^2.
|
|
34
|
+
"@arcblock/did": "^1.18.108",
|
|
35
|
+
"@arcblock/did-connect": "^2.9.1",
|
|
36
36
|
"@arcblock/did-motif": "^1.1.13",
|
|
37
|
-
"@arcblock/icons": "^2.
|
|
38
|
-
"@arcblock/nft-display": "2.
|
|
39
|
-
"@arcblock/react-hooks": "^2.
|
|
40
|
-
"@arcblock/terminal": "^2.
|
|
41
|
-
"@arcblock/ux": "^2.
|
|
42
|
-
"@blocklet/constant": "1.16.21-beta-
|
|
43
|
-
"@blocklet/launcher-layout": "2.2.
|
|
44
|
-
"@blocklet/list": "^0.12.
|
|
45
|
-
"@blocklet/meta": "1.16.21-beta-
|
|
46
|
-
"@blocklet/ui-react": "^2.
|
|
47
|
-
"@blocklet/uploader": "^0.0.
|
|
37
|
+
"@arcblock/icons": "^2.9.1",
|
|
38
|
+
"@arcblock/nft-display": "2.9.1",
|
|
39
|
+
"@arcblock/react-hooks": "^2.9.1",
|
|
40
|
+
"@arcblock/terminal": "^2.9.1",
|
|
41
|
+
"@arcblock/ux": "^2.9.1",
|
|
42
|
+
"@blocklet/constant": "1.16.21-beta-2e75c75c",
|
|
43
|
+
"@blocklet/launcher-layout": "2.2.50",
|
|
44
|
+
"@blocklet/list": "^0.12.62",
|
|
45
|
+
"@blocklet/meta": "1.16.21-beta-2e75c75c",
|
|
46
|
+
"@blocklet/ui-react": "^2.9.1",
|
|
47
|
+
"@blocklet/uploader": "^0.0.59",
|
|
48
48
|
"@emotion/react": "^11.10.4",
|
|
49
49
|
"@emotion/styled": "^11.10.4",
|
|
50
50
|
"@iconify/react": "^4.0.0",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"@mui/material": "^5.14.10",
|
|
55
55
|
"@mui/styles": "^5.14.10",
|
|
56
56
|
"@mui/x-date-pickers": "^6.14.0",
|
|
57
|
-
"@ocap/client": "1.18.
|
|
57
|
+
"@ocap/client": "1.18.108",
|
|
58
58
|
"@uiw/react-markdown-preview": "4.0.6",
|
|
59
59
|
"ahooks": "^3.7.1",
|
|
60
60
|
"axios": "^0.27.2",
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
"babel-plugin-inline-react-svg": "^1.1.2",
|
|
103
103
|
"glob": "^10.3.3"
|
|
104
104
|
},
|
|
105
|
-
"gitHead": "
|
|
105
|
+
"gitHead": "1fca0b58e1ed4f7a9bb268829a7c84290a01c89d",
|
|
106
106
|
"exports": {
|
|
107
107
|
".": {
|
|
108
108
|
"import": "./es/index.js",
|