@blocklet/payment-react 1.20.0 → 1.20.2
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.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Project information for documentation publishing
|
|
2
2
|
projectName: "Payment Kit React Components"
|
|
3
3
|
projectDesc: "A React component library for building payment flows, subscriptions, and donation systems in blocklets, seamlessly integrated with Payment Kit."
|
|
4
|
-
projectLogo:
|
|
4
|
+
projectLogo: https://store.blocklet.dev/assets/z2qaCNvKMv5GjouKdcDWexv6WqtHbpNPQDnAk/logo.png
|
|
5
5
|
|
|
6
6
|
# =============================================================================
|
|
7
7
|
# Documentation Configuration
|
package/es/libs/util.d.ts
CHANGED
|
@@ -36,7 +36,7 @@ export declare function getWebhookStatusColor(status: string): "default" | "succ
|
|
|
36
36
|
export declare function getCheckoutAmount(items: TLineItemExpanded[], currency: TPaymentCurrency, trialing?: boolean, upsell?: boolean): {
|
|
37
37
|
subtotal: any;
|
|
38
38
|
total: any;
|
|
39
|
-
renew:
|
|
39
|
+
renew: string;
|
|
40
40
|
discount: string;
|
|
41
41
|
shipping: string;
|
|
42
42
|
tax: string;
|
package/es/payment/summary.js
CHANGED
|
@@ -306,7 +306,7 @@ export default function PaymentSummary({
|
|
|
306
306
|
/* @__PURE__ */ jsx(Collapse, { in: state.expanded || !isMobile, timeout: "auto", unmountOnExit: true, children: ProductCardList })
|
|
307
307
|
] }) : ProductCardList,
|
|
308
308
|
/* @__PURE__ */ jsx(Divider, { sx: { mt: 2.5, mb: 2.5 } }),
|
|
309
|
-
staking > 0 && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
309
|
+
+staking > 0 && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
310
310
|
/* @__PURE__ */ jsxs(
|
|
311
311
|
Stack,
|
|
312
312
|
{
|
package/lib/libs/util.d.ts
CHANGED
|
@@ -36,7 +36,7 @@ export declare function getWebhookStatusColor(status: string): "default" | "succ
|
|
|
36
36
|
export declare function getCheckoutAmount(items: TLineItemExpanded[], currency: TPaymentCurrency, trialing?: boolean, upsell?: boolean): {
|
|
37
37
|
subtotal: any;
|
|
38
38
|
total: any;
|
|
39
|
-
renew:
|
|
39
|
+
renew: string;
|
|
40
40
|
discount: string;
|
|
41
41
|
shipping: string;
|
|
42
42
|
tax: string;
|
package/lib/payment/summary.js
CHANGED
|
@@ -331,7 +331,7 @@ function PaymentSummary({
|
|
|
331
331
|
mt: 2.5,
|
|
332
332
|
mb: 2.5
|
|
333
333
|
}
|
|
334
|
-
}), staking > 0 && /* @__PURE__ */(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
334
|
+
}), +staking > 0 && /* @__PURE__ */(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
335
335
|
children: [/* @__PURE__ */(0, _jsxRuntime.jsxs)(_material.Stack, {
|
|
336
336
|
direction: "row",
|
|
337
337
|
spacing: 1,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blocklet/payment-react",
|
|
3
|
-
"version": "1.20.
|
|
3
|
+
"version": "1.20.2",
|
|
4
4
|
"description": "Reusable react components for payment kit v2",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -54,16 +54,16 @@
|
|
|
54
54
|
}
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {
|
|
57
|
-
"@arcblock/did-connect-react": "^3.1.
|
|
58
|
-
"@arcblock/ux": "^3.1.
|
|
59
|
-
"@arcblock/ws": "^1.24.
|
|
60
|
-
"@blocklet/theme": "^3.1.
|
|
61
|
-
"@blocklet/ui-react": "^3.1.
|
|
57
|
+
"@arcblock/did-connect-react": "^3.1.33",
|
|
58
|
+
"@arcblock/ux": "^3.1.33",
|
|
59
|
+
"@arcblock/ws": "^1.24.7",
|
|
60
|
+
"@blocklet/theme": "^3.1.33",
|
|
61
|
+
"@blocklet/ui-react": "^3.1.33",
|
|
62
62
|
"@mui/icons-material": "^7.1.2",
|
|
63
63
|
"@mui/lab": "7.0.0-beta.14",
|
|
64
64
|
"@mui/material": "^7.1.2",
|
|
65
65
|
"@mui/system": "^7.1.1",
|
|
66
|
-
"@ocap/util": "^1.24.
|
|
66
|
+
"@ocap/util": "^1.24.7",
|
|
67
67
|
"@stripe/react-stripe-js": "^2.9.0",
|
|
68
68
|
"@stripe/stripe-js": "^2.4.0",
|
|
69
69
|
"@vitejs/plugin-legacy": "^7.0.0",
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
"@babel/core": "^7.27.4",
|
|
95
95
|
"@babel/preset-env": "^7.27.2",
|
|
96
96
|
"@babel/preset-react": "^7.27.1",
|
|
97
|
-
"@blocklet/payment-types": "1.20.
|
|
97
|
+
"@blocklet/payment-types": "1.20.2",
|
|
98
98
|
"@storybook/addon-essentials": "^7.6.20",
|
|
99
99
|
"@storybook/addon-interactions": "^7.6.20",
|
|
100
100
|
"@storybook/addon-links": "^7.6.20",
|
|
@@ -125,5 +125,5 @@
|
|
|
125
125
|
"vite-plugin-babel": "^1.3.1",
|
|
126
126
|
"vite-plugin-node-polyfills": "^0.23.0"
|
|
127
127
|
},
|
|
128
|
-
"gitHead": "
|
|
128
|
+
"gitHead": "36e05d39564b602937f83a3b5ab74b3befc1d8cc"
|
|
129
129
|
}
|
package/src/libs/util.ts
CHANGED
|
@@ -1047,6 +1047,7 @@ export function formatTotalPrice({
|
|
|
1047
1047
|
totalAmount: '0',
|
|
1048
1048
|
};
|
|
1049
1049
|
}
|
|
1050
|
+
// @ts-expect-error 这里有问题
|
|
1050
1051
|
const unitValue = new BN(price.custom_unit_amount || price.unit_amount);
|
|
1051
1052
|
const currency: TPaymentCurrency = price?.currency ?? {};
|
|
1052
1053
|
|
package/src/payment/summary.tsx
CHANGED