@blocklet/payment-react 1.20.1 → 1.20.3

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: string;
39
+ renew: any;
40
40
  discount: string;
41
41
  shipping: string;
42
42
  tax: string;
@@ -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: string;
39
+ renew: any;
40
40
  discount: string;
41
41
  shipping: string;
42
42
  tax: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blocklet/payment-react",
3
- "version": "1.20.1",
3
+ "version": "1.20.3",
4
4
  "description": "Reusable react components for payment kit v2",
5
5
  "keywords": [
6
6
  "react",
@@ -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.1",
97
+ "@blocklet/payment-types": "1.20.3",
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": "7b2ae13171bfff930083efd2b93974a8fa403de1"
128
+ "gitHead": "984217214ef0b3c3dcfbfcbeb68d7cbab69b750b"
129
129
  }
package/src/libs/util.ts CHANGED
@@ -1047,7 +1047,7 @@ export function formatTotalPrice({
1047
1047
  totalAmount: '0',
1048
1048
  };
1049
1049
  }
1050
- // @ts-expect-error 这里有问题
1050
+
1051
1051
  const unitValue = new BN(price.custom_unit_amount || price.unit_amount);
1052
1052
  const currency: TPaymentCurrency = price?.currency ?? {};
1053
1053