@flopay/react 0.3.1 → 0.3.4
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/index.cjs +278 -239
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.mjs +189 -150
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.d.cts
CHANGED
|
@@ -81,6 +81,8 @@ interface FloPayCheckoutProps {
|
|
|
81
81
|
buttonsTheme?: _flopay_shared.ButtonsLayoutTheme;
|
|
82
82
|
/** Custom style overrides for the buttons layout. Merged on top of the theme preset. */
|
|
83
83
|
buttonsStyles?: _flopay_shared.ButtonsLayoutStyles;
|
|
84
|
+
/** Custom React content rendered inside the card button when `layout="buttons"`. */
|
|
85
|
+
cardButtonContent?: React.ReactNode;
|
|
84
86
|
/**
|
|
85
87
|
* Called when a payment method button is clicked.
|
|
86
88
|
* `method`: `'card'` | `'paypal'` | `'apple_pay'` | `'google_pay'`
|
|
@@ -136,7 +138,7 @@ interface FloPayCheckoutProps {
|
|
|
136
138
|
* />
|
|
137
139
|
* ```
|
|
138
140
|
*/
|
|
139
|
-
declare function FloPayCheckout({ sessionId: sessionIdProp, createSession: createSessionParams, billingApiUrl, appearance, locale, fallbackPublishableKey, loading: loadingNode, error: errorNode, onComplete, onError, showPayPal, showApplePay, showGooglePay, layout, buttonsTheme, buttonsStyles, onButtonClick, enableAVS, avsLayout, submitLabel, className, children, checkoutMode: checkoutModeProp, confirmLabel, renderConfirmButton, onSessionCompleted, }: FloPayCheckoutProps): React.ReactElement;
|
|
141
|
+
declare function FloPayCheckout({ sessionId: sessionIdProp, createSession: createSessionParams, billingApiUrl, appearance, locale, fallbackPublishableKey, loading: loadingNode, error: errorNode, onComplete, onError, showPayPal, showApplePay, showGooglePay, layout, buttonsTheme, buttonsStyles, cardButtonContent, onButtonClick, enableAVS, avsLayout, submitLabel, className, children, checkoutMode: checkoutModeProp, confirmLabel, renderConfirmButton, onSessionCompleted, }: FloPayCheckoutProps): React.ReactElement;
|
|
140
142
|
|
|
141
143
|
/**
|
|
142
144
|
* Returns the current `FloPay` instance, or `null` if the provider
|
|
@@ -376,6 +378,8 @@ interface SplitCardFormProps {
|
|
|
376
378
|
buttonsTheme?: _flopay_shared.ButtonsLayoutTheme;
|
|
377
379
|
/** Custom style overrides for the `buttons` layout. Merged on top of the theme preset. */
|
|
378
380
|
buttonsStyles?: _flopay_shared.ButtonsLayoutStyles;
|
|
381
|
+
/** Custom React content rendered inside the card button when `layout="buttons"`. */
|
|
382
|
+
cardButtonContent?: React.ReactNode;
|
|
379
383
|
/**
|
|
380
384
|
* Called when a payment method button is clicked.
|
|
381
385
|
* `method`: `'card'` | `'paypal'` | `'apple_pay'` | `'google_pay'`
|
package/dist/index.d.ts
CHANGED
|
@@ -81,6 +81,8 @@ interface FloPayCheckoutProps {
|
|
|
81
81
|
buttonsTheme?: _flopay_shared.ButtonsLayoutTheme;
|
|
82
82
|
/** Custom style overrides for the buttons layout. Merged on top of the theme preset. */
|
|
83
83
|
buttonsStyles?: _flopay_shared.ButtonsLayoutStyles;
|
|
84
|
+
/** Custom React content rendered inside the card button when `layout="buttons"`. */
|
|
85
|
+
cardButtonContent?: React.ReactNode;
|
|
84
86
|
/**
|
|
85
87
|
* Called when a payment method button is clicked.
|
|
86
88
|
* `method`: `'card'` | `'paypal'` | `'apple_pay'` | `'google_pay'`
|
|
@@ -136,7 +138,7 @@ interface FloPayCheckoutProps {
|
|
|
136
138
|
* />
|
|
137
139
|
* ```
|
|
138
140
|
*/
|
|
139
|
-
declare function FloPayCheckout({ sessionId: sessionIdProp, createSession: createSessionParams, billingApiUrl, appearance, locale, fallbackPublishableKey, loading: loadingNode, error: errorNode, onComplete, onError, showPayPal, showApplePay, showGooglePay, layout, buttonsTheme, buttonsStyles, onButtonClick, enableAVS, avsLayout, submitLabel, className, children, checkoutMode: checkoutModeProp, confirmLabel, renderConfirmButton, onSessionCompleted, }: FloPayCheckoutProps): React.ReactElement;
|
|
141
|
+
declare function FloPayCheckout({ sessionId: sessionIdProp, createSession: createSessionParams, billingApiUrl, appearance, locale, fallbackPublishableKey, loading: loadingNode, error: errorNode, onComplete, onError, showPayPal, showApplePay, showGooglePay, layout, buttonsTheme, buttonsStyles, cardButtonContent, onButtonClick, enableAVS, avsLayout, submitLabel, className, children, checkoutMode: checkoutModeProp, confirmLabel, renderConfirmButton, onSessionCompleted, }: FloPayCheckoutProps): React.ReactElement;
|
|
140
142
|
|
|
141
143
|
/**
|
|
142
144
|
* Returns the current `FloPay` instance, or `null` if the provider
|
|
@@ -376,6 +378,8 @@ interface SplitCardFormProps {
|
|
|
376
378
|
buttonsTheme?: _flopay_shared.ButtonsLayoutTheme;
|
|
377
379
|
/** Custom style overrides for the `buttons` layout. Merged on top of the theme preset. */
|
|
378
380
|
buttonsStyles?: _flopay_shared.ButtonsLayoutStyles;
|
|
381
|
+
/** Custom React content rendered inside the card button when `layout="buttons"`. */
|
|
382
|
+
cardButtonContent?: React.ReactNode;
|
|
379
383
|
/**
|
|
380
384
|
* Called when a payment method button is clicked.
|
|
381
385
|
* `method`: `'card'` | `'paypal'` | `'apple_pay'` | `'google_pay'`
|