@blocklet/launcher-workflow 2.1.39 → 2.1.40
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 +2 -2
- package/lib/components/plan.js +1 -1
- package/package.json +12 -12
package/lib/checkout.js
CHANGED
|
@@ -252,7 +252,7 @@ function CheckoutPage(_ref) {
|
|
|
252
252
|
if (!state.paymentMethod) {
|
|
253
253
|
return '';
|
|
254
254
|
}
|
|
255
|
-
const providerName = paymentMethods === null || paymentMethods === void 0
|
|
255
|
+
const providerName = paymentMethods === null || paymentMethods === void 0 || (_paymentMethods$find = paymentMethods.find(x => x._id === state.paymentMethod)) === null || _paymentMethods$find === void 0 ? void 0 : _paymentMethods$find.provider.name;
|
|
256
256
|
return (0, _util2.getPrice)(prices, providerName);
|
|
257
257
|
};
|
|
258
258
|
const toggleAgreement = () => setState({
|
|
@@ -409,7 +409,7 @@ function CheckoutPage(_ref) {
|
|
|
409
409
|
}), state.showPayment && /*#__PURE__*/(0, _jsxRuntime.jsx)(_payment.default, {
|
|
410
410
|
baseURL: didPayPrefix,
|
|
411
411
|
method: paymentMethod,
|
|
412
|
-
userDid: session === null || session === void 0
|
|
412
|
+
userDid: session === null || session === void 0 || (_session$user = session.user) === null || _session$user === void 0 ? void 0 : _session$user.did,
|
|
413
413
|
productId: state.planId,
|
|
414
414
|
useSocket: false,
|
|
415
415
|
onConnect: handleConnected,
|
package/lib/components/plan.js
CHANGED
|
@@ -300,7 +300,7 @@ function Plan(_ref2) {
|
|
|
300
300
|
children: content
|
|
301
301
|
});
|
|
302
302
|
}
|
|
303
|
-
const Container = _styled.default.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n display: flex;\n position: relative;\n align-items: center;\n flex-direction: column;\n border-radius: 12px;\n overflow: hidden;\n min-height: 400px;\n white-space: nowrap;\n padding: 16px;\n filter: grayscale(", ");\n opacity: ", ";\n\n .recommend-tag {\n display: block;\n position: absolute;\n top: 4px;\n right: 32px;\n color: #fff;\n padding: 4px 100px;\n position: absolute;\n transform: translate(50%, 50%) rotate(45deg);\n white-space: nowrap;\n background-color: #fe9344;\n transform-origin: center;\n }\n\n .toc__title {\n font-weight: bolder;\n align-items: flex-start;\n }\n\n &:not(.toc) {\n width: 280px;\n color: #000;\n background-color:
|
|
303
|
+
const Container = _styled.default.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n display: flex;\n position: relative;\n align-items: center;\n flex-direction: column;\n border-radius: 12px;\n overflow: hidden;\n min-height: 400px;\n white-space: nowrap;\n padding: 16px;\n filter: grayscale(", ");\n opacity: ", ";\n\n .recommend-tag {\n display: block;\n position: absolute;\n top: 4px;\n right: 32px;\n color: #fff;\n padding: 4px 100px;\n position: absolute;\n transform: translate(50%, 50%) rotate(45deg);\n white-space: nowrap;\n background-color: #fe9344;\n transform-origin: center;\n }\n\n .toc__title {\n font-weight: bolder;\n align-items: flex-start;\n }\n\n &:not(.toc) {\n width: 280px;\n color: #000;\n background-color: #f0fdff;\n cursor: pointer;\n }\n\n &:not(.toc, .checked):hover {\n color: #000;\n background-color: #ddf6f8;\n cursor: pointer;\n }\n\n &.checked {\n color: #fff;\n background-color: ", ";\n cursor: pointer;\n }\n\n .basic-toc {\n width: 100%;\n height: 8em;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: flex-start;\n\n .payment-methods {\n padding-top: 3em;\n font-size: 1.1em;\n font-weight: bolder;\n\n select {\n margin-left: 1em;\n }\n }\n }\n\n .basic {\n width: 100%;\n height: 8em;\n\n .header {\n text-align: center;\n .header__title {\n color: ", ";\n }\n\n .header__name {\n font-weight: bolder;\n }\n }\n\n .price-info {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n height: 6.5em;\n\n .price {\n font-size: 1.5em;\n font-weight: bolder;\n }\n\n .period {\n color: ", ";\n }\n }\n }\n\n .features {\n display: flex;\n flex-direction: column;\n width: 100%;\n margin-top: auto;\n\n .feature {\n display: flex;\n align-items: center;\n justify-content: center;\n height: 48px;\n text-align: center;\n\n // \u79FB\u52A8\u7AEF\u4E0D\u51CF\u5C0F\n @media (max-height: 960px) and (min-width: 640px) {\n height: 36px;\n font-size: 0.9rem;\n }\n\n @media (max-width: 900px) {\n justify-content: flex-start;\n }\n\n &:not(:last-child) {\n border-bottom: 1px solid;\n border-bottom-color: ", ";\n }\n }\n }\n"])), props => props.available ? 0 : 1, props => props.available ? 1 : 0.4, props => props.theme.palette.primary.main, props => props.checked ? '#ffffff' : '#9397a1', props => props.checked ? '#ffffff' : '#9397a1', props => props.checked || props.hovered ? 'rgba(255, 255, 255, 0.2)' : '#f6f6f6');
|
|
304
304
|
Plan.propTypes = {
|
|
305
305
|
plan: _propTypes.default.object.isRequired,
|
|
306
306
|
paymentMethod: _propTypes.default.string.isRequired,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blocklet/launcher-workflow",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.40",
|
|
4
4
|
"description": "Purchase components for Launcher UI",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -40,15 +40,15 @@
|
|
|
40
40
|
"@arcblock/license": "^2.5.58",
|
|
41
41
|
"@arcblock/react-hooks": "^2.5.58",
|
|
42
42
|
"@arcblock/ux": "^2.5.58",
|
|
43
|
-
"@blocklet/launcher-layout": "2.1.
|
|
44
|
-
"@blocklet/launcher-util": "2.1.
|
|
45
|
-
"@blocklet/launcher-ux": "2.1.
|
|
46
|
-
"@blocklet/payment": "^1.12.
|
|
43
|
+
"@blocklet/launcher-layout": "2.1.40",
|
|
44
|
+
"@blocklet/launcher-util": "2.1.40",
|
|
45
|
+
"@blocklet/launcher-ux": "2.1.40",
|
|
46
|
+
"@blocklet/payment": "^1.12.25",
|
|
47
47
|
"@emotion/react": "^11.11.1",
|
|
48
48
|
"@emotion/styled": "^11.11.0",
|
|
49
|
-
"@mui/icons-material": "^5.
|
|
50
|
-
"@mui/material": "^5.13.
|
|
51
|
-
"@ocap/util": "^1.18.
|
|
49
|
+
"@mui/icons-material": "^5.13.7",
|
|
50
|
+
"@mui/material": "^5.13.7",
|
|
51
|
+
"@ocap/util": "^1.18.85",
|
|
52
52
|
"@splidejs/react-splide": "^0.7.12",
|
|
53
53
|
"@splidejs/splide": "^4.1.4",
|
|
54
54
|
"@splidejs/splide-extension-grid": "^0.4.1",
|
|
@@ -69,12 +69,12 @@
|
|
|
69
69
|
"url-join": "^4.0.1"
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
72
|
-
"@babel/cli": "^7.22.
|
|
73
|
-
"@babel/core": "^7.22.
|
|
74
|
-
"@babel/preset-env": "^7.22.
|
|
72
|
+
"@babel/cli": "^7.22.6",
|
|
73
|
+
"@babel/core": "^7.22.6",
|
|
74
|
+
"@babel/preset-env": "^7.22.6",
|
|
75
75
|
"@babel/preset-react": "^7.22.5",
|
|
76
76
|
"babel-plugin-inline-react-svg": "^2.0.2",
|
|
77
77
|
"jest": "^27.5.1"
|
|
78
78
|
},
|
|
79
|
-
"gitHead": "
|
|
79
|
+
"gitHead": "b86d18cac27883b110a9fc3020a6cdc8ab9fe56e"
|
|
80
80
|
}
|