@appfunnel-dev/sdk 2.0.0-canary.7 → 2.0.0-canary.9

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 (47) hide show
  1. package/dist/{capabilities-7_hy5f5G.d.cts → capabilities-Dq22RCr_.d.cts} +67 -1
  2. package/dist/{capabilities-7_hy5f5G.d.ts → capabilities-Dq22RCr_.d.ts} +67 -1
  3. package/dist/{checkout-CMEdxpgo.d.cts → checkout-ClaO5IYV.d.ts} +17 -4
  4. package/dist/{checkout-D1NUPv4p.d.ts → checkout-DBp4bCpC.d.cts} +17 -4
  5. package/dist/{chunk-QMAZGLGV.cjs → chunk-7JLOF6CJ.cjs} +59 -7
  6. package/dist/chunk-7JLOF6CJ.cjs.map +1 -0
  7. package/dist/{chunk-CFFMZYPE.js → chunk-JAO6AA4R.js} +3 -3
  8. package/dist/{chunk-CFFMZYPE.js.map → chunk-JAO6AA4R.js.map} +1 -1
  9. package/dist/{chunk-TNLRQPVY.js → chunk-OXQBEKZ5.js} +55 -8
  10. package/dist/chunk-OXQBEKZ5.js.map +1 -0
  11. package/dist/{chunk-VAOR77NW.cjs → chunk-VV7TFC64.cjs} +7 -7
  12. package/dist/{chunk-VAOR77NW.cjs.map → chunk-VV7TFC64.cjs.map} +1 -1
  13. package/dist/{chunk-7YQLPPPG.js → chunk-VW2HVPR4.js} +7 -2
  14. package/dist/chunk-VW2HVPR4.js.map +1 -0
  15. package/dist/{chunk-BPOAWI4G.cjs → chunk-Y4YNJ2EX.cjs} +7 -2
  16. package/dist/chunk-Y4YNJ2EX.cjs.map +1 -0
  17. package/dist/driver-paddle.cjs +26 -24
  18. package/dist/driver-paddle.cjs.map +1 -1
  19. package/dist/driver-paddle.d.cts +2 -2
  20. package/dist/driver-paddle.d.ts +2 -2
  21. package/dist/driver-paddle.js +6 -4
  22. package/dist/driver-paddle.js.map +1 -1
  23. package/dist/driver-stripe.cjs +32 -26
  24. package/dist/driver-stripe.cjs.map +1 -1
  25. package/dist/driver-stripe.d.cts +2 -2
  26. package/dist/driver-stripe.d.ts +2 -2
  27. package/dist/driver-stripe.js +10 -4
  28. package/dist/driver-stripe.js.map +1 -1
  29. package/dist/index.cjs +88 -61
  30. package/dist/index.cjs.map +1 -1
  31. package/dist/index.d.cts +5 -5
  32. package/dist/index.d.ts +5 -5
  33. package/dist/index.js +20 -5
  34. package/dist/index.js.map +1 -1
  35. package/dist/{manifest-CMe8yVkr.d.cts → manifest-B3Tdab0M.d.cts} +64 -1
  36. package/dist/{manifest-CMe8yVkr.d.ts → manifest-B3Tdab0M.d.ts} +64 -1
  37. package/dist/manifest-entry.cjs +112 -31
  38. package/dist/manifest-entry.cjs.map +1 -1
  39. package/dist/manifest-entry.d.cts +9 -26
  40. package/dist/manifest-entry.d.ts +9 -26
  41. package/dist/manifest-entry.js +64 -3
  42. package/dist/manifest-entry.js.map +1 -1
  43. package/package.json +1 -1
  44. package/dist/chunk-7YQLPPPG.js.map +0 -1
  45. package/dist/chunk-BPOAWI4G.cjs.map +0 -1
  46. package/dist/chunk-QMAZGLGV.cjs.map +0 -1
  47. package/dist/chunk-TNLRQPVY.js.map +0 -1
@@ -1,6 +1,6 @@
1
- import { C as CheckoutDriverContext, a as CheckoutDriver } from './checkout-CMEdxpgo.cjs';
1
+ import { C as CheckoutDriverContext, a as CheckoutDriver } from './checkout-DBp4bCpC.cjs';
2
2
  import 'react';
3
- import './capabilities-7_hy5f5G.cjs';
3
+ import './capabilities-Dq22RCr_.cjs';
4
4
 
5
5
  /**
6
6
  * Detect the editor's null-origin preview (the builder mounts the funnel inside an
@@ -1,6 +1,6 @@
1
- import { C as CheckoutDriverContext, a as CheckoutDriver } from './checkout-D1NUPv4p.js';
1
+ import { C as CheckoutDriverContext, a as CheckoutDriver } from './checkout-ClaO5IYV.js';
2
2
  import 'react';
3
- import './capabilities-7_hy5f5G.js';
3
+ import './capabilities-Dq22RCr_.js';
4
4
 
5
5
  /**
6
6
  * Detect the editor's null-origin preview (the builder mounts the funnel inside an
@@ -1,5 +1,5 @@
1
- import { completeWithPoll, postSession, leaveForRedirect, settlementToResult, toCheckoutError, postComplete } from './chunk-CFFMZYPE.js';
2
- import { checkoutError } from './chunk-TNLRQPVY.js';
1
+ import { completeWithPoll, postSession, leaveForRedirect, settlementToResult, toCheckoutError, postComplete } from './chunk-JAO6AA4R.js';
2
+ import { checkoutError } from './chunk-OXQBEKZ5.js';
3
3
  import { __commonJS, __toESM, __export } from './chunk-G3PMV62Z.js';
4
4
  import React, { createElement, useState, useRef, useEffect } from 'react';
5
5
 
@@ -2210,6 +2210,7 @@ function ConfirmForm({
2210
2210
  const elements = rsj.useElements();
2211
2211
  const [submitting, setSubmitting] = useState(false);
2212
2212
  const addedRef = useRef(false);
2213
+ const [walletUnavailable, setWalletUnavailable] = useState(false);
2213
2214
  const confirm = async () => {
2214
2215
  if (!stripe || !elements || submitting) return;
2215
2216
  onStart();
@@ -2236,8 +2237,13 @@ function ConfirmForm({
2236
2237
  setSubmitting(false);
2237
2238
  }
2238
2239
  };
2239
- if (surface === "express") {
2240
- return createElement(rsj.ExpressCheckoutElement, { onConfirm: () => void confirm() });
2240
+ if (surface === "express" && !walletUnavailable) {
2241
+ return createElement(rsj.ExpressCheckoutElement, {
2242
+ onConfirm: () => void confirm(),
2243
+ onReady: (event) => {
2244
+ if (!event?.availablePaymentMethods) setWalletUnavailable(true);
2245
+ }
2246
+ });
2241
2247
  }
2242
2248
  return createElement(
2243
2249
  "div",