@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.
@@ -12,6 +12,7 @@ export default function usePassportId() {
12
12
  };
13
13
  return {
14
14
  getPassportId,
15
- setPassportId
15
+ setPassportId,
16
+ clearPassportId
16
17
  };
17
18
  }
@@ -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(DidConnect, {
98
- className: "connect",
99
- action: "issue-passport",
100
- forceConnected: false,
101
- autoConnect: false,
102
- checkFn: api.get,
103
- checkTimeout: 10 * 60 * 1000,
104
- webWalletUrl: webWalletUrl,
105
- onSuccess: onReceivePassport,
106
- locale: locale,
107
- messages: {
108
- title: t('issuePassport.title'),
109
- scan: t('issuePassport.description', {
110
- name: window.env.appName
111
- }),
112
- confirm: t('issuePassport.dialog.confirm'),
113
- success: t('issuePassport.dialog.success')
114
- },
115
- extraParams: extraParams
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
  }
@@ -18,6 +18,7 @@ function usePassportId() {
18
18
  };
19
19
  return {
20
20
  getPassportId,
21
- setPassportId
21
+ setPassportId,
22
+ clearPassportId
22
23
  };
23
24
  }
@@ -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)(_Connect.default, {
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
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-93c6e42b",
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-93c6e42b",
31
- "@abtnode/constant": "1.16.21-beta-93c6e42b",
32
- "@abtnode/util": "1.16.21-beta-93c6e42b",
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.107",
35
- "@arcblock/did-connect": "^2.8.23",
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.8.23",
38
- "@arcblock/nft-display": "2.8.23",
39
- "@arcblock/react-hooks": "^2.8.23",
40
- "@arcblock/terminal": "^2.8.23",
41
- "@arcblock/ux": "^2.8.23",
42
- "@blocklet/constant": "1.16.21-beta-93c6e42b",
43
- "@blocklet/launcher-layout": "2.2.48",
44
- "@blocklet/list": "^0.12.60",
45
- "@blocklet/meta": "1.16.21-beta-93c6e42b",
46
- "@blocklet/ui-react": "^2.8.23",
47
- "@blocklet/uploader": "^0.0.56",
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.107",
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": "80619ce49f5a9224d3d817e5faea4422072b0553",
105
+ "gitHead": "1fca0b58e1ed4f7a9bb268829a7c84290a01c89d",
106
106
  "exports": {
107
107
  ".": {
108
108
  "import": "./es/index.js",