@blocklet/payment-react 1.15.36 → 1.16.1
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/components/pricing-table.js +2 -1
- package/es/libs/util.js +2 -1
- package/es/locales/en.js +2 -2
- package/lib/components/pricing-table.js +2 -1
- package/lib/libs/util.js +2 -1
- package/lib/locales/en.js +2 -2
- package/package.json +3 -3
- package/src/components/pricing-table.tsx +1 -0
- package/src/libs/util.ts +1 -0
- package/src/locales/en.tsx +2 -2
package/es/libs/util.js
CHANGED
|
@@ -881,7 +881,8 @@ export function getInvoiceDescriptionAndReason(invoice, locale = "en") {
|
|
|
881
881
|
"Stake for subscription payment change": t("payment.invoice.reason.stakeForChangePayment", locale),
|
|
882
882
|
"Stake for subscription": t("payment.invoice.reason.staking", locale),
|
|
883
883
|
"Return Subscription staking": t("payment.invoice.reason.returnStake", locale),
|
|
884
|
-
"Recharge for subscription": t("payment.invoice.reason.rechargeForSubscription", locale)
|
|
884
|
+
"Recharge for subscription": t("payment.invoice.reason.rechargeForSubscription", locale),
|
|
885
|
+
"Add funds for subscription": t("payment.invoice.reason.rechargeForSubscription", locale)
|
|
885
886
|
};
|
|
886
887
|
return {
|
|
887
888
|
description: descMap[description] || description,
|
package/es/locales/en.js
CHANGED
|
@@ -313,8 +313,8 @@ export default flat({
|
|
|
313
313
|
returnStake: "Return stake",
|
|
314
314
|
stakeForChangePlan: "Subscription plan update",
|
|
315
315
|
stakeForChangePayment: "Subscription payment method update",
|
|
316
|
-
recharge: "
|
|
317
|
-
rechargeForSubscription: "
|
|
316
|
+
recharge: "Add funds",
|
|
317
|
+
rechargeForSubscription: "Add funds for subscription"
|
|
318
318
|
}
|
|
319
319
|
}
|
|
320
320
|
},
|
|
@@ -385,7 +385,8 @@ function PricingTable({
|
|
|
385
385
|
display: "flex",
|
|
386
386
|
alignItems: "baseline",
|
|
387
387
|
gap: "4px",
|
|
388
|
-
flexWrap: "wrap"
|
|
388
|
+
flexWrap: "wrap",
|
|
389
|
+
lineHeight: "normal"
|
|
389
390
|
},
|
|
390
391
|
children: [amount, unit ? /* @__PURE__ */(0, _jsxRuntime.jsxs)(_material.Typography, {
|
|
391
392
|
sx: {
|
package/lib/libs/util.js
CHANGED
|
@@ -1064,7 +1064,8 @@ function getInvoiceDescriptionAndReason(invoice, locale = "en") {
|
|
|
1064
1064
|
"Stake for subscription payment change": (0, _locales.t)("payment.invoice.reason.stakeForChangePayment", locale),
|
|
1065
1065
|
"Stake for subscription": (0, _locales.t)("payment.invoice.reason.staking", locale),
|
|
1066
1066
|
"Return Subscription staking": (0, _locales.t)("payment.invoice.reason.returnStake", locale),
|
|
1067
|
-
"Recharge for subscription": (0, _locales.t)("payment.invoice.reason.rechargeForSubscription", locale)
|
|
1067
|
+
"Recharge for subscription": (0, _locales.t)("payment.invoice.reason.rechargeForSubscription", locale),
|
|
1068
|
+
"Add funds for subscription": (0, _locales.t)("payment.invoice.reason.rechargeForSubscription", locale)
|
|
1068
1069
|
};
|
|
1069
1070
|
return {
|
|
1070
1071
|
description: descMap[description] || description,
|
package/lib/locales/en.js
CHANGED
|
@@ -320,8 +320,8 @@ module.exports = (0, _flat.default)({
|
|
|
320
320
|
returnStake: "Return stake",
|
|
321
321
|
stakeForChangePlan: "Subscription plan update",
|
|
322
322
|
stakeForChangePayment: "Subscription payment method update",
|
|
323
|
-
recharge: "
|
|
324
|
-
rechargeForSubscription: "
|
|
323
|
+
recharge: "Add funds",
|
|
324
|
+
rechargeForSubscription: "Add funds for subscription"
|
|
325
325
|
}
|
|
326
326
|
}
|
|
327
327
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blocklet/payment-react",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.16.1",
|
|
4
4
|
"description": "Reusable react components for payment kit v2",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
"@babel/core": "^7.25.2",
|
|
93
93
|
"@babel/preset-env": "^7.25.2",
|
|
94
94
|
"@babel/preset-react": "^7.24.7",
|
|
95
|
-
"@blocklet/payment-types": "1.
|
|
95
|
+
"@blocklet/payment-types": "1.16.1",
|
|
96
96
|
"@storybook/addon-essentials": "^7.6.20",
|
|
97
97
|
"@storybook/addon-interactions": "^7.6.20",
|
|
98
98
|
"@storybook/addon-links": "^7.6.20",
|
|
@@ -122,5 +122,5 @@
|
|
|
122
122
|
"vite-plugin-babel": "^1.2.0",
|
|
123
123
|
"vite-plugin-node-polyfills": "^0.21.0"
|
|
124
124
|
},
|
|
125
|
-
"gitHead": "
|
|
125
|
+
"gitHead": "590597d056e31eafd2b8ebd2a9d0a0c236c33440"
|
|
126
126
|
}
|
package/src/libs/util.ts
CHANGED
|
@@ -1140,6 +1140,7 @@ export function getInvoiceDescriptionAndReason(invoice: TInvoiceExpanded, locale
|
|
|
1140
1140
|
'Stake for subscription': t('payment.invoice.reason.staking', locale),
|
|
1141
1141
|
'Return Subscription staking': t('payment.invoice.reason.returnStake', locale),
|
|
1142
1142
|
'Recharge for subscription': t('payment.invoice.reason.rechargeForSubscription', locale),
|
|
1143
|
+
'Add funds for subscription': t('payment.invoice.reason.rechargeForSubscription', locale),
|
|
1143
1144
|
};
|
|
1144
1145
|
|
|
1145
1146
|
return {
|
package/src/locales/en.tsx
CHANGED
|
@@ -326,8 +326,8 @@ export default flat({
|
|
|
326
326
|
returnStake: 'Return stake',
|
|
327
327
|
stakeForChangePlan: 'Subscription plan update',
|
|
328
328
|
stakeForChangePayment: 'Subscription payment method update',
|
|
329
|
-
recharge: '
|
|
330
|
-
rechargeForSubscription: '
|
|
329
|
+
recharge: 'Add funds',
|
|
330
|
+
rechargeForSubscription: 'Add funds for subscription',
|
|
331
331
|
},
|
|
332
332
|
},
|
|
333
333
|
},
|