@appfunnel-dev/sdk 2.0.0 → 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.
Files changed (40) hide show
  1. package/CHANGELOG.md +69 -3
  2. package/dist/{checkout-BYcOfyg_.d.ts → checkout-BPYU4wXF.d.ts} +50 -16
  3. package/dist/{checkout-BM1T-u6_.d.cts → checkout-BzP__Mxe.d.cts} +50 -16
  4. package/dist/{chunk-PN7CRJAF.js → chunk-AW2YURFE.js} +60 -19
  5. package/dist/chunk-AW2YURFE.js.map +1 -0
  6. package/dist/{chunk-MBTHQP4Z.cjs → chunk-DTSLJ24T.cjs} +11 -3
  7. package/dist/chunk-DTSLJ24T.cjs.map +1 -0
  8. package/dist/{chunk-NA7DRFOA.cjs → chunk-MBSXEIXT.cjs} +60 -19
  9. package/dist/chunk-MBSXEIXT.cjs.map +1 -0
  10. package/dist/{chunk-KVMNVX6J.js → chunk-USAECFWO.js} +11 -3
  11. package/dist/chunk-USAECFWO.js.map +1 -0
  12. package/dist/driver-paddle.cjs +14 -14
  13. package/dist/driver-paddle.d.cts +1 -1
  14. package/dist/driver-paddle.d.ts +1 -1
  15. package/dist/driver-paddle.js +1 -1
  16. package/dist/driver-stripe.cjs +31 -15
  17. package/dist/driver-stripe.cjs.map +1 -1
  18. package/dist/driver-stripe.d.cts +1 -1
  19. package/dist/driver-stripe.d.ts +1 -1
  20. package/dist/driver-stripe.js +18 -2
  21. package/dist/driver-stripe.js.map +1 -1
  22. package/dist/index.cjs +78 -67
  23. package/dist/index.cjs.map +1 -1
  24. package/dist/index.d.cts +25 -6
  25. package/dist/index.d.ts +25 -6
  26. package/dist/index.js +13 -2
  27. package/dist/index.js.map +1 -1
  28. package/dist/{manifest-BajvtPWs.d.cts → manifest-Dp1oRvqp.d.cts} +23 -0
  29. package/dist/{manifest-BajvtPWs.d.ts → manifest-Dp1oRvqp.d.ts} +23 -0
  30. package/dist/manifest-entry.cjs +9 -1
  31. package/dist/manifest-entry.cjs.map +1 -1
  32. package/dist/manifest-entry.d.cts +15 -2
  33. package/dist/manifest-entry.d.ts +15 -2
  34. package/dist/manifest-entry.js +9 -1
  35. package/dist/manifest-entry.js.map +1 -1
  36. package/package.json +1 -1
  37. package/dist/chunk-KVMNVX6J.js.map +0 -1
  38. package/dist/chunk-MBTHQP4Z.cjs.map +0 -1
  39. package/dist/chunk-NA7DRFOA.cjs.map +0 -1
  40. package/dist/chunk-PN7CRJAF.js.map +0 -1
@@ -1,5 +1,5 @@
1
1
  import { CSSProperties } from 'react';
2
- import { C as CheckoutDriverContext, a as CheckoutDriver } from './checkout-BM1T-u6_.cjs';
2
+ import { C as CheckoutDriverContext, a as CheckoutDriver } from './checkout-BzP__Mxe.cjs';
3
3
  import '@stripe/stripe-js';
4
4
  import '@paddle/paddle-js';
5
5
  import './capabilities-BtnJi2JD.cjs';
@@ -1,5 +1,5 @@
1
1
  import { CSSProperties } from 'react';
2
- import { C as CheckoutDriverContext, a as CheckoutDriver } from './checkout-BYcOfyg_.js';
2
+ import { C as CheckoutDriverContext, a as CheckoutDriver } from './checkout-BPYU4wXF.js';
3
3
  import '@stripe/stripe-js';
4
4
  import '@paddle/paddle-js';
5
5
  import './capabilities-BtnJi2JD.js';
@@ -1,8 +1,8 @@
1
- import { ensureCheckoutButtonStyles } from './chunk-PN7CRJAF.js';
1
+ import { ensureCheckoutButtonStyles } from './chunk-AW2YURFE.js';
2
2
  import './chunk-WIFTHXF5.js';
3
3
  import './chunk-U5R4ILJT.js';
4
4
  import './chunk-XEIWE7NY.js';
5
- import { completeWithPoll, postSession, leaveForRedirect, settlementToResult, toCheckoutError, postComplete } from './chunk-KVMNVX6J.js';
5
+ import { completeWithPoll, postSession, leaveForRedirect, settlementToResult, toCheckoutError, postComplete } from './chunk-USAECFWO.js';
6
6
  import { checkoutError } from './chunk-QENSJ6JB.js';
7
7
  import { __commonJS, __toESM, __export } from './chunk-PR4QN5HX.js';
8
8
  import React, { createElement, useState, useRef, useEffect } from 'react';
@@ -2354,6 +2354,22 @@ function ConfirmForm({
2354
2354
  "div",
2355
2355
  { "data-checkout-express": "" },
2356
2356
  createElement(rsj.ExpressCheckoutElement, {
2357
+ // The author's `options.express` is Stripe's own options, passed through — layout, button
2358
+ // height/theme/type. Wallets default to Apple Pay and Google Pay only, merged per wallet: left
2359
+ // unset, Stripe would also offer whatever else the account has enabled (Link, PayPal, Amazon
2360
+ // Pay, Klarna) as buttons here.
2361
+ options: {
2362
+ ...methods?.express,
2363
+ paymentMethods: {
2364
+ applePay: "always",
2365
+ googlePay: "always",
2366
+ link: "never",
2367
+ paypal: "never",
2368
+ amazonPay: "never",
2369
+ klarna: "never",
2370
+ ...methods?.express?.paymentMethods
2371
+ }
2372
+ },
2357
2373
  // The wallet sheet IS the collection UI — Stripe fires onConfirm once the buyer authorizes,
2358
2374
  // and we confirm the intent right after.
2359
2375
  onConfirm: () => void confirm(),