@blocklet/launcher-ux 2.3.40 → 2.3.42
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.
|
@@ -29,7 +29,8 @@ export default function CheckoutOnDemand({
|
|
|
29
29
|
t,
|
|
30
30
|
locale,
|
|
31
31
|
freeTrialProducts,
|
|
32
|
-
minStakeAmount
|
|
32
|
+
minStakeAmount,
|
|
33
|
+
isResume
|
|
33
34
|
}) {
|
|
34
35
|
return /*#__PURE__*/_jsx(Box, {
|
|
35
36
|
sx: {
|
|
@@ -49,7 +50,8 @@ export default function CheckoutOnDemand({
|
|
|
49
50
|
t: t,
|
|
50
51
|
locale: locale,
|
|
51
52
|
freeTrialProducts: freeTrialProducts,
|
|
52
|
-
minStakeAmount: minStakeAmount
|
|
53
|
+
minStakeAmount: minStakeAmount,
|
|
54
|
+
isResume: isResume
|
|
53
55
|
})
|
|
54
56
|
})
|
|
55
57
|
});
|
|
@@ -64,10 +66,12 @@ const propTypes = {
|
|
|
64
66
|
api: PropTypes.object.isRequired,
|
|
65
67
|
checkoutPath: PropTypes.string.isRequired,
|
|
66
68
|
freeTrialProducts: PropTypes.array,
|
|
67
|
-
minStakeAmount: PropTypes.number.isRequired
|
|
69
|
+
minStakeAmount: PropTypes.number.isRequired,
|
|
70
|
+
isResume: PropTypes.bool
|
|
68
71
|
};
|
|
69
72
|
CheckoutOnDemand.defaultProps = {
|
|
70
|
-
freeTrialProducts: []
|
|
73
|
+
freeTrialProducts: [],
|
|
74
|
+
isResume: false
|
|
71
75
|
};
|
|
72
76
|
CheckoutOnDemand.propTypes = {
|
|
73
77
|
...propTypes,
|
|
@@ -86,7 +90,8 @@ function Component({
|
|
|
86
90
|
t,
|
|
87
91
|
locale,
|
|
88
92
|
freeTrialProducts,
|
|
89
|
-
minStakeAmount
|
|
93
|
+
minStakeAmount,
|
|
94
|
+
isResume
|
|
90
95
|
}) {
|
|
91
96
|
const {
|
|
92
97
|
getCurrency,
|
|
@@ -126,7 +131,8 @@ function Component({
|
|
|
126
131
|
const {
|
|
127
132
|
data
|
|
128
133
|
} = await api.post(checkoutPath, {
|
|
129
|
-
launchSessionId
|
|
134
|
+
launchSessionId,
|
|
135
|
+
isResume
|
|
130
136
|
});
|
|
131
137
|
return {
|
|
132
138
|
checkoutSessionId: data.checkoutSessionId,
|
|
@@ -42,7 +42,8 @@ function CheckoutOnDemand(_ref) {
|
|
|
42
42
|
t,
|
|
43
43
|
locale,
|
|
44
44
|
freeTrialProducts,
|
|
45
|
-
minStakeAmount
|
|
45
|
+
minStakeAmount,
|
|
46
|
+
isResume
|
|
46
47
|
} = _ref;
|
|
47
48
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Box.default, {
|
|
48
49
|
sx: {
|
|
@@ -62,7 +63,8 @@ function CheckoutOnDemand(_ref) {
|
|
|
62
63
|
t: t,
|
|
63
64
|
locale: locale,
|
|
64
65
|
freeTrialProducts: freeTrialProducts,
|
|
65
|
-
minStakeAmount: minStakeAmount
|
|
66
|
+
minStakeAmount: minStakeAmount,
|
|
67
|
+
isResume: isResume
|
|
66
68
|
})
|
|
67
69
|
})
|
|
68
70
|
});
|
|
@@ -77,10 +79,12 @@ const propTypes = {
|
|
|
77
79
|
api: _propTypes.default.object.isRequired,
|
|
78
80
|
checkoutPath: _propTypes.default.string.isRequired,
|
|
79
81
|
freeTrialProducts: _propTypes.default.array,
|
|
80
|
-
minStakeAmount: _propTypes.default.number.isRequired
|
|
82
|
+
minStakeAmount: _propTypes.default.number.isRequired,
|
|
83
|
+
isResume: _propTypes.default.bool
|
|
81
84
|
};
|
|
82
85
|
CheckoutOnDemand.defaultProps = {
|
|
83
|
-
freeTrialProducts: []
|
|
86
|
+
freeTrialProducts: [],
|
|
87
|
+
isResume: false
|
|
84
88
|
};
|
|
85
89
|
CheckoutOnDemand.propTypes = _objectSpread(_objectSpread({}, propTypes), {}, {
|
|
86
90
|
connectApi: _propTypes.default.func.isRequired,
|
|
@@ -99,7 +103,8 @@ function Component(_ref2) {
|
|
|
99
103
|
t,
|
|
100
104
|
locale,
|
|
101
105
|
freeTrialProducts,
|
|
102
|
-
minStakeAmount
|
|
106
|
+
minStakeAmount,
|
|
107
|
+
isResume
|
|
103
108
|
} = _ref2;
|
|
104
109
|
const {
|
|
105
110
|
getCurrency,
|
|
@@ -139,7 +144,8 @@ function Component(_ref2) {
|
|
|
139
144
|
const {
|
|
140
145
|
data
|
|
141
146
|
} = await api.post(checkoutPath, {
|
|
142
|
-
launchSessionId
|
|
147
|
+
launchSessionId,
|
|
148
|
+
isResume
|
|
143
149
|
});
|
|
144
150
|
return {
|
|
145
151
|
checkoutSessionId: data.checkoutSessionId,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blocklet/launcher-ux",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.42",
|
|
4
4
|
"description": "Launcher UX lib",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -53,9 +53,9 @@
|
|
|
53
53
|
"glob": "^10.4.5"
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
|
-
"@arcblock/ux": "^2.10.
|
|
57
|
-
"@blocklet/launcher-util": "2.3.
|
|
58
|
-
"@blocklet/payment-react": "^1.14.
|
|
56
|
+
"@arcblock/ux": "^2.10.14",
|
|
57
|
+
"@blocklet/launcher-util": "2.3.42",
|
|
58
|
+
"@blocklet/payment-react": "^1.14.21",
|
|
59
59
|
"@emotion/styled": "^11.13.0",
|
|
60
60
|
"@mui/icons-material": "^5.16.6",
|
|
61
61
|
"@mui/material": "^5.16.6",
|
|
@@ -93,5 +93,5 @@
|
|
|
93
93
|
"require": "./lib/use-mobile/index.js"
|
|
94
94
|
}
|
|
95
95
|
},
|
|
96
|
-
"gitHead": "
|
|
96
|
+
"gitHead": "4e99368cb90c35abd67210f31b1ea4e0504f7842"
|
|
97
97
|
}
|