@flopay/react 1.17.1 → 1.18.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/README.md +25 -0
- package/dist/flopay-checkout.d.ts +9 -1
- package/dist/index.cjs +9 -9
- package/dist/index.mjs +7 -7
- package/dist/split-card-form.d.ts +9 -1
- package/package.json +3 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AVSFieldConfig, BeforeButtonClickEvent, CheckoutButtonMethod, CheckoutSession, DeclineEvent, FloPayPaymentCancelEvent, GatewayEnvironment, InlineSessionPatch, PaymentMethodLayoutRules, PaymentResult, PayPalProviderObjectType, TokenizedBody, WalletPresentation } from '@flopay/shared';
|
|
1
|
+
import type { AVSFieldConfig, BeforeButtonClickEvent, CardFieldPlaceholders, CheckoutButtonMethod, CheckoutSession, DeclineEvent, FloPayPaymentCancelEvent, GatewayEnvironment, InlineSessionPatch, PaymentMethodLayoutRules, PaymentResult, PayPalProviderObjectType, TokenizedBody, WalletPresentation } from '@flopay/shared';
|
|
2
2
|
import { FloPayError } from '@flopay/shared';
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { type MaybePromise } from './buyer-identity-fallback.js';
|
|
@@ -264,6 +264,14 @@ export interface SplitCardFormProps {
|
|
|
264
264
|
* Only applies on the vault card path; an older hosted form ignores it.
|
|
265
265
|
*/
|
|
266
266
|
showCardBrandIcons?: boolean;
|
|
267
|
+
/**
|
|
268
|
+
* Placeholder text for the hosted card fields (`number`, `expiry`, `cvv`,
|
|
269
|
+
* `name`), each optional. Only the fields given are sent; the rest keep the
|
|
270
|
+
* hosted form's wording, and `''` shows no placeholder. A change updates the
|
|
271
|
+
* mounted form live (compared by content, so a new object with the same text
|
|
272
|
+
* sends nothing). Omitted sends nothing. Only applies on the vault card path.
|
|
273
|
+
*/
|
|
274
|
+
cardFieldPlaceholders?: CardFieldPlaceholders;
|
|
267
275
|
/**
|
|
268
276
|
* Opt out of the hosted card widget's automatic initial focus (and the host-side
|
|
269
277
|
* initial identity/AVS field focus). `false` disables it; omitted or `true` keeps
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flopay/react",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.18.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"publishConfig": {
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
"dist"
|
|
37
37
|
],
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@flopay/js": "1.
|
|
40
|
-
"@flopay/shared": "1.
|
|
39
|
+
"@flopay/js": "1.18.0",
|
|
40
|
+
"@flopay/shared": "1.18.0",
|
|
41
41
|
"@paypal/paypal-js": "^11.3.0",
|
|
42
42
|
"@stripe/react-stripe-js": "^7.1.0",
|
|
43
43
|
"@stripe/stripe-js": "^10.3.0"
|