@appfunnel-dev/sdk 2.0.0-canary.8 → 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.
- package/dist/{capabilities-CsnkVwna.d.cts → capabilities-Dq22RCr_.d.cts} +34 -1
- package/dist/{capabilities-CsnkVwna.d.ts → capabilities-Dq22RCr_.d.ts} +34 -1
- package/dist/{checkout-3PkKwPd7.d.ts → checkout-ClaO5IYV.d.ts} +17 -4
- package/dist/{checkout-Cg20l53c.d.cts → checkout-DBp4bCpC.d.cts} +17 -4
- package/dist/{chunk-RY3LOSVZ.cjs → chunk-7JLOF6CJ.cjs} +27 -5
- package/dist/chunk-7JLOF6CJ.cjs.map +1 -0
- package/dist/{chunk-PWXMQGO6.js → chunk-JAO6AA4R.js} +3 -3
- package/dist/{chunk-PWXMQGO6.js.map → chunk-JAO6AA4R.js.map} +1 -1
- package/dist/{chunk-RVJLR4RS.js → chunk-OXQBEKZ5.js} +25 -6
- package/dist/chunk-OXQBEKZ5.js.map +1 -0
- package/dist/{chunk-FY3TMSRU.cjs → chunk-VV7TFC64.cjs} +7 -7
- package/dist/{chunk-FY3TMSRU.cjs.map → chunk-VV7TFC64.cjs.map} +1 -1
- package/dist/driver-paddle.cjs +26 -24
- package/dist/driver-paddle.cjs.map +1 -1
- package/dist/driver-paddle.d.cts +2 -2
- package/dist/driver-paddle.d.ts +2 -2
- package/dist/driver-paddle.js +6 -4
- package/dist/driver-paddle.js.map +1 -1
- package/dist/driver-stripe.cjs +32 -26
- package/dist/driver-stripe.cjs.map +1 -1
- package/dist/driver-stripe.d.cts +2 -2
- package/dist/driver-stripe.d.ts +2 -2
- package/dist/driver-stripe.js +10 -4
- package/dist/driver-stripe.js.map +1 -1
- package/dist/index.cjs +48 -21
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +18 -3
- package/dist/index.js.map +1 -1
- package/dist/manifest-entry.cjs +24 -12
- package/dist/manifest-entry.d.cts +2 -2
- package/dist/manifest-entry.d.ts +2 -2
- package/dist/manifest-entry.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-RVJLR4RS.js.map +0 -1
- package/dist/chunk-RY3LOSVZ.cjs.map +0 -1
package/dist/driver-stripe.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { C as CheckoutDriverContext, a as CheckoutDriver } from './checkout-
|
|
1
|
+
import { C as CheckoutDriverContext, a as CheckoutDriver } from './checkout-DBp4bCpC.cjs';
|
|
2
2
|
import 'react';
|
|
3
|
-
import './capabilities-
|
|
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
|
package/dist/driver-stripe.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { C as CheckoutDriverContext, a as CheckoutDriver } from './checkout-
|
|
1
|
+
import { C as CheckoutDriverContext, a as CheckoutDriver } from './checkout-ClaO5IYV.js';
|
|
2
2
|
import 'react';
|
|
3
|
-
import './capabilities-
|
|
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
|
package/dist/driver-stripe.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { completeWithPoll, postSession, leaveForRedirect, settlementToResult, toCheckoutError, postComplete } from './chunk-
|
|
2
|
-
import { checkoutError } from './chunk-
|
|
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, {
|
|
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",
|