@appfunnel-dev/sdk 2.0.1 → 2.1.0
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/CHANGELOG.md +28 -0
- package/dist/{checkout-B1K6ozwk.d.ts → checkout-BPYU4wXF.d.ts} +44 -16
- package/dist/{checkout-C4tFUEdF.d.cts → checkout-BzP__Mxe.d.cts} +44 -16
- package/dist/{chunk-WCBVSZHJ.js → chunk-AW2YURFE.js} +7 -4
- package/dist/chunk-AW2YURFE.js.map +1 -0
- package/dist/{chunk-E7JXWUNV.cjs → chunk-MBSXEIXT.cjs} +7 -4
- package/dist/chunk-MBSXEIXT.cjs.map +1 -0
- package/dist/driver-paddle.d.cts +1 -1
- package/dist/driver-paddle.d.ts +1 -1
- package/dist/driver-stripe.cjs +18 -2
- package/dist/driver-stripe.cjs.map +1 -1
- package/dist/driver-stripe.d.cts +1 -1
- package/dist/driver-stripe.d.ts +1 -1
- package/dist/driver-stripe.js +17 -1
- package/dist/driver-stripe.js.map +1 -1
- package/dist/index.cjs +67 -67
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-E7JXWUNV.cjs.map +0 -1
- package/dist/chunk-WCBVSZHJ.js.map +0 -1
package/dist/driver-paddle.d.cts
CHANGED
package/dist/driver-paddle.d.ts
CHANGED
package/dist/driver-stripe.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkMBSXEIXT_cjs = require('./chunk-MBSXEIXT.cjs');
|
|
4
4
|
require('./chunk-6KTFVZA4.cjs');
|
|
5
5
|
require('./chunk-JL42MNGM.cjs');
|
|
6
6
|
require('./chunk-5HUJEI26.cjs');
|
|
@@ -2297,7 +2297,7 @@ function ConfirmForm({
|
|
|
2297
2297
|
setSubmitting(false);
|
|
2298
2298
|
}
|
|
2299
2299
|
};
|
|
2300
|
-
|
|
2300
|
+
chunkMBSXEIXT_cjs.ensureCheckoutButtonStyles();
|
|
2301
2301
|
const submit = React.createElement(
|
|
2302
2302
|
"button",
|
|
2303
2303
|
{
|
|
@@ -2360,6 +2360,22 @@ function ConfirmForm({
|
|
|
2360
2360
|
"div",
|
|
2361
2361
|
{ "data-checkout-express": "" },
|
|
2362
2362
|
React.createElement(rsj.ExpressCheckoutElement, {
|
|
2363
|
+
// The author's `options.express` is Stripe's own options, passed through — layout, button
|
|
2364
|
+
// height/theme/type. Wallets default to Apple Pay and Google Pay only, merged per wallet: left
|
|
2365
|
+
// unset, Stripe would also offer whatever else the account has enabled (Link, PayPal, Amazon
|
|
2366
|
+
// Pay, Klarna) as buttons here.
|
|
2367
|
+
options: {
|
|
2368
|
+
...methods?.express,
|
|
2369
|
+
paymentMethods: {
|
|
2370
|
+
applePay: "always",
|
|
2371
|
+
googlePay: "always",
|
|
2372
|
+
link: "never",
|
|
2373
|
+
paypal: "never",
|
|
2374
|
+
amazonPay: "never",
|
|
2375
|
+
klarna: "never",
|
|
2376
|
+
...methods?.express?.paymentMethods
|
|
2377
|
+
}
|
|
2378
|
+
},
|
|
2363
2379
|
// The wallet sheet IS the collection UI — Stripe fires onConfirm once the buyer authorizes,
|
|
2364
2380
|
// and we confirm the intent right after.
|
|
2365
2381
|
onConfirm: () => void confirm(),
|