@blocklet/payment-react 1.14.3 → 1.14.5
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/es/locales/en.js +2 -1
- package/es/locales/zh.js +2 -1
- package/es/payment/index.js +4 -1
- package/lib/locales/en.js +2 -1
- package/lib/locales/zh.js +2 -1
- package/lib/payment/index.js +1 -1
- package/package.json +3 -3
- package/src/locales/en.tsx +1 -0
- package/src/locales/zh.tsx +1 -0
- package/src/payment/index.tsx +4 -1
package/es/locales/en.js
CHANGED
|
@@ -273,7 +273,8 @@ export default flat({
|
|
|
273
273
|
current: "Current subscription",
|
|
274
274
|
viewAll: "View all",
|
|
275
275
|
empty: "There are no subscriptions here",
|
|
276
|
-
changePayment: "Change payment method"
|
|
276
|
+
changePayment: "Change payment method",
|
|
277
|
+
trialLeft: "Trail Left"
|
|
277
278
|
}
|
|
278
279
|
},
|
|
279
280
|
invoice: {
|
package/es/locales/zh.js
CHANGED
|
@@ -273,7 +273,8 @@ export default flat({
|
|
|
273
273
|
current: "\u5F53\u524D\u8BA2\u9605",
|
|
274
274
|
viewAll: "\u67E5\u770B\u6240\u6709",
|
|
275
275
|
empty: "\u6CA1\u6709\u4EFB\u4F55\u8BA2\u9605",
|
|
276
|
-
changePayment: "\u5207\u6362\u652F\u4ED8\u65B9\u5F0F"
|
|
276
|
+
changePayment: "\u5207\u6362\u652F\u4ED8\u65B9\u5F0F",
|
|
277
|
+
trialLeft: "\u5269\u4F59\u8BD5\u7528\u65F6\u957F"
|
|
277
278
|
}
|
|
278
279
|
},
|
|
279
280
|
invoice: {
|
package/es/payment/index.js
CHANGED
|
@@ -234,7 +234,10 @@ export function PaymentInner({
|
|
|
234
234
|
{
|
|
235
235
|
items: state.checkoutSession.line_items,
|
|
236
236
|
trialInDays: state.checkoutSession.subscription_data?.trial_period_days || 0,
|
|
237
|
-
billingThreshold:
|
|
237
|
+
billingThreshold: Math.max(
|
|
238
|
+
state.checkoutSession.subscription_data?.billing_threshold_amount || 0,
|
|
239
|
+
state.checkoutSession.subscription_data?.min_stake_amount || 0
|
|
240
|
+
),
|
|
238
241
|
showStaking: method.type === "arcblock",
|
|
239
242
|
currency,
|
|
240
243
|
onUpsell,
|
package/lib/locales/en.js
CHANGED
|
@@ -280,7 +280,8 @@ module.exports = (0, _flat.default)({
|
|
|
280
280
|
current: "Current subscription",
|
|
281
281
|
viewAll: "View all",
|
|
282
282
|
empty: "There are no subscriptions here",
|
|
283
|
-
changePayment: "Change payment method"
|
|
283
|
+
changePayment: "Change payment method",
|
|
284
|
+
trialLeft: "Trail Left"
|
|
284
285
|
}
|
|
285
286
|
},
|
|
286
287
|
invoice: {
|
package/lib/locales/zh.js
CHANGED
|
@@ -280,7 +280,8 @@ module.exports = (0, _flat.default)({
|
|
|
280
280
|
current: "\u5F53\u524D\u8BA2\u9605",
|
|
281
281
|
viewAll: "\u67E5\u770B\u6240\u6709",
|
|
282
282
|
empty: "\u6CA1\u6709\u4EFB\u4F55\u8BA2\u9605",
|
|
283
|
-
changePayment: "\u5207\u6362\u652F\u4ED8\u65B9\u5F0F"
|
|
283
|
+
changePayment: "\u5207\u6362\u652F\u4ED8\u65B9\u5F0F",
|
|
284
|
+
trialLeft: "\u5269\u4F59\u8BD5\u7528\u65F6\u957F"
|
|
284
285
|
}
|
|
285
286
|
},
|
|
286
287
|
invoice: {
|
package/lib/payment/index.js
CHANGED
|
@@ -311,7 +311,7 @@ function PaymentInner({
|
|
|
311
311
|
}) : null, /* @__PURE__ */(0, _jsxRuntime.jsx)(_summary.default, {
|
|
312
312
|
items: state.checkoutSession.line_items,
|
|
313
313
|
trialInDays: state.checkoutSession.subscription_data?.trial_period_days || 0,
|
|
314
|
-
billingThreshold: state.checkoutSession.subscription_data?.billing_threshold_amount || 0,
|
|
314
|
+
billingThreshold: Math.max(state.checkoutSession.subscription_data?.billing_threshold_amount || 0, state.checkoutSession.subscription_data?.min_stake_amount || 0),
|
|
315
315
|
showStaking: method.type === "arcblock",
|
|
316
316
|
currency,
|
|
317
317
|
onUpsell,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blocklet/payment-react",
|
|
3
|
-
"version": "1.14.
|
|
3
|
+
"version": "1.14.5",
|
|
4
4
|
"description": "Reusable react components for payment kit v2",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
"@babel/core": "^7.24.7",
|
|
92
92
|
"@babel/preset-env": "^7.24.7",
|
|
93
93
|
"@babel/preset-react": "^7.24.7",
|
|
94
|
-
"@blocklet/payment-types": "1.14.
|
|
94
|
+
"@blocklet/payment-types": "1.14.5",
|
|
95
95
|
"@storybook/addon-essentials": "^7.6.19",
|
|
96
96
|
"@storybook/addon-interactions": "^7.6.19",
|
|
97
97
|
"@storybook/addon-links": "^7.6.19",
|
|
@@ -120,5 +120,5 @@
|
|
|
120
120
|
"vite-plugin-babel": "^1.2.0",
|
|
121
121
|
"vite-plugin-node-polyfills": "^0.21.0"
|
|
122
122
|
},
|
|
123
|
-
"gitHead": "
|
|
123
|
+
"gitHead": "e4715805a87b2e4e3622564f4bc26578f19211e4"
|
|
124
124
|
}
|
package/src/locales/en.tsx
CHANGED
package/src/locales/zh.tsx
CHANGED
package/src/payment/index.tsx
CHANGED
|
@@ -280,7 +280,10 @@ export function PaymentInner({
|
|
|
280
280
|
<PaymentSummary
|
|
281
281
|
items={state.checkoutSession.line_items}
|
|
282
282
|
trialInDays={state.checkoutSession.subscription_data?.trial_period_days || 0}
|
|
283
|
-
billingThreshold={
|
|
283
|
+
billingThreshold={Math.max(
|
|
284
|
+
state.checkoutSession.subscription_data?.billing_threshold_amount || 0,
|
|
285
|
+
state.checkoutSession.subscription_data?.min_stake_amount || 0
|
|
286
|
+
)}
|
|
284
287
|
showStaking={method.type === 'arcblock'}
|
|
285
288
|
currency={currency}
|
|
286
289
|
onUpsell={onUpsell}
|