@blocklet/payment-react 1.15.21 → 1.15.23
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/checkout/table.js +2 -1
- package/lib/checkout/table.js +3 -1
- package/package.json +3 -3
- package/src/checkout/table.tsx +2 -1
package/es/checkout/table.js
CHANGED
|
@@ -22,7 +22,7 @@ const ensureProtocol = (url) => {
|
|
|
22
22
|
}
|
|
23
23
|
return url;
|
|
24
24
|
};
|
|
25
|
-
function CheckoutTableInner({ id, mode, onPaid, onError, onChange, extraParams, goBack }) {
|
|
25
|
+
function CheckoutTableInner({ id, mode, onPaid, onError, onChange, extraParams, goBack, theme }) {
|
|
26
26
|
if (!id.startsWith("prctbl_")) {
|
|
27
27
|
throw new Error("A valid pricing table id is required.");
|
|
28
28
|
}
|
|
@@ -134,6 +134,7 @@ function CheckoutTableInner({ id, mode, onPaid, onError, onChange, extraParams,
|
|
|
134
134
|
onPaid,
|
|
135
135
|
onError,
|
|
136
136
|
onChange,
|
|
137
|
+
theme,
|
|
137
138
|
...prop
|
|
138
139
|
}
|
|
139
140
|
) });
|
package/lib/checkout/table.js
CHANGED
|
@@ -38,7 +38,8 @@ function CheckoutTableInner({
|
|
|
38
38
|
onError,
|
|
39
39
|
onChange,
|
|
40
40
|
extraParams,
|
|
41
|
-
goBack
|
|
41
|
+
goBack,
|
|
42
|
+
theme
|
|
42
43
|
}) {
|
|
43
44
|
if (!id.startsWith("prctbl_")) {
|
|
44
45
|
throw new Error("A valid pricing table id is required.");
|
|
@@ -170,6 +171,7 @@ function CheckoutTableInner({
|
|
|
170
171
|
onPaid,
|
|
171
172
|
onError,
|
|
172
173
|
onChange,
|
|
174
|
+
theme,
|
|
173
175
|
...prop
|
|
174
176
|
})
|
|
175
177
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blocklet/payment-react",
|
|
3
|
-
"version": "1.15.
|
|
3
|
+
"version": "1.15.23",
|
|
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.15.
|
|
95
|
+
"@blocklet/payment-types": "1.15.23",
|
|
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": "94862642b9c4f0f753a47e8c68d9b70315d8f008"
|
|
126
126
|
}
|
package/src/checkout/table.tsx
CHANGED
|
@@ -27,7 +27,7 @@ const ensureProtocol = (url: string): string => {
|
|
|
27
27
|
return url;
|
|
28
28
|
};
|
|
29
29
|
|
|
30
|
-
function CheckoutTableInner({ id, mode, onPaid, onError, onChange, extraParams, goBack }: CheckoutProps) {
|
|
30
|
+
function CheckoutTableInner({ id, mode, onPaid, onError, onChange, extraParams, goBack, theme }: CheckoutProps) {
|
|
31
31
|
if (!id.startsWith('prctbl_')) {
|
|
32
32
|
throw new Error('A valid pricing table id is required.');
|
|
33
33
|
}
|
|
@@ -142,6 +142,7 @@ function CheckoutTableInner({ id, mode, onPaid, onError, onChange, extraParams,
|
|
|
142
142
|
onPaid={onPaid}
|
|
143
143
|
onError={onError}
|
|
144
144
|
onChange={onChange}
|
|
145
|
+
theme={theme}
|
|
145
146
|
{...prop}
|
|
146
147
|
/>
|
|
147
148
|
</Box>
|