@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.
- package/CHANGELOG.md +69 -3
- package/dist/{checkout-BYcOfyg_.d.ts → checkout-BPYU4wXF.d.ts} +50 -16
- package/dist/{checkout-BM1T-u6_.d.cts → checkout-BzP__Mxe.d.cts} +50 -16
- package/dist/{chunk-PN7CRJAF.js → chunk-AW2YURFE.js} +60 -19
- package/dist/chunk-AW2YURFE.js.map +1 -0
- package/dist/{chunk-MBTHQP4Z.cjs → chunk-DTSLJ24T.cjs} +11 -3
- package/dist/chunk-DTSLJ24T.cjs.map +1 -0
- package/dist/{chunk-NA7DRFOA.cjs → chunk-MBSXEIXT.cjs} +60 -19
- package/dist/chunk-MBSXEIXT.cjs.map +1 -0
- package/dist/{chunk-KVMNVX6J.js → chunk-USAECFWO.js} +11 -3
- package/dist/chunk-USAECFWO.js.map +1 -0
- package/dist/driver-paddle.cjs +14 -14
- package/dist/driver-paddle.d.cts +1 -1
- package/dist/driver-paddle.d.ts +1 -1
- package/dist/driver-paddle.js +1 -1
- package/dist/driver-stripe.cjs +31 -15
- 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 +18 -2
- package/dist/driver-stripe.js.map +1 -1
- package/dist/index.cjs +78 -67
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +25 -6
- package/dist/index.d.ts +25 -6
- package/dist/index.js +13 -2
- package/dist/index.js.map +1 -1
- package/dist/{manifest-BajvtPWs.d.cts → manifest-Dp1oRvqp.d.cts} +23 -0
- package/dist/{manifest-BajvtPWs.d.ts → manifest-Dp1oRvqp.d.ts} +23 -0
- package/dist/manifest-entry.cjs +9 -1
- package/dist/manifest-entry.cjs.map +1 -1
- package/dist/manifest-entry.d.cts +15 -2
- package/dist/manifest-entry.d.ts +15 -2
- package/dist/manifest-entry.js +9 -1
- package/dist/manifest-entry.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-KVMNVX6J.js.map +0 -1
- package/dist/chunk-MBTHQP4Z.cjs.map +0 -1
- package/dist/chunk-NA7DRFOA.cjs.map +0 -1
- package/dist/chunk-PN7CRJAF.js.map +0 -1
package/dist/driver-stripe.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CSSProperties } from 'react';
|
|
2
|
-
import { C as CheckoutDriverContext, a as CheckoutDriver } from './checkout-
|
|
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';
|
package/dist/driver-stripe.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CSSProperties } from 'react';
|
|
2
|
-
import { C as CheckoutDriverContext, a as CheckoutDriver } from './checkout-
|
|
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';
|
package/dist/driver-stripe.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ensureCheckoutButtonStyles } from './chunk-
|
|
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-
|
|
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(),
|