@blocklet/launcher-workflow 1.5.92 → 1.5.95

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.
Files changed (2) hide show
  1. package/lib/purchase.js +7 -3
  2. package/package.json +9 -9
package/lib/purchase.js CHANGED
@@ -87,7 +87,8 @@ function PurchasePage() {
87
87
  session
88
88
  } = (0, _session.useSessionContext)();
89
89
  const {
90
- t
90
+ t,
91
+ locale
91
92
  } = (0, _locale.useLocaleContext)();
92
93
  const [paying, setPaying] = (0, _react.useState)(false);
93
94
  const [paymentInfo, setPaymentInfo] = (0, _react.useState)(null);
@@ -160,13 +161,15 @@ function PurchasePage() {
160
161
  plans
161
162
  } = plansState.value;
162
163
 
163
- const handlePaid = _ref => {
164
+ const handlePaid = (_ref, decrypt) => {
164
165
  let {
165
166
  nftId,
166
167
  launchToken
167
168
  } = _ref;
168
169
 
169
- _jsCookie.default.set('launch-token', launchToken);
170
+ if (launchToken) {
171
+ _jsCookie.default.set('launch-token', decrypt(launchToken));
172
+ }
170
173
 
171
174
  const url = "/prepare/".concat(nftId).concat(window.location.search);
172
175
  history.push((0, _router.default)(routerPrefix, url));
@@ -302,6 +305,7 @@ function PurchasePage() {
302
305
  extraParams: getPurchaseParams(),
303
306
  webWalletUrl: (0, _utils.getWebWalletUrl)(),
304
307
  showDownload: false,
308
+ locale: locale,
305
309
  messages: {
306
310
  title: t('purchase.dialog.title'),
307
311
  scan: t('purchase.dialog.scan'),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blocklet/launcher-workflow",
3
- "version": "1.5.92",
3
+ "version": "1.5.95",
4
4
  "description": "Purchase components for Launcher UI",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -37,16 +37,16 @@
37
37
  "react": ">=16.12.0"
38
38
  },
39
39
  "dependencies": {
40
- "@arcblock/did-connect": "^1.16.67",
41
- "@arcblock/icons": "^1.16.67",
42
- "@arcblock/license": "^1.16.67",
43
- "@arcblock/ux": "^1.16.67",
44
- "@blocklet/launcher-constant": "1.5.92",
45
- "@blocklet/launcher-layout": "1.5.92",
40
+ "@arcblock/did-connect": "^1.17.0",
41
+ "@arcblock/icons": "^1.17.0",
42
+ "@arcblock/license": "^1.17.0",
43
+ "@arcblock/ux": "^1.17.0",
44
+ "@blocklet/launcher-constant": "1.5.95",
45
+ "@blocklet/launcher-layout": "1.5.95",
46
46
  "@material-ui/core": "^4.12.3",
47
47
  "@material-ui/icons": "^4.11.2",
48
48
  "@material-ui/lab": "^4.0.0-alpha.60",
49
- "@ocap/util": "^1.15.5",
49
+ "@ocap/util": "^1.16.0",
50
50
  "@stripe/react-stripe-js": "^1.7.0",
51
51
  "@stripe/stripe-js": "^1.22.0",
52
52
  "@styled-icons/remix-fill": "^10.18.0",
@@ -69,5 +69,5 @@
69
69
  "babel-plugin-inline-react-svg": "^2.0.1",
70
70
  "babel-plugin-styled-components": "^1.10.7"
71
71
  },
72
- "gitHead": "7f8786ddeec49da7f356d22c3fbebbab9fce7c8d"
72
+ "gitHead": "2a7231ae12fbe4eea550fba65d25676d20a5ceab"
73
73
  }