@blocklet/launcher-workflow 2.1.7 → 2.1.8

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/checkout.js CHANGED
@@ -394,7 +394,7 @@ function CheckoutPage(_ref) {
394
394
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_button.default, {
395
395
  loading: state.paying,
396
396
  className: "button-pay",
397
- disabled: state.paying || state.showPayment || !state.planId || !state.sessionId || !state.paymentMethod,
397
+ disabled: state.paying || state.showPayment || !state.planId || !state.paymentMethod,
398
398
  variant: "contained",
399
399
  onClick: handlePay,
400
400
  children: t('common.pay')
package/lib/purchase.js CHANGED
@@ -473,8 +473,8 @@ function PurchasePage(_ref) {
473
473
  })
474
474
  })
475
475
  })
476
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Connect.default, {
477
- open: state.showRedeem,
476
+ }), state.showRedeem && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Connect.default, {
477
+ open: true,
478
478
  popup: true,
479
479
  useSocket: false,
480
480
  locale: locale,
@@ -488,6 +488,7 @@ function PurchasePage(_ref) {
488
488
  checkTimeout: 60 * 5000,
489
489
  showDownload: false,
490
490
  extraParams: {
491
+ planId: state.planId || state.plans[0]._id,
491
492
  sessionId: state.sessionId
492
493
  },
493
494
  messages: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blocklet/launcher-workflow",
3
- "version": "2.1.7",
3
+ "version": "2.1.8",
4
4
  "description": "Purchase components for Launcher UI",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -40,10 +40,10 @@
40
40
  "@arcblock/license": "^2.5.48",
41
41
  "@arcblock/react-hooks": "^2.5.48",
42
42
  "@arcblock/ux": "^2.5.48",
43
- "@blocklet/launcher-layout": "2.1.7",
44
- "@blocklet/launcher-util": "2.1.7",
45
- "@blocklet/launcher-ux": "2.1.7",
46
- "@blocklet/payment": "^1.12.4",
43
+ "@blocklet/launcher-layout": "2.1.8",
44
+ "@blocklet/launcher-util": "2.1.8",
45
+ "@blocklet/launcher-ux": "2.1.8",
46
+ "@blocklet/payment": "^1.12.5",
47
47
  "@emotion/react": "^11.11.0",
48
48
  "@emotion/styled": "^11.11.0",
49
49
  "@mui/icons-material": "^5.11.16",
@@ -75,5 +75,5 @@
75
75
  "babel-plugin-inline-react-svg": "^2.0.2",
76
76
  "jest": "^27.5.1"
77
77
  },
78
- "gitHead": "49ba245e679952c38a172fa3babe1342c8c78eac"
78
+ "gitHead": "abcdcb5793393d11c97d4bb70423f47c9ba9b048"
79
79
  }