@blocklet/launcher-workflow 1.5.91 → 1.5.94

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/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);
@@ -302,6 +303,7 @@ function PurchasePage() {
302
303
  extraParams: getPurchaseParams(),
303
304
  webWalletUrl: (0, _utils.getWebWalletUrl)(),
304
305
  showDownload: false,
306
+ locale: locale,
305
307
  messages: {
306
308
  title: t('purchase.dialog.title'),
307
309
  scan: t('purchase.dialog.scan'),
package/lib/util.js CHANGED
@@ -22,7 +22,7 @@ const getLaunchBlockletUrl = (serverUrl, blockletMetaUrl, locale) => {
22
22
  return serverUrl;
23
23
  }
24
24
 
25
- let result = (0, _urlJoin.default)(serverUrl, "/launch-blocklet/install?blocklet_meta_url=".concat(encodeURIComponent(blockletMetaUrl), "&from=launcher"));
25
+ let result = (0, _urlJoin.default)(serverUrl, "/launch-blocklet/install?blocklet_meta_url=".concat(encodeURIComponent(blockletMetaUrl), "&from_launcher=true&from=").concat(encodeURIComponent(window.location.href)));
26
26
 
27
27
  if (locale) {
28
28
  result += "&locale=".concat(locale);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blocklet/launcher-workflow",
3
- "version": "1.5.91",
3
+ "version": "1.5.94",
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.91",
45
- "@blocklet/launcher-layout": "1.5.91",
40
+ "@arcblock/did-connect": "^1.16.69",
41
+ "@arcblock/icons": "^1.16.69",
42
+ "@arcblock/license": "^1.16.69",
43
+ "@arcblock/ux": "^1.16.69",
44
+ "@blocklet/launcher-constant": "1.5.94",
45
+ "@blocklet/launcher-layout": "1.5.94",
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.15.7",
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": "c69b447a2aacdf3ac5585a22b67ccc0abbb5bd07"
72
+ "gitHead": "39e880d5ebec10d57c7a894edc861ae103aebfad"
73
73
  }